Answered step by step
Verified Expert Solution
Question
1 Approved Answer
how does this look in raptor? a ) Ask the user for the number of employees in a company for which we like to calculate
how does this look in raptor?
a Ask the user for the number of employees in a company for which we like to
calculate pay. Make sure the number of employees entered by the user is between
and If the user enters an invalid input for the number of employees, issue
an error message and ask again.
b Then, input the given number of employees last name, hours worked and pay
rate. You need to use arrays, one for the names, one for the hours worked
and one for pay rate.
c Display the header PAY REPORT
d Display the names, hours worked and pay rate. Display the data in a tabular
format look at my example, below Tabular format just means that you display
all the arrays in one loop. Dont worry about the exact formatting if the data
doesnt line up depending on the names you enter.
e Calculate pay, by multiplying hours and rate and store the data in another array.
f Calculate and display the total of the pay for all employees.
g Display the header FINAL PAY REPORT IN REVERSE of INPUT!
h Display the name, hours worked, pay rate and the pay for all employees in a
tabular format in the reverse order the data was entered see the example in the
sample run NOTE: YOU ARE NOT sorting the data. You just write the last
element of the array first, etc
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