Write a Flowgorithm program that reads an arbitrary quantity of non-negative real numbers and computes an average.
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a Flowgorithm program that reads an arbitrary quantity of non-negative real numbers and computes an average. Keep reading user supplied numbers until the user enters ‘-1’ to end the program. The program should keep a running total of the numbers the user input and a count of the quantity of numbers input. Upon completion of the inputting the stream of numbers, the program should calculate the average by dividing the running total by the count of input numbers.
Related Book For
Introduction to Real Analysis
ISBN: 978-0471433316
4th edition
Authors: Robert G. Bartle, Donald R. Sherbert
Posted Date: