-
Challenge 1
Write a program that reads in the name, hourly rate and number of hours worked for 5 people. Print the name of each person, the number of hours worked, their weekly pay based on the number of hours they worked and how much they owe in taxes. Assume that taxes take 20% of the paycheck. Don’t forget to take the taxes out of the pay check. If they work more than 40 hours they get overtime. The hourly rate is then 1.5 times normal for all hours past 40.
Example (Sample input & output for one person)
Enter name: Glenn
Enter hourly rate: 4.00
Enter hours worked: 75
Pay to: Glenn
Hourly rate: 4.00
Hours worked: 75.0
Amount paid: $370.00
Taxes paid: $74.00
-
And this is? We wont write your entire code for you. Start and come back when you run into a specific problem. If you need help with how to start, well there are tutorials on the web (C programming.com - Your Resource for C and C++ Programming) for instance.
-
I prefer my challenges a bit more... challenging...
And damn, 20% taxes? What country is that - I got to move there. Stupid >50% taxes here...
-
Aah, I see you are trying to fool us all into take on your challenge, and thereby doing your homework. :D
-
Will you stop posting a hundred threads for the same thing already???
-