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
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..
|