Code Accounting program

Hi guys, This is for a class im taking and this is my hmwrk. Which im practically lost on starting this one. You guys input is superbly appreciated.

During the tax season, every friday, J&J accounting firm provides assitance to people who prepare their own tax returns. Their charges are as follows.

a. If a person has low income (<=25,000) and the consulting time is less than or equal to 30 minutes, there are no charges; otherwise, the service charges are 40% of the regular hourly rate for the time over 30 minutes.

b. for other, if the consulting time is less than or equal to 20 minutes, there are no service charges; otherwise, service charges are 70% of the regular hourly rate for the time over 20 minutes.

(For example, suppose that a person has a low income and spent 1hr. and 15 minutes, and the hourly rate is $70.00. The the billing amount is 70.00x 0.40x(45 / 60) - $21.00

Write a program that prompts the user to enter the hourly rate, the total consulting time, and whether the person has low income. The program should output the billing amount. Your program must contain a function that takes as input the hourly rate, the total consulting time, and a value indicating whether the person has low income. The function should return the billing amount. Your program may prompt the user to enter the consulting time in minutes.
As all I/O programs, split it in three steps:

a) Ask & read input (Use: <iostream>, std::cin)
b) Evaluate the input (Use: if/else conditionals)
c) Write output (Use: <iostream>, std::cout)

If you have specific questions, feel free to ask. Don't forget to include your code (using code tags!).
Topic archived. No new replies allowed.