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

  Describing dichotomy is not linearly separable

Let the d component of x be either 0 or 1. Assume we assign x to w1 if number of non-zero components of x is odd, and to w2 otherwise. Illustrate that this dichotomy is not linearly separable if d>1.

  Persuade your team to give time to organization

Discuss whether you should accept this demand from your manager or whether you should persuade your team to give their time to the organization rather than to their families.

  Estimate how much speedup would be gained from change

Suppose you are designing a computer system and are considering a change to your original design. Estimate how much speedup would be gained from this change. You must.show your work.

  Explaining models in system analysis and design

In System Analysis and Design: Models are widely used in wide variety of technical occupations beyond information technology.

  What is optimal strategy if n is known

Consider the numerical 20 questions game. In this game, player 1 thinks of a number in the range 1 to n. Player 2 What is an optimal strategy if n in known?

  Construct an fa (finite automata)

Construct an FA (finite automata) that accepts all binary strings with an even number of 0's and the number of 1's is a multiple of 3.

  Differentiate computer data state of computer-s electrical

Differentiate between computer data represented by the state of a computer's electrical switches and the meaningful information that is displayed to the user.

  How many block of main memory is needed-direct mapped cache

Suppose a computer using direct mapped cache has 2^32 words of main memory and a cache of 1024 blocks, where each cache block contains 32 words. How many block of main memory are there?

  Explain program manager for human services program

Write down 200- to 300-word email to friend describing new position and its responsibilities, incorporating all vocabulary words.

  Instructions must execute in a single clock

An implementation where every instruction executes in 1 clock cycle using a variable length clock, which for each instruction is only as long as it needs to be. (Such an approach is not terribly practical, but it will allow us to see what is being sa..

  The denominator for the target fraction

The denominator for the target fraction: 2 Enter the numerator for the next fraction to test: 2 Enter the denominator for the next fraction to test: 4 The fraction you just entered equals the first fraction of 1/2. Would you like to continue (Y/N)?

  Describe ease of finding information on internet

Explain main elements of assignment in the substantive way. Describe the ease of finding information on the Internet.

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