Calculate the amount of salary received for each employee

Assignment Help Basic Computer Science
Reference no: EM13844498

A company owned by First Avenue has a salary system based on position level. Employee salary is being paid on a weekly basis. The company has 30 employees, which comprises of a manager (fixed salary), cooks (salary on hourly basis), salesperson (fixed salary and sales commission). Below shows the details of salary payment for each position level.

1) Position level : Manager

Salary paid per week : Fixed salary

2) Position level : Cooks

Salary paid per week : First 30 hours - fixed rate every hour. The next following hours, overtime rate at 1.5% of the fixed rate hourly

3) Position level : Salesperson

Salary paid per week : $300 plus commission 8.5% of the total sales per week.

Calculate the amount of salary received for each employee based on their position level in the company.

Given is the input, output, solution/formula, and constraint for the above problem :

Inputs:

*fixed input:

- fixed salary for a manager

- fixed rate for cooks

- basic salary for salesperson

- commission rate

*user's input:

- position category

- total working hours for cooks

- total sales for salesperson

Outputs:

- position category

- total income

Solution/Formula:

1) Income for a manager is fixed

2) Income for cooks is calculated by multiply total working hours with fixed rate:

2.1 if total working hours less than or equal 30 hours,

Total income = total working hours * fixed rate

2.2 if total working hours more than 30 hours

Total income = 30 * fixed rate + total working hours - 30 * 1.5 * fixed rate

3) Total income for a salesperson = $300 + commission rate * total sales per

Constraints:

- total working hours can not exceed than 168 hours

- total working hours must be entered for cooks

- total sales must be entered for salesperson

so, have to write a C++ program to calculate.

Reference no: EM13844498

Questions Cloud

What statistics or ideas were most suprising : What are some of the common threads between the solutions Steffan said he was looking for and what geodesign aims to do? What are examples from his talk of design that promotes life? What statistics or ideas were most suprising
How many gallon are added to the tank : How many gallon are added to the tank during the first ten mintutes? Round your answer wih two digits on the right side of decimal point.
How do these issues influence the music we listen : The music recording and radio industries have faced important challenges surrounding the content of music recorded and distributed to listeners. According to Frontline's "The Way the Music Died", various components of the music industry came toget..
32 times a plus b write as a c++ expression : The string that represents the name Julie Nelson
Calculate the amount of salary received for each employee : Calculate the amount of salary received for each employee
Compute bids for deluxe and regular pillows on a total-order : Compute the bids for deluxe and regular pillows on a total-order basis. When required round answers to the nearest cent Regular $ Deluxe $.
Who was the authority in the conversation : Choose one of the moments and describe it to the best of your memory. Include what you remember about the places, participants, emotions and events. What was revealed to you during this moment about language and how it is used? What did you learn ..
Write a program that calculates and prints the take-home pay : Write a program that calculates and prints the take-home pay
What does mechanical engineering do with nuclear engineering : What Does Civil & Environmental and Mechanical Engineering Have to Do with Nuclear Engineering?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Implement the backend for a list

Using an array to implement the backend for a list, create a list class that can contain integers and implements all of the following funtionality via the following functions:List() - the constructor List (const List& 1) - a copy constructor

  What is the output from the following c++ code fragment

What is the output from the following C++ code fragment

  Use the smallest possible array to solve this problem

Use the smallest possible array to solve this problem. Display the complete set of unique value input after the user inputs each new value.

  Write an analytical report describing the impact of breach

The case study focuses on a major IT security breach that occurred in the recent past. Consider yourself as the IT person in charge at TJX. You need to analyze the case and describe the impacts of the breach on TJX.

  What is the length of the string

Consider the string (011) R((01) 2 (01) 0 ) R 1.What is the length of the string over the alphabet {01, 1}?

  What types of databases are used by companies like google

What types of databases are used by companies like Google in implementing worldwide search engines

  Apply the appropriate privacy controls on customer

In your opinion, is it your organization's responsibility to apply the appropriate privacy controls on customer information? Why or why not?

  How many instructions executed in single time slice

Machine executed average of 5000 instructions per microseconds. How many instructions could be executed in a single time slice?

  Which resumes are chosen for further scrutiny

Often a candidate's suitability for a particular job application is determined by the keywords identified by the software used for the purpose of screening.

  Network administrator at netstack college has chosen cisco

The network administrator at Netstack College has chosen Cisco to provide the routers on his network. Recall that there are six buildings on campus with 250 connections each in four buildings, 180 connections in the fifth building, and 80 conne..

  Describe the company the nature of its business

Describe the company, the nature of its business, a specific product or service, and how that product or service is produced and distributed by the company.

  Prove or disprove: every increasing function

Prove or disprove: every increasing function

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