Week 7 only: Instructions: The Test Plan for each project includes the Pseudocode, Flowchart, Goals and Objectives, Functional Requirements, and Test

Week 7 only:

Instructions:

The Test Plan for each project includes the Pseudocode, Flowchart, Goals and Objectives, Functional Requirements, and Test Matrix including Actual Output column.  Below the table are screenshots verifying the actual output for each case.

FOUR TEST PLANS!!!  Really?!  This is also an Announcement in our classroom.

For Week 7, we have TWO Chapters – 7 and 8!    We have 4 Projects, Test Plan for each project as usual, along with our Quizzes on Chapters 7 and 8, and one Discussion on Arrays.

(1) Week 7 Discussion, (2) Chap 7 Quizzes, Projects 2 & 5, (3) Chap 8 Quizzes, Projects 3 & 5, (4) Test Plans for all 4 Projects

Each Test Plan has 5 parts, in order:  (1) Pseudocode, (2) Flowchart, (3) Goals & Objectives, (4) Functional Requirements, the (5) Test Matrix/table (simplified), and Output (screenshots from your own output).   Your Output also appears under your table to verify Actual Output.   Please make it clear that all 5 tasks are covered for each of your projects.

Our Projects this Week —  We have FOUR!

The algorithms this week will be our focus.  In working on a project in which the algorithm (steps) is not immediately clear to us, we may want to do the task by hand first, modeling the problem to SEE more clearly what the task is and how we may create the solution.  You’re working like a pro!  Also, we’ll be using loops again.   See full Instructions in our textbook for each project.

Chapter 7:  Project 2   Read integers from user.  For all integers between 1 and 100, count occurrences of each.

Sample run: 

Enter the integers between 1 and 100:   2  5  3  2 

2 occurs 2 times     <–  Note when to show “time” versus “times”

3 occurs 1 time

5 occurs 1 time

Chapter 7:  Project 5   Write a method that returns true if list is already sorted in increasing order, false if not. Write a test program.  There can be more than one way of solving some tasks. 

Sample run:

Enter list: 8 10 1 5 16 61 9 11 1        <– 1st number tells us how many

The list is not sorted

Chapter 8:  Project 3  Find the largest element in a 2-dimensional array.

Sample run:

Enter the number of rows and columns of the array: 3 4

Enter the array:

23.5  35  2   10

4.5   3    45  3.5

35   44   5.5  9.6

The location of the largest element is at (1, 2)   <–  

          Note that (1,2) is the 2nd row and 3rd column, since array indices begin with 0.

Chapter 8:  Project 5   Find the Central City, the city with the shortest total distance to all other cities. 

Sample run:

Enter the number of cities: 5

Enter the coordinates of the cities: 2.5  5  5.1  3  1  9  5.4  54  5.5  2.1

The central city is at (2.5, 5.0)

The total distance to all other cities is 60.81

Note:  We might model the problem on paper in order to better understand it.  I suggest a very simple problem such as cities (3,2),  (7,1),  (4,6)  and (6,4)  on graph paper. How would you find the Central City?  How will you tell the program to do these steps?

What are your questions?   Let’s finish Week 6 work quickly and begin Week 7!

Rebecca Rowson

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

LBST 1007: Labour market motivation

Required texts   Jackson, Andrew. (2017). Work and Labour in Canada: Critical Issues third Edition. Toronto:   Canadian Scholars’ Press, Inc   Recommended Texts:   Leadbeater, David. (2008). Mining Town Crisis: Globalization, Labour and Resistance in   Sudbury. Halifax: Fernwood Publishing.   Stanford, Jim. (2015). Economics for Everyone: a short

Identify all of your governmental representatives at each level

This assignment has two sections. The first section you will identify all of your governmental representatives at each level (local, state, and federal). You will then select one of the federal representatives and create a profile which details their voting record, ratings, and stance on key social justice issues. Find

Here are real life scenarios that you may be placed

  Here are real life scenarios that you may be placed in as you progress in your management career.  Look at the following incidents and determine how you would approach them. Background: The company that you work for does not have a written policy regarding accepting gifts from vendors. You

