Thread: i just need some quick advice...

  1. #1
    Unregistered
    Guest

    i just need some quick advice...

    ok...i don't need anyone to write this program for me or give me any code...i just want some advice on what i could and should use to do this program...arrays, loops, functions...just a general overview would help me out so much...but remember, i'm a newbie...so...if you help me out...don't get too advanced on me..lol....

    Write a program to keep a budget. There are five numbered budget categories: 1 for food, 2 for housing, 3 for clothing, 4 for utilities, and 5 for entertainment. The program will display the categories, showing the number of each category, and then the user and the program will refer to categories by number rather than name. The user may name any category by number and then enter an amount. The program records the amount spent and keeps track of the total amount spent in each category. When the user indicates that he or she wants to see the totals, the program prints out the amount spent in each category and the total amount spent in all categories combined. The user may enter more amounts after seeing the total and may ask for a new total later on.

  2. #2
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    while(!quit)
    {
    print menu
    get menu choice
    . if(adding expense)
    . increment expense var
    . else if (printing expense)
    . print expense value
    }

    Kinda get it?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Some quick advice
    By Cdrwolfe in forum C++ Programming
    Replies: 5
    Last Post: 11-10-2005, 04:06 PM
  2. Do you know...
    By davejigsaw in forum C++ Programming
    Replies: 1
    Last Post: 05-10-2005, 10:33 AM
  3. girl friend advice (prob. the wrong place)
    By B0bDole in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 10-22-2004, 06:38 PM
  4. Questions on basic Quick Sort
    By Weng in forum C++ Programming
    Replies: 4
    Last Post: 12-16-2003, 10:06 AM
  5. Quick Sort Help
    By NavyBlue in forum C Programming
    Replies: 1
    Last Post: 03-02-2003, 10:34 PM