Project 02 : Monthly Budget
Due Saturday at 5:00 PM MST
Write a program to manage your personal finances for a month. This program will ask you for your budget income and expenditures, then for how much you actually made and spent. The program will then display a report of whether you are on target to meet your financial goals.
Interface Design
The following is an example run of the program. An example of input is underlined.
This program keeps track of your monthly budget Please enter the following: Your monthly income: 1000.00 Your budgeted living expenses: 650.00 Your actual living expenses: 700.00 Your actual taxes withheld: 100.00 Your actual tithe offerings: 120.00 Your actual other expenses: 150.00 The following is a report on your monthly expenses Item Budget Actual =============== =============== =============== Income $ 1000.00 $ 1000.00 Taxes $ 0.00 $ 100.00 Tithing $ 0.00 $ 120.00 Living $ 650.00 $ 700.00 Other $ 0.00 $ 150.00 =============== =============== =============== Difference $ 0.00 $ 0.00
A few hints:
- A tab used for most of the indentations and nowhere else.
- There are 15 '='s under Income, Budget, and Actual.
- The user's monthly income is used both for the Budget value and for the Actual value
- The Budget value for Taxes, Tithing, and Other will always be zero. Also the Difference, both Budget and Actual, will be zero. We will compute these in the next two parts of this project.
Input & Output
Your Ponder & Prove assignment for this week is to prompt the user for the six monthly budget items and display the results in an easy-to-read table. Please follow these steps:
- Copy the course template from:
/home/cs124/template.cpp
- Compile and run the program to ensure that it works as you expect.:
g++ project02.cpp
- Test the program with testbed and fix all the errors:
testBed cs124/project02 project02.cpp
- Run the style checker and fix all the errors:
styleChecker project02.cpp
- Submit it with "
Project 02, Monthly Budget
" in the program header:submit project02.cpp
An executable version of the project is available at:
/home/cs124/projects/prj02.out
The grading criteria are:
Exceptional 100% |
Good 90% |
Acceptable 70% |
Developing 50% |
Missing 0% |
|
---|---|---|---|---|---|
testBed 60% |
Passes testBed |
Looks correct on screen but there are testBed errors |
Zero compile errors | A compile error | Program does not resemble the problem definition |
styleChecker 40% |
Great variable names, no errors, great comments | No styleChecker errors |
A few styleChecker errors |
Misleading variable names or gross style errors | Little effort was spent on style |