subject

C++ only

A student has established the following monthly budget:

Housing $500.00

Utilities $150.00

Household Expenses $65.00

Transportation $50.00

Food $250.00

Medical $30.00

Insurance $100.00

Entertainment $150.00

Clothing $75.00

Miscellaneious $50.00

Write a program that has a MonthlyBudget structure designed to hold each of these expense categories. The program should pass the structure to a function that asks the user to enter the amounts spent in each budget category during a month. The program should then pass the structure to a function that displays a report indicatin the amount over or under in each category, as well as the amount over or under for the entire monthly budget.

1st test case:

input:

500 125 85 40 225.50 0 100 150 75 52.75
expected output:

Enter housing cost for the month:$↵
Enter utilities cost for the month:$↵
Enter household expenses cost for the month:$↵
Enter transportation cost for the month:$↵
Enter food cost for the month:$↵
Enter medical cost for the month:$↵
Enter insurance cost for the month:$↵
Enter entertainment cost for the month:$↵
Enter clothing cost for the month:$↵
Enter miscellaneous cost for the month:$↵
Housing Even↵
Utilities Under↵
Household Expenses Over↵
Transportation Under↵
Food Under↵
Medical Under↵
Insurance Even↵
Entertainment Even↵
Clothing Even↵
Miscellaneous Over↵
You were $66.75 under budget
2nd test case:

your input:

500 175.25 40 40 225.50 0 100 75.85 50 60.70
expected output:

Enter housing cost for the month:$↵
Enter utilities cost for the month:$↵
Enter household expenses cost for the month:$↵
Enter transportation cost for the month:$↵
Enter food cost for the month:$↵
Enter medical cost for the month:$↵
Enter insurance cost for the month:$↵
Enter entertainment cost for the month:$↵
Enter clothing cost for the month:$↵
Enter miscellaneous cost for the month:$↵
Housing Even↵
Utilities Over↵
Household Expenses Under↵
Transportation Under↵
Food Under↵
Medical Under↵
Insurance Even↵
Entertainment Under↵
Clothing Under↵
Miscellaneous Over↵
You were $152.70 under budget

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:40
Adna sequence encoding a five-amino acid polypeptide is given below. …… …… locate the sequence encoding the five amino acids of the polypeptide, and identify the template and coding strand.
Answers: 1
question
Computers and Technology, 22.06.2019 08:40
What are the three parts to physical security standards for various types of army equipment and the risk level
Answers: 2
question
Computers and Technology, 22.06.2019 15:00
Which of the following has not been attributed at least in part to social media a. drug addiction b. depression c. kidnapping d. murder
Answers: 2
question
Computers and Technology, 22.06.2019 18:00
Martha is a healer, a healthcare provider, and an experienced nurse. she wants to share her daily experiences, as well as her 12 years of work knowledge, with people who may be interested in health and healing. which mode of internet communication can martha use?
Answers: 3
You know the right answer?
C++ only

A student has established the following monthly budget:

Housing $...
Questions
question
English, 21.11.2019 09:31
question
Mathematics, 21.11.2019 09:31
question
Mathematics, 21.11.2019 09:31
Questions on the website: 13722359