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, 23.06.2019 17:00
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the can apple do to fix this issue?
Answers: 1
question
Computers and Technology, 23.06.2019 18:40
Johnson enterprises uses a computer to handle its sales invoices. lately, business has been so good that it takes an extra 3 hours per night, plus every third saturday, to keep up with the volume of sales invoices. management is considering updating its computer with a faster model that would eliminate all of the overtime processing.
Answers: 2
question
Computers and Technology, 25.06.2019 03:30
All nate specialties are offered at two levels, a. journeyman and master. b. installation and service. c. apprentice and journeyman. d. heating and air conditioning.
Answers: 1
question
Computers and Technology, 25.06.2019 07:30
What does the hard disk drive do? it stores all of the information on a computer. it controls a computer’s operating system. it enables visual interaction with a computer. it contains all of a computer’s internal parts.
Answers: 1
You know the right answer?
C++ only

A student has established the following monthly budget:

Housing $...
Questions
question
Mathematics, 11.03.2021 22:30
question
English, 11.03.2021 22:30
question
Health, 11.03.2021 22:30
question
Mathematics, 11.03.2021 22:30
question
Chemistry, 11.03.2021 22:30
Questions on the website: 13722359