Calculate the total wages for an employee

Assignment Help Basic Computer Science
Reference no: EM13208670

Design and create a program to calculate the total wages for an employee. An employee is paid $10 per hour for the first 40 hours. The employee is paid $15 per hour for every hour greater than 40 hours and up to 50 hours. The employee is paid $20 per hour for any hours above 50 hours. The program will ask the user to enter the total number of hours (double), and the program will calculate the total wages (show 2 digits to the right of the decimal point.) If the user enters an invalid number of hours (hours <= 0), then display an error message and terminate the program (use "return 0;" to terminate pgm).

Reference no: EM13208670

Questions Cloud

Explain what is the partial pressure of ethanol : If the total pressure is 1.8 atm, what is the partial pressure of ethanol?
Examine each of the principles discussed : Examine each of the principles discussed in Sec. 2.1.4 and tell whether they are so important (assuming that high performance is still desired).
Correlation between futures price and the commodity price : The correlation between futures price and the commodity price is 0.9. What hedge ratio should be uses when hedging a one month exposure to the price of commodity A?
What operations can be used on pointer variables : In C++, what operations can be used on pointer variables? Why use these operations?
Calculate the total wages for an employee : Design and create a program to calculate the total wages for an employee. An employee is paid $10 per hour for the first 40 hours. The employee is paid $15 per hour for every hour greater than 40 hours and up to 50 hours.
What is the break-even level of earnings under the program : What is the breakeven level of hour of work under the program I have gotten help on the first part of the question and found that the break even level of earnings was $140 and he would work for 20 hours/week.The other part
Write a complete main method that would print your last name : Suppose your name was George Gershwin. Write a complete main method that would print your last name, followed by a comma, followed by a space and your first name. Question 2 Declare a variable named myMenu suitable for holding references to Menu o..
Eliminate all systematic risk in the portfolio : What trade is necessary to archive(a) eliminate all systematic risk in the portfolio,(b) reduce the beta to 1.0, or(c) increase beta to 2.0.
Explain the acetone-bisulfite addition compound : What gas was evolved when you treated the acetone-bisulfite addition compound with hydrochloric acid?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What is the difference between coupling and cohesion

What is the difference between coupling and cohesion? Which should be minimized and which should be maximized and what complications are imposed if one tries to implement a dynamic list using a traditional homogeneous array?

  Declare any additional variables as necessary

Given two int variables, firstPlaceWinner and secondPlaceWinner , write some code that swaps their values. Declare any additional variables as necessary.

  How spki be augmented to support policy

Consider a policy that, for reasons of separation of duties, does not allow an entity to exercise the rights it may grant (delegate) to others. How could SPKI be augmented to support such a policy?

  What opportunities enabled team to accomplish its goals

What motivational theories do you think could have been used to encourage the team to be more successful? What specific rewards or opportunities would have enabled the team to accomplish its goals? Why?

  Write a main function, and the following functions

Write a main function, and the following functions to compute the stress and strain oa a steel rod(D) (in inches) and length(L) in inches subject to the compression load(P) of 10,000 to 1,000,000 pounds

  Average memory access time for load data

Compute the average memory access time for load data reference in this new con?guration?

  Prpoposed system design that would address any consequence

Describe in detail a proposed system design that would address any consequences of executing the code and how your design would impact the system.

  Write a class encapsulating the concept of a rational number

Write a class encapsulating the concept of a rational number, assuming a rational number has the following attributes: an integer representing the numerator of the rational number another integer representing the denominator of the rational number

  Two vulnerability analysis tools used in research

two Vulnerability Analysis tools used in research and/or commercially available and describe their main features and functionality. Compare and contrast their relative strengths and weaknesses

  Dynamic programming

Please provide with a detailed answer using DYNAMIC PROGRAMMING

  Results of password cracker designed for operating system

Download a password cracker designed for your operating system. Run the cracker on your system. Explain the results from the cracker.

  How silicon-based semiconductors revolutionized computing

New materials frequently lead to new technologies that change society. Describe how silicon-based semiconductors revolutionized computing.

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