49.1k views
0 votes
Using pseudocode or a flowchart, design a program that will allow the user to input seven numeric values, one at a time. After all seven values have been entered, report out the average of the values and a count of the values that were 90 or more.

a. True
b. False

User Keiki
by
7.8k points

1 Answer

4 votes

Final answer:

To design a program that allows input of seven numeric values and calculates their average and counts values of 90 or more, initialize sum and count variables, loop through 7 user inputs, add each to sum, increment count if 90 or more, calculate average, and output average and count.

Step-by-step explanation:

Designing the Program Flowchart

To design a program that allows the user to input seven numeric values and then calculates the average of these values and counts how many of them are 90 or more, we can use the following pseudocode:


  1. Initialize a sum variable to 0.

  2. Initialize a count variable to 0.

  3. For each of the 7 iterations:


  • Prompt the user to enter a number.

  • Add this number to the sum variable.

  • If the number is greater than or equal to 90, increment the count variable.


Calculate the average by dividing the sum by 7.
Output the calculated average.
Output the count of values that are 90 or more.

The flowchart would follow a similar logic with blocks for initializing variables, input prompts, conditional checks for values 90 or more, calculation of the average, and outputting the results.

User Spectral Instance
by
8.5k points