Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Suppose we want to compute the average of several values entered by the user. The user repeatedly enters non - negative values, one at a
Suppose we want to compute the average of several values entered by the user. The user repeatedly enters
nonnegative values, one at a time, and finally enters the value to indicate that there are no more values
to enter. We then compute the average of the values entered excluding the and print it on the screen. If
the first number entered by the user is ie the user enters no nonnegative values we print the
message "Error: no data" on the screen.
Here are a couple of sample runs:
Sample Outputs:
Please enter your values:
Average of values entered is
Please enter your values:
Error: no data
Your flowchart doesn't need to use syntacticallycorrect code, it just needs to be clear and unambiguous
to the reader so that they could program the algorithm in If you're unsure, be more precise.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started