Answer to Question #245970 in C++ for Lyn

Question #245970
Write pseudocode to represent the logic of the following program:
• The program allows the user to enter three values.
• The values represent hourly pay rate, the number of hours worked
this pay period, and percentage of gross salary that is withheld.
• The program multiplies the hourly pay rate by the number of hours
worked, giving the gross pay.
• Then, it multiplies the gross pay by the withholding percentage,
giving the with- holding amount.
• Finally, it subtracts the withholding amount from the gross pay,
giving the net pay after taxes.
• The program outputs the net pay.
1
Expert's answer
2021-10-03T06:35:36-0400
input payRate, workedHours, percentage;
double grossPay = payRate * workedHours;
double netPay = grossPay * (100-percentage/100);
output netPat;

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS