Question
I need help with creating #Flowgorithm, I tried several times, it does not work out. I tried to upload the photos of my flowgorithm, it
I need help with creating #Flowgorithm, I tried several times, it does not work out. I tried to upload the photos of my flowgorithm, it does not work. #Flowgorithm, not Flowchart. Thank you.
REQUIREMENTS
This program will calculate payroll for hours worked. The program prompts the user to enter an employees hourly pay rate and the number of hours worked. It will Validate the users input so that only pay rates in the range of $7.50 through $18.25 and hours in the range of 0 through 40 are accepted. The program will display the employees gross pay.
Pseudo Code
Module main()
Declare Real payRate = 0.0
Declare Integer hoursWorked = 0
Declare Real grossPay = 0.0
Display Enter pay Rate (range of $7.50 through $18.25): $
Input payRate
Display Enter hours worked (range of 0 through 40):
Input hoursWorked
While isValidRate(payRate) == false OR isValidHours(hoursWorked) == false
Display Error: payRate or hours out of range!
Display Enter pay Rate (range of $7.50 through $18.25): $
Input payRate
Display Enter hours worked (range of 0 through 40):
Input hoursWorked
End While
Set grossPay = getPay(payRate, hoursWorked)
Display Your grossPay is $, grossPay
End Module
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started