Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Flowchart with diagrams using C + + coding Determine the minimum, maximum and calculate the arithmetic mean of numbers read in from the

Create a Flowchart with diagrams using C++ coding Determine the minimum, maximum and calculate the arithmetic mean of numbers read in from the keyboard. calculate the arithmetic mean add up all the numbers (sum) and then divide by the number of them read in.
Store the answer in a variable, say n. Next prompt the user for the first number and read it into a variable called value. Since there is only one number, it is the smallest, largest and the sum. So store value in variables for these quantities. Next, a variable called count should be set to 1 indicating one number has been read in.
Next, loop reading in values and processing them. use a For-Loop, while count is less than n do the following: 1) prompt for and read a value2) if the value is greater than the largest then largest gets the new value 3) if the value is less than the smallest then smallest gets the new value 4) add the new value to the sum. 5) add one to count.
After the loop has completed (when all n values have been processed) divide sum by count to get the arithmetic mean. Finally, output the smallest, largest, mean and n. When you print this information to the monitor make sure all values are properly labeled and in tabular form for

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions