Need Help

This is a discussion on Need Help within the C++ Programming forums, part of the General Programming Boards category; I know i ain't suppose to ask but any help will do. This is the program (1) A program that ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    3

    Question Need Help

    I know i ain't suppose to ask but any help will do.
    This is the program

    (1)
    A program that examines the spending patterns of a user. It should ask the user for the amount spent in the last month on food, clothing, entertainment, and rent, and then display a table showing the percentage of expenditures for each category.
    (2)
    A program that calculates the number of hours of your life that you have spent sleeping. Assume that you sleep 8 hours each night. To simplify the problem, assume that three are always 30 days in each month, and 365 days in each year. The program output should look similar to:
    Enter your birthdate(using numbers for months):
    Month:9
    Day:27
    Year:1984
    Enter today's date(using numbers for months):
    Month:10
    Day:26
    Year:2002
    You have been alive for 6599 days.
    You have slept 59792 hours.

  2. #2
    Registered User
    Join Date
    Oct 2002
    Posts
    3
    These are beginner exercises for C++ and i'm just a beginner. I've been working on these programs for hours and just don't know how to do them???

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    3
    When i try executing them they give me so many error???

  4. #4
    CS Author and Instructor
    Join Date
    Sep 2002
    Posts
    511
    Post your code. We will then help with your error. WE WILL NOT WRITE THE PROGRAM FOR YOU- REMEMBER THIS!!!!!

    Look at the board guidelines!!!!

    These are straight forward problems- do you have your textbook to help. The answer may not be exactly in there-but there are examples in there that can help.

    Think for yourself- please.
    Mr. C: Author and Instructor

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21