Question: In C++ Write a program that accepts numbers from the user (potentially floating point) until they enter something invalid, then print the average of everything

In C++

In C++ Write a program that accepts numbers from the user (potentially

Write a program that accepts numbers from the user (potentially floating point) until they enter something invalid, then print the average of everything they entered. Do not print a prompt for the user, your only output for the program should be a line that looks like: Average: ### (Replace ### with the correct average) If the first input is invalid, print the following error message instead Error: division by zero

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!