Write a program that calculates an employees wage for a

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

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: EM13380166

Questions Cloud

Consider the following three sets of equationsa write all : consider the following three sets of equations.a write all of the above sets of equations in the matrix format and
In numerical integration and in many other cases we need a : in numerical integration and in many other cases we need a polynomial named legendre polynomial. often the zeros i.e.
1 five reactors linked by pipes are shown in the following : 1. five reactors linked by pipes are shown in the following figure. the rate of mass flow through each pipe is computed
1 social changeshow have the recent changes in information : 1. social changeshow have the recent changes in information technology affected society? are these changes for the
Write a program that calculates an employees wage for a : write a program that calculates an employees wage for a week. an employees wage is calculated as followsi if the number
1 the subset-sum problem is defined as follows given a set : 1. the subset-sum problem is defined as follows given a set b of n positive integers and an integer k can you find a
1 write a script to help users calculate compressed file : 1. write a script to help users calculate compressed file size. prompt the user to enter the original size of a file
Question 1you are required to undertake a detailed analysis : question 1you are required to undertake a detailed analysis of the avl tree sorting algorithm for avlsort.to do this
1distinguish between the terms lsquoerp implementation and : 1.distinguish between the terms lsquoerp implementation and lsquoerp configuration2.explain the purpose of the entity

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Design a program that asks for the number of fat grams

Starting out with Programming logic and design 3rd Author Tony Gaddis - Pg 279, PE 3 Fat Grams Calculator

  Write a recursive definition in sml to reverse

Write a recursive definition in SML to reverse a list of elements and multiply all elements with 2.

  Create two arrays with ten random numbers

Determine the largest difference (only subtract corresponding index numbers) between these two arrays. (hint: create a third array with the differences)

  Analyze the time complexity and space complexity

Develop a simple prototype version of algorithm in C++. Specifically, you will build an in-place, order reversal algorithm - analyze the time complexity and space complexity of your algorithm

  Write a c++ program to grade multiple-choice

Write a C++ program to grade multiple-choice, including True/False, questions for an exam given in a class. A class may have one or more sections.

  A program that takes into account a pre given array

Problem: A program that takes into account a pregiven array and prompts the user to enter a return per minute value.

  Write c program which compute acceleration of jet fighter

Write a C++ program which compute the acceleration (m/s 2) of jet fighter launched from aircraft-carrier based catapult, provided jet's takeoff speed in km/hr

  Write c program that will input two values from the user

write c program that will input two values from the user with a prompt ? that are a value and a base with which you

  You are required to prepare a program for assessment system

you are required to prepare a program for assessment system of a university. the main idea is to evaluate the gpa

  Converts the temperature f in farenheit to c in celsius

Write a program that converts the temperature F in Farenheit to C in Celsius using C = (F-32)*5/9. For ease of programming you can display the result in fractions.

  What is printed by the following program

What is printed by the following program?

  Design class for textbook-data field for grade level of book

Design a class named TextBook that is child class of Book. Include new data field for grade level of book. Create a displayTextBookInfo () method so that you can accommodate new grade-level field.

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