Question: Hello everyone, Could I please get some help with converting this pseucode into a C++ code with syntax that will correctly compile and run in
Hello everyone,
Could I please get some help with converting this pseucode into a C++ code with syntax that will correctly compile and run in DEV C++?
Start
Declarations
num SIZE = 7
num dept_number[SIZE] = 1,2,3,4,5,6,7
string dept_name[SIZE] =Personal, Marketing, Manufacturing,
Computer Services, Sales, Accounting, Shipping
num hourly_salary[SIZE]
num total_hours[SIZE]
getReady()
display()
finishUp()
stop
getReady()
output Enter Department Number
input dept_number
output Enter Hourly Salary
input hourly_salary
output Enter total Hours worked
input total_hours
return
display()
for count = 0 to 6 step 1
output Department Number, dept_number[count]
output Department Name, dept_name[count]
output Gross pay hourly_salary[count]* total_hours[count]
count ++
endfor
return
finishUp()
output End of job
return
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
