Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a C++ executable program that calculates how much money you are spending

ID: 3546363 • Letter: C

Question

Create a C++ executable program that calculates how much money you are spending on average per day in a week. The program will calculate the total average, as well as the average of what you spend in the following categories: food, clothing, school-related expenses, and outside entertainment.

You will ask the user how much he/she spends in each category for each day and keep a running total for each category. Use static variables to keep track of these amounts, as you will revisit a function containing the loop structure(s) for each day.

You will also need an average function that calculates all of the averages. Organize the main program to call input and output functions. The input function will be responsible for updating the totals, and the output function will calculate and display the results.

Note that these functions will most likely call other functions to accomplish tasks. Use value and reference parameters as necessary.

Explanation / Answer

#include using namespace std; void getscore(int food, int clothes, int school, int entertain); void calcaverage(double food, double clothes, double school , double entertain); int main() { static int food; static int clothes; static int school; static int entertain; cout