Calculates an employees wage for a week

Assignment Help C/C++ Programming
Reference no: EM13189492

Write a program that calculates an employee's wage for a week. An employee's wage is calculated as follows:

(I) if the number of hours is less than or equal to 40, then the total payment is hour *rate:

(2) if the number of hours is greater than 40 then the overtime pay is I% times your regular rate of pay;

(3) If the week has public holiday and if the number of hours is greater than 40 then the overtime pay is I% times your regular rule of pay plus 8 *rate for holiday pay

You need to prompt user to input three numbers: two double numbers: one is hour and the other is rate (per hour rate); one integer number: either Ito represent holiday week or other number to represent a regular week. Then. according to the values of hours, calculate the total pay

Enter hour:: 4S.$

 

Enter hour rate: SI0.S8

 

Is this a public holiday week (1 - ye-.      1

 

Ou worked 45.58 hour: this weak.

 

our hour rate I: $10.50. molar pay: 5420.00 ertlne pay: $86.63

 

MSc holiday pay: $84.00

 

eta! pay: SS90.63

rest any key to continue .

SAVE the file as:        Ins gn I .epp

 

PRINT assign Lepp

 

E-MAIL assign Lepp

Reference no: EM13189492

Questions Cloud

How far is the ship from the base of the lighthouse : From the top of a 175 ft lighthouse, the angle of depression to a ship in the ocean is 23°. How far is the ship from the base of the lighthouse? Round your answer to the nearest foot.
What are the lengths of the edges giving the minimum surface : A closed rectangular box has a volume of 32 cubic centimeters. What are the lengths of the edges giving the minimum surface area?
Will resources flow toward or away from the bakery good : With current technology, suppose a firm is producing 400 loaves of banana bread daily. Also assume that the least-cost combination of resources in producing those loaves is 5 units of labor, 7 units of land, 2 units of capital, and 1 unit of entre..
Find the radius of the tank to the nearest hundredth : a spherical tank has a capacity of 750 gallons. using the fact that one gallon is about .1337 ft^3, find the radius of the tank to the nearest hundredth of a foot.
Calculates an employees wage for a week : Write a program that calculates an employee's wage for a week. An employee's wage is calculated as follows - if the number of hours is less than or equal to 40, then the total payment is hour rate
Find the cost of manufacturing of each article : He estimates the profit on his outlay including the manufacturing of rejected articles to be 20 %.Find the cost of manufacturing of each article.
Bird-foot delta : Why is a bird-foot delta like that of the present-day Mississippi below New Orleans likely to change naturally toward one with the shape of an equilateral triangle like the upper-case Greek letter delta (?)?
Find the two that have the maximum product : Of all numbers whose sum is 50, find the two that have the maximum product. That is, maximize Q=xy, where x+y=50
What could the magazine do in order to maximize profit : A news magazine offers students a discount on the regular subscription rate. The total number of subscriptions is optimal, and, at the current prices, the marginal revenue from the last subscription sold to a student is $6, while the marginal reve..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  The stack parameters will not be const reference

In this second case, the stack parameters will not be const reference parameters because they are temporarily changed before being restored. As an alternative, the parameters could be value parameters (so that changing them does not affect the act..

  This function should accept a two-dimensional

getLowestInRow. This function should accept a two-dimensional array as its argument and an integer as its second argument. The second argument should be the subscript of a row in the array. The function should return the lowest value in the specif..

  Create a program that maintains the required book catalog

Create a program that maintains the required book catalog for the circulation desk of a library.

  Write a program for a college''s admissions office

Write a program for a college's admissions office. Create variables that store a numeric high school grade point average andan admission test score.Print the message "Accept" if the studenthas any of the following:

  You should use pure recursive calls

You should use pure recursive calls completely and count the number of calls the program makes. You should count how many times recursive calls were made.

  Build a table of reynolds numbers at flow velocities

Write a program code to compute and build a table of Reynolds numbers at flow velocities varying from 100 to 1000 ft/sec (at increments of 100)

  Two types of constructors

Explain what constructors do and when they are executed. Explain the two types of constructors. Provide an example class that includes both types of constructor functions and demonstrate how an object would be instantiated using both types of constru..

  Write a c++ program to calculate the gpa of 5 courses

Write a C++ program to calculate the Gpa of 5 courses. When users enter the grades and credits of the courses from the keyboard

  Add 10 people to the line

Add 10 people to the line and process them. Each time you process someone, print out their ticket information. After all 10 have been serviced, print the average wait time. Below is an example of the time calls you will need and a wait function.

  Object oriented programming paradigm is better choice

Explain why object oriented programming paradigm is considered better choice than structured programming paradigm. Does it reflect our "natural" way of thinking or do you find it artificial?

  Struct complex

A complex number can be represented by two parts, real and image. A series complex data can be organized as a group of elements by linked list, which is shown as below: struct Complex

  Complete the payroll program with following driver object

complete the payroll program with the following driver objects.

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