193k views
1 vote
write a pseudocode to represent the logic of a program that allows a user to enter an hourly pay rate and hours worked. the program outputs the user's gross pay

User Jahmani
by
7.2k points

1 Answer

3 votes

Answer:

I used the standard OUTPUT command, but you might use PRINT, depending on what was included in your class instructions.

OUTPUT 'What is the hourly pay?'

INPUT user inputs the hourly pay

STORE the user's input in the hourlyPay variable

OUTPUT 'What is the number of hours worked?'

INPUT user inputs the number of hours worked

STORE the user's input in the numHours variable

SET grossPay as the product of hourlyPay and numHours

OUTPUT 'Thanks, the gross pay is " grossPay

User Stanley
by
8.2k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.