Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ NOTE: I had already uploaded this question once and it was not working..Please upload the screenshot of the output and a provide the code

C++

NOTE: I had already uploaded this question once and it was not working..Please upload the screenshot of the output and a provide the code that is copyable directly into visual studio thanks.

Write a program that reads in budget information for 3 different budget categories (House - H, Bill - B, Other - O) into an array or arrays. Create functions that will interact with your budget categories. First, allow the user to set a budget amount for each of the budget categories. As shown below:

For example,Please enter budget amount for the house category: -150.00

Please enter a positive amount.

Please enter budget amount for the house category: 150.00

Please enter budget amount for the bill category: 120.00

Please enter budget amount for the other category: 300.00

Your total budget is $570.00

Once you have your budget amounts, display a menu to the user to add a new item(s) for one of the budget category, just show a budget report, or even exit.

Menu information:

Enter 1 to add a new purchased or payed item.

Enter 2 to show budget report.

Enter 3 to exit the budget program.

Which task would you like to do: 1

If 1 is entered I would like for your program to use a switch statement.

Which item did you purchase or pay for:

H for House

B for Bill

O for Other

: H

What house item is purchase or pay for: Rent 150.00

Do you want to enter another house item (yes y or no n): n

Index

House

Bill

Other

0

Rent

150.00

If 2 is entered, show the report.

Your budget total is $570.00

House item(s):

Rent 150.00

Remaining budget is :0.00

Bill item(s):

Remaining budget is :120.00

Other item(s):

Remaining budget is :300.00

Your new budget total is 320.00

If 3 is entered, before exiting the program, save the budget information out to a text file calledbudgetOutput_LastNameFirstName.cpp and exit the program.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions