2) Write a program that will calculate the minimum, maximum, and average of a se
ID: 1823714 • Letter: 2
Question
2) Write a program that will calculate the minimum, maximum, and average of a series of numbers. The program reads numbers that the user enters from the keyboard. The program should continue until a negative number is entered and will then output the mix, max, and average of all the positive numbers entered. The output box should use VBCRLF to format the message like:You entered # numbers.
Min: #
Max: #
Average: #
Calculate the min and max manually, not using any min or max built-in functions. Tip: You don
Explanation / Answer
This is cake walk. Average is the sum of 'n' numbers divided by 'n'. #include #define EXIT_SUCCESS 0 int main() { // prototypes: float add_and_div(float, float, float); // variables: float x, y, z; float result; cout > x >> y >> z; // continue the program here result = add_and_div( x, y, z ); coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.