Computers and Technology
Computers and Technology, 25.12.2019 06:31, raul2372

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.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 00:20, kathlynskare06
Ihave been given the number of guns per 100, and the total firearm-related deaths per 100,000. i have to find the actual number of guns per country and actual number of gun-related deaths. if somebody could show me how to do 1 question, i can finish the rest, i am just confused. tia
Answers: 3
image
Computers and Technology, 24.06.2019 08:10, anthonysutton82
Where are american poets found in the dewey decimal system
Answers: 1
image
Computers and Technology, 24.06.2019 12:50, neptunesx
Write a new lc-3 trap subroutine (i. e. a subroutine that will be invoked via the trap instruction) that will receive a numeric digit entered at the keyboard (i. e. an ascii character), echo it to the screen, and return in r0 the corresponding numeric value: so if the user types the digit '7', the character '7' will appear on the screen, but the value returned in r0 will be b0000 0000 0000 0111 (#7) you may not use any trap calls in your code - you must implement the "polling" code that interrogates the keyboard status and data registers. ; getnum_tsr ; a subroutine for obtaining a numeric value ; given ascii numeric digit input to keyboard. ; the numeric digit is echoed to the console (e. g. '7' = b0000 0000 0011 0111), ; but the value returned in r0 is the actual numeric value ; corresponding to the digit (e. g. b0000 0000 0000 0111 =
Answers: 3
image
Computers and Technology, 24.06.2019 14:00, MK100
What are the different components of the cloud architecture?
Answers: 2
Do you know the correct answer?
Create a console application, no user defined class is necessary for this program, all code is to be...

Questions in other subjects:

Konu
History, 07.10.2019 15:30
Konu
Social Studies, 07.10.2019 15:30
Konu
Mathematics, 07.10.2019 15:30