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

  Draws a pyramid consisting of bricks

Write a C program that draws a pyramid consisting of bricks arranged in horizontal rows, so that the number of bricks in each row decreases by one as you move up the pyramid.

  Extend the definition of the class clocktype by overloading

a. Extend the definition of the class clockType by overloading the post-increment operator function as a member of the class clockType

  File containing a series of integers is named

Assume that a file containing a series of integers is named numbers.dat and exists on the computer's disk. Design a java program that reads all the numbers stored in the file and calculates and displays on the console

  Program to next the loops in either direction

You can write your program to next the loops in either direction, that is, process row-by-row or column-by-column. Explain which way you would choose to process the data.

  Write a program for keeping a course list

Write a program for keeping a course list for each student in a college. The information about each student should be kept in an object that contains the student's name and a list of courses completed by the student.

  Compute a program that calculates three resistance inputs

C language, compute a program that calculates three RESISTANCE inputs, and gives you the total resistance in OHMS. Like this, the total resistance is _____ ohms. These are three parallel circuits so the formula would be (1/R1 + 1/ R 2 +  1/ R 3 )  -1

  Print out the sum of all numbers, the average

Write a program that reads in a list of integer numbers and print out the sum of all numbers, the average, the lowest and the highest value entered. The first input number indicates how many numbers the program is attempting to read

  Store a list of student info

Store a list of student info, (id number, First name and Last name) using a link list. The ID is the key field. The program should implement a linked list using arrays.The program should process the following operations

  The program should support a ''new'' feature

Write a GUI program that represents a simple Notepad clone. The program should support a 'new' feature that clears the text buffer, a save feature that writes to a file using a PrintStream

  Throws an exception from a deeply nested

Write a program that throws an exception from a deeply nested function and still has the catch handler following the try block enclosing the initial call in main catch the exception

  Write a program that uses 3 input files and 3 output files

write a program that uses 3 input files and 3 output files.

  Saddle point is an element

For a square nXn a array, a saddle point is an element that is the maximum in its row and the minimum in its column.

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