subject

Create a console application, no user defined class is necessary for this program, all code is to be implemented in main.

2. declare variables that will hold an hourly wage, number of hours worked.

3. prompt the user to enter values for hourly rate and hours worked. (don't forget to convert the text console inputs)

4. compute the gross weekly pay calculated as hours times rate for the the first 40 hours times 1.5 times the rate for any hours over the first 40 hours.

5. compute the net pay as the gross pay minus withholding; withholding is calculated as 28 percent of gross pay if gross pay is greater than $1000 21 percent of gross pay if gross pay is greater than $600 and less than or equal to $1000 10 percent of gross pay if gross pay is less than or equal to $600

6. display the input/output as something like the following: enter hourly pay rate 30.00 enter hours worked 50 gross pay is $1650 and net pay is $1188 press any key to continue . .

this will require some analysis of the problem before coding is accomplished. it will require an if-else statement to compute gross hours depending on whether hours is 40 or greater than 40. it will require a second if-else statement with a nested if-else to set the withholding rate dependent on the percentage rates listed in requirement 5 above.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 17:00, ayoismeisjjjjuan
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the can apple do to fix this issue?
Answers: 1
image
Computers and Technology, 23.06.2019 18:30, janny48
How often does colleges update the cost of attendance on their website? . a)every two years b) every four years c) every year d) every semester
Answers: 1
image
Computers and Technology, 24.06.2019 05:30, roderickhinton
Someone plzz me which of these defines a social search? a. asking a search engine a question that is answered by a real person on the other sideb. modifying search results based on popularity of a web pagec. modifying search results based on a ranking of a web page
Answers: 2
image
Computers and Technology, 24.06.2019 13:30, lorelaistudent
Does anybody know how to hack into a google account? i had important information on it and it is gone now and i need getting it back.
Answers: 1
You know the right answer?
Create a console application, no user defined class is necessary for this program, all code is to be...

Questions in other subjects:

Konu
Social Studies, 05.10.2020 15:01
Konu
Spanish, 05.10.2020 15:01
Konu
Chemistry, 05.10.2020 15:01