Calculate the total wage of the worker for the week

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

Please write a C++ program for this problem

An hourly-paid worker have day shift pay rate of $12.50. If the worker works at night, he is paid night shift rate of $17.25.

Ask the user to input the number of hours worked in day and night shift for the week.

The number of hours he or she works at each shift may be different. Calculate the total wage of the worker for the week.

Format the output of decimal numbers to two decimal places.

Here is a sample run

Enter number of hours worked during day : 25

Enter number of hours worked during night :19

Weekly wage earned at day shift : $ 312.50

Weekly wage earned at night shift : $ 327.75

Total weekly wage = $ 640.25

Reference no: EM132101146

Questions Cloud

Marketing communications industry : What are relevant issues within the marketing communications industry.
Implement the account class which contains two private data : The calculateFutureBalance function, which takes annual interest rate and number of years, and then calculates the future balance for the given period.
Learning needs of individuals and teams : How does collecting regular feedback on the performance of team members, from relevant sources assist managers in identifying the learning
Interesting pamphlet on customer relations : Ellen, who runs a successful nail salon, ran across a very interesting pamphlet on customer relations.
Calculate the total wage of the worker for the week : An hourly-paid worker have day shift pay rate of $12.50. If the worker works at night, he is paid night shift rate of $17.25.
Successful with retention of repatriates : How can employers be more successful with retention of repatriates?
Advantages and disadvantages of an organization : What would be advantages and disadvantages of an organization's Human Resources department aligning
Create visually appealing document that tells a story : This next project requires you to consider how information and data can be composed to create a visually appealing document that effectively tells a story
Write a procedure that accepts pointers to two arrays : Write a procedure that accepts pointers to two arrays of double words and the size of both arrays (The arrays are equal in length.).

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program that will generate random numbers

Write a C++ program that will generate random numbers between the ranges of your own choice and within the random numbers, indicate the maximum, minimum.

  Write a program that fills in an array

Write a program that fills in an array, a, of 25 integers where each element contains the sum of all the previous elements plus 1, e.g., a[0] is 1 and a[3] is equal to a[0] + a[1] + a[2] + 1.

  What is an assignment statement

What is an assignment statement? How does it work? How does an assignment statement differ from an ordinary algebraic equation?

  Design a phonecall class that holds a phone number

Design a PhoneCall class that holds a phone number to which a call is placed, the length of the call in minutes, and the rate charged per minute. Overload extraction and insertion operators for the class.

  Write a program to find the middle element in a linked list

1. Write a program to check if there is a loop in a linked list. Create a loop in a linked list and use your method 'isLoop' to identify that the loop exists. The method isLoop should return a Boolean type.2.

  Display hello world and then go on to the beginning of new

Display "Hello World!" and then go on to the beginning of the next line When the user type the following paragraph, the same will be displayed on the screen.

  Write a program that calculates mileage reimbursement

Write a program that calculates mileage reimbursement for a salesperson at a rate of $0.35 per mile. Your program should interact with the user in this manner.

  Secure computing environment

Web services sounds way too complex to be viable...how are little chunks of code from many organizations really going to work together and provide a reliable and secure computing environment?

  What exactly is an array

What exactly is an array? Can you give a simple example of it in C++ code, as well

  Write a c program that asks user to enter a time

Write a C program that asks user to enter a time (expressed in hours and minutes, using 24-hour clock). The program then displays the flight schedule whose departure time is closest to that entered by the user: Enter a 24-hour time: 13:15

  Problem related to stroing of text file values into vector

I have to store the text file values into a vector and do the sum, here the text file sample: Expenses: Equipment:$300 Food: $50  Consumable expenses: $100

  An arithmetic expression

The statements of that expression language consist of an arithmetic expression followed by a list of assignments. Assignments are separated from the expression and each other by commas. A semicolon terminates the expression. The arithmetic expr..

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