Question: Assume that the pseudocode below for each question is a separate working program in your organization and that it needs modifications as described in the

Assume that the pseudocode below for each question is a separate working program in your organization and that it needs modifications as described in the comments (lines that begin with two slashes) at the beginning of the code. Your job is to alter the pseudocode to meet the new specifications as noted above. Please follow directions as specified in the homework assignment instructions file. NOTE: If a function has no changes to be made to it, then it will be in blue font.
1.// This program prompts a user for name, hours worked, and hourly pay rate
// then computes gross pay and displays the name and gross pay. Modify
// the program to use four functions named getName(), getHours(),
// getPayRate(), and computeGross(hours, payRate)that return the name,
// hours, payrate, and gross respectively. You will need to create these // four functions.
start
Declarations
string name
num hours
num payRate
num gross
output "Input name >>"
input name
output "Input hours worked >>"
input hours
output "Input pay rate >>"
input payRate
gross = hours * payRate
output name, " earned $", gross
stop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!