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

  Smallest sequence of numbers in the array

Write a function called sum_smallest_sequence() that accepts an array of  signed  integers and the  number  of items in the array as arguments, and returns the sum of the smallest sequence of numbers in the array.

  How nested if-statements replace with one if-statement

Describe how following nested If-statements could be replaced with one if-statement using logical operator (And/Or/Not). Write down the C++ code example.

  Define a class for file that is derived from document

Similarly, define a class for File that is derived from Document and includes a instance variable for the pathname. The textual contents of the file should be stored in the inherited variable text. Redefine the toString method to concatenate all t..

  Implement the readlog function

Implement the readLog function below, which is to (1) read the file, (2) populate a vector for each column, and (3) return the number of lines found.

  Image text transcribed for accessibility

Image text transcribed for accessibility: write a program that requires the number of bits for the exponent and significant of a floating point representation, then requires two decimal real numbers and an operation,sum,subtraction or multiplic..

  Write a program using vectors and iterators that allows a

write a program using vectors and iterators that allows a user to maintain a personal list of dvd titles. the user

  Cashregister class that can be used with the retailitem clas

Write a CashRegister class that can be used with the RetailItem class that you wrote in Part 1. The CashRegister class should simulate the sale of a retail item. It should have a constructor that accepts a RetailItem object as an argument.

  Write a loan calculator program

Write a loan calculator program in C++ that displays monthly balances for user-specified loan terms. To be flexible, you decide to specify the loan terms in a file and provide that filename  entered from the keyboard. To keep things simple

  What is the output of the following code

What is the output of the following code?

  Use c program language and should work on linuxcomputers

use c program language and should work on linuxcomputers are frequently used in check-writing systems such as payroll

  Child process to take the role of the number guesser

Write a program in C that takes a number between 1 and 1024 as input on the command line, and then forks a child process to take the role of the number guesser

  Write a function that will take in an array of integers

Write a function that will take in an array of integers, sum up all the values in the array, and return the result to the calling 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