Project Supporting Lectures IT Delivery and Support (and associated textbook

Project Supporting Lectures IT Delivery and Support (and associated textbook chapters) Management Practices Preview of IT Assurance Evaluation of IT Internal Controls In this phase of your project, relying on the concepts and techniques you covered in the online lectures and in your textbook and based on the IT audit

Understanding Financial Statements and Cash Flow

 Complete the following problems: •Problem 3-1: Working with a Balance Sheet •Problem 3-2: Computing Cash Flows •Problem 3-3: Working with the Statement of Cash Flows •Problem 3-4: Ratio Analysis •Problem 3-5: Market-Value Ratios •Problem 3-6: Computing Ratios You can access the problem details attached XL. Complete the problems in an

RESPOND IN 300 WORDS: Hello Class, When looking at the

RESPOND IN 300 WORDS:   Hello Class, When looking at the expected rate of return, “the amount of profit or loss an investor can anticipate receiving on an investment” (Chen, Aug, 2021). An expected return is computed by multiplying possible possibilities by the probability of them occurring, then adding the

See attached instructions and supportive documents. Instructions: The document

See attached instructions and supportive documents. Instructions: The document should include: Two pages in length including an abstract, and a reference page. Abstract: An abstract is a brief, comprehensive summary of your topic. The abstract should be 350 words or less and should be accurate, non-evaluative, coherent, readable, and concise. The following

Sarbanes-Oxley Act of 2002: As a direct result of the

  Sarbanes-Oxley Act of 2002: As a direct result of the corporate accounting scandals exposed in 2001 and 2002, Congress passed the Sarbanes-Oxley Act of 2002. This legislation has had a wide-ranging impact on corporate financial reporting and the accounting profession as a whole. One of the most important results

Assignment: This interesting paragraph presents a series of ideas that

   Assignment: This interesting paragraph presents a series of ideas that are part of our living condition.  1) List in individual sentences all the ideas that he has suggested. 2)  Explain which idea you find the most interesting and why. 3) In your own detailed paragraph, using some of Eric

As societal-norms evolve, a variety of popular entertainment media (books,

As societal-norms evolve, a variety of popular entertainment media (books, movies, TV shows, etc.) feature stories of characters who are a part of traditional and non-traditional family or relationship structures. Examples include but are not limited to: traditional families, cohabitation, single-parent households, blended families, same-sex couples, and grandparents as the

RUN Autism Spectrum Disorder and Sensory Processing Nursing Assignment Help

Description of the diagnosis including the disease process/etiology, diagnostic criteria, common features, developmental consequences Description of impact on occupational engagement and performance across disease process/time (childhood through early adulthood) Clinical reasoning behind facilitation of occupation based, activity based,  preparatory methods and tasks (including therapeutic exercise), education and training, and advocacy

By Day 7 Submit a 1-2 pgs in which you:

By Day 7 Submit a 1-2 pgs in which you: Briefly describe the setting where the intervention/treatment plan was conducted.  Briefly discuss how you used the literature to guide your practice (i.e. actual use of the treatment/intervention plan). Briefly summarize the experience of actually working with the client and any

How can community health nurses apply the strategies of cultural

How can community health nurses apply the strategies of cultural competence to their practice? Provide at least one example from each of the following four strategies: cultural preservation, cultural accommodation, cultural re-patterning, and cultural brokering. What is a possible barrier to applying the strategy/example chosen? Use an example that is

ASSIGNMENT INSTRUCTIONS: Prepare a 4 page research paper on the

ASSIGNMENT INSTRUCTIONS: Prepare a 4 page research paper on the topic “Cyberwarfare” in Microsoft Word. Your Capstone Project Topic paper will be analyzed to determine if it meets the criteria for a full Capstone project.At a minimum include the following: REQUIREMENTS: 1. 4 Pages in length in APA format (not

Discussion Question After watching the videos and reading the articles

Discussion Question  After watching the videos and reading the articles assigned for this week think about what inspiration you can draw from the stories and images provided. Was there a particular idea that inspired you and that you would like to try out one day? What elements might you need

CONCEPTS OF TEACHING AND LEARNING: WEEEK 2 Topic 1 Developmental Stages and Learning a. Compare and contrast two stages of development as they relate to learning. b. Create 3 teaching strategies for Nursing Assignment Help

CONCEPTS OF TEACHING AND LEARNING: WEEEK 2  Topic 1 Developmental Stages and Learning a. Compare and contrast two stages of development as they relate to learning. b. Create 3 teaching strategies for each developmental stage. READING AND TEXTBOOK: From the textbook, Bastable, S. B. (2017). Nurse as educator: Principles of teaching and