Calculate and display the total pay for all employees

Assignment Help Other Subject
Reference no: EM133650150

Question: Write the Raptor code to solve the following problem.

All code will be written one Raptor file.

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

1 and 15. If the user enters an invalid input for the number of employees, issue an error message and ask again.
b. Once you have the correct number of employees, input the given number of employees' last name, hours worked and pay rate. You need to use 3 arrays, one for the names, one for the hours worked and one for pay rate.

c. Display the header "EMPLOYEE REPORT 03/20/2023"

d. Display the names, hours worked and pay rate in a tabular format (look at my example, below). Don't worry about the exact formatting, if the data doesn't line up depending on the names you enter.

e. Calculate pay, by multiplying hours and rate and store the data in another array.

If the number for hours worked is more than 40 hours, pay rate is calculated as double the regular rate.

f. Calculate and display the total pay for all employees.

g. Calculate and display the average of the pay for all employees.

h. Display the header "FINAL REPORT 03/20/2023"

i. Display the names, hours worked, pay rate, and pay in a tabular format.

j. Ask the user for an employee name and display his/her pay. If the employee's name is not in the list, issue an error message.

Reference no: EM133650150

Questions Cloud

Report on the coral reef : report, there should be no less than three references. Please do not use Wikipedia as a source - The Earth is comprised of major coral reefs
What are thoughts contractual agreement in sports law impact : What are your thoughts Contractual agreements in sports law impact the rights and obligations of athletes, teams, and sponsors in many ways.
What are proxy data : What are proxy data? List several examples of natural climate change. Do natural climate change mechanisms account for the recent climate changes that Earth
What concept is used to derivatively classify the statement : The new document states: (C) Squadron commanders will attend the meeting. What concept is used to derivatively classify the statement in the new document?
Calculate and display the total pay for all employees : Calculate pay, by multiplying hours and rate and store the data in another array and Calculate and display the total pay for all employees
What impact does the faith doctrine have on modern church : What impact does the Faith doctrine have on the modern church?
What type of leasehold estate does the situation represent : Kathleen signs a lease to rent a beachside cottage. At the end of the month, Kathleen sends a rent. What type of leasehold estate does this situation represent?
Can you have a religion without the concept of a soul : Can you have a religion without the concept of a soul? What is the soul? What exactly is a religion? Does it require a belief in the divine?
Explain the rationale for using mesos in the negotiation : Your boss has not taken a negotiation course and does not understand the rationale for using MESOs. Explain the rationale for using MESOs in the negotiation.

Reviews

Write a Review

Other Subject Questions & Answers

  Define and discuss: prostitution, sex trafficking

Define and discuss: prostitution, sex trafficking, online sex trafficking, child pornography and present the purpose of the statutes and some recent trends

  Analyses application of contemporary change management

analyses and evaluates the application of contemporary change management practice and its relevance to the case study organization

  What are the most effective strategies for improving public

What are 6 papers relevant to the study 'What are the most effective strategies for improving the public health of the working class?

  Design a death education course using given information

Design a death education course that would help you deal with your own death or the death of a loved one. Prepare an outline of all of the topics you would.

  How has the failure of the international trade organization

How has the failure of the International Trade Organization impacted subsequent attempts to tie trade globalization to the introduction of progressive social

  Describe how far have you come

Describe how far have you come and how much further do you wish to go in improving your competencies during the next two years of practice.

  Comprehensive compensation and benefits package

Describe the differences between direct and indirect compensation including examples of each. Explain the different choices an organization has in developing a comprehensive compensation and benefits package?

  Analyze mission and vision statements of the organization

Analyze the mission and vision statements of the organization from the perspective of each of the identified stakeholders. Assess the organization's approach.

  Write description of the activities

Submit a draft of your implementation section. You will give a detailed description of the activities leading to achieving the objectives.

  What are the key features of hpo

Class- One of my favorite management approaches is the High Performance Organization or HPO. I have conducted research in this area and am working on a paper.

  What do you consider to be the source of ethics

What are business ethics and how are they developed? What do you consider to be the source of ethics?

  Discuss your anticipation of experience and immersion plan

Discuss your anticipation of the experience. Are you nervous or anxious about anything? Why or why not? What is your immersion plan?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd