Calculate Expenses & Savings? (Modules w/ Global Variables)

Stuck and need some help! Write a program that inputs the income and costs (rent cost, bills, food cost) and returns the total expenses and the total savings.



The test that the program needs to pass is:



Input:

Income 1,000

Rent 100

Bills 100

Food 100

(Total monthly expenses are 300.00)



Monthly savings is 700.00
Hello newprogrammer916, what have you tried so far? Show which parts of the code you're having trouble with.
If you don't know how to start, check out the site's tutorials.

Basic Input/Output: http://www.cplusplus.com/doc/tutorial/basic_io/
Topic archived. No new replies allowed.