alyssakim4933 alyssakim4933
  • 11-04-2019
  • Computers and Technology
contestada

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

Respuesta :

sylvain96
sylvain96 sylvain96
  • 21-04-2019

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

Answer Link

Otras preguntas

A 30.0 mole% co and 70.0 mole% n2 gas mixture is stored in a cylinder with a volume of 3.5 ft3 at a temperature of 85°f. the reading on a bourdon gauge attached
Help! please solve number 5 a-e
A black cat and a white cat have four black kittens in the f1 generation. in the f2 generation, there are three black kittens and one white kitten. explain how
Every piece of content covered in class will be on a unit test True or False
A satellite is orbiting the Earth at the rate of 25 kilometers per minute. How far will it travel in two hours? a. 3000 kilometers b. 50 kilometers c. 1400 kilo
Ndicate the kinds of intermolecular forces that would occur between the toluene and hexane:
Can someone help me?
What is the molecular formula of a hydrocarbon with m+ = 114? (write the formula with no subscripts, e.g. c4h10.)?
On achète _______ à la boucherie.
Can someone help me?