So I need help with this assignment, I'm seriously stuck on what to do.
If someone could code it for me that would be great.
I want to make a program that prompts the user for:
1. Base Hourly Rate
2. Base Hours Worked
3. Overtime Hours Worked
b. Using a 'while' loop to ensure that the user enters valid data above (only accept positive numbers)
c. Use a const float of 1.5 to determine overtime rate
d. Use a const float of 0.25 for income tax rate if total gross income exceeds
$1000. Otherwise, use a tax rate of 0.15.
e. Calculate and display
1. Base Amount Earned
2. Overtime Amount Earned
3. Gross Wages (Gross Wages = i + ii) iv. Taxes
4. Net Wages (Net Wages = Gross Wages – Income Tax)
The output should look something similar to this:
What is the base hourly rate? -7.25 [entered]
What is the base hourly rate? 7.25 [entered]
How many overtime hours? 10 [entered]
How many base hours were worked? 40 [entered]
Please note, that this is not a homework site. We won't do your homework for you. The purpose of homework is that you learn by doing. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.
We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again.