Question: Using this code, please create a class that satisfies the prompt, thank you. #include using namespace std; int main() { int n = 0; double

 Using this code, please create a class that satisfies the prompt,

Using this code, please create a class that satisfies the prompt, thank you.

#include using namespace std;

int main() { int n = 0; double total=0, average, temp, numBills=0; //Reading number of Months the user wants to find the average for cout> numBills; do{ n++; cin>>temp; total += temp; }while(n There has to be at lease1 class present in this assignment. Incase youforgot, the specs and examplefor assignment 3 is below. You are required to build a C++ program that allows a userto calculate their average monthly grocery bill. A user should be ableto enter a total grocery balance forx number of months and seethe average of that total based onthe number of entries. Please see the example below for howthe execution screen should look. (I only used 4 entries, but the user should be able to enter as many as they desire.) Example: 100 200 500 200 Your total amount is $1,000 ur average grocery spendingis $250

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!