Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

There should be 3 functions in the program: 1. Displays the table 2. Processes the users selection 3. Determines the amount over or under budget

image text in transcribed
There should be 3 functions in the program:
1. Displays the table
2. Processes the users selection
3. Determines the amount over or under budget for the month.
A student has established the following monthly budget Housing Utilities Transportation Food Entertainment Miscellaneous 500.00 150.00 50.00 250.00 150.00 50.00 Write a program that stores the following data about each budget category in a structure called Category: The name of the category The amount allocated to the category The amount spent on that category so far this month The program should keep an array of these structures, one per category. When the program runs, it should initialize the array using the data above, and 0 for the amount spent so far this month Then it should repeat a loop that performs the following steps: The user should see a table of the categories with the allocated amounts, and amount spent so far this month The user can choose to select a category, display the table, or quit. When a category is selected, the user can enter an amount of money to be added to the amount spent on that category so far this month When the user quits the program, the program should display a message indicating the amount over or under for the entire monthly budget. Please see sample output in the file output1.pdf on the class website. Note: your output should look at least as nice as mine (data lined up in columns, formatted to two decimal points, etc)

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

Step: 3

blur-text-image

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

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

2. What type of team would you recommend?

Answered: 1 week ago

Question

What was the role of the team leader? How was he or she selected?

Answered: 1 week ago