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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:30
When creating a presentation in libre office impress, where does the editing of slides take place? a. the slides panel b. the center panel c. the tasks panel, under the masters pages tab d. the tasks panel, under the layouts tab
Answers: 3
question
Computers and Technology, 22.06.2019 22:40
Least square fit to polynomial write a function leastsquarefit3pol that solves a linear system of equations to find a least squares fit of a third order polynomial to an experimental data set given as two row arrays. the function leastsquarefit3pol must explicitly solve a set of linear equations and cannot use polyfit. there should be no restriction on the size of the problem that can be solved.
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
Negative methods of behavior correction include all but this: sarcasm verbal abuse setting an example for proper behavior humiliation
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Facial expressions and gestures are examples of messages.
Answers: 3
You know the right answer?
Create a console application, no user defined class is necessary for this program, all code is to be...
Questions
question
Mathematics, 26.06.2019 01:00
question
Mathematics, 26.06.2019 01:00