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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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