Calculates how much an employee would earn over a period

Assignment Help Programming Languages
Reference no: EM131299306

ASSIGNMENT

Write a program that calculates how much an employee would earn over a period of time (in months), if, every month, the employee' pay-per-hour rate is one dollar more than the month before (so if his starting perhour rate is 7.25, next month it will be 8.25, next month 9.25, and so on). The employee is going to work 20 hours per week, 4 weeks per month.

The program should input from the user and validate both number of months (which should be a positive integer larger than 0) and the pay-per-hour rate (which should be a floating-point number larger than $7.25 the minimum federal wage pay-per-hour rate). For each one of these values; if the value is wrong, the program should repetitively ask for that value until the value entered is correct. The program should confirm/output the correct value. See the INPUT number of months and INPUT pay-per-hour rate in the sample run table below.

The program should display/output a table (the table lines are not required) that shows for each month the employee's salary, and show the total pay at the end of the period. The output should be displayed in dollar amounts. Format your output to have a dollar sign ($) and the amount (with 2 decimals after the decimal point).

Reference no: EM131299306

Questions Cloud

Create a third subclass called phone that also extends book : Then create a third subclass called Phone that also extends the Book class. The Phone class should keep track of the number of yellow pages and the number of white pages in each phone book.
What is the reported accuracy : There is some error due to Internet delays, but the display even tells you roughly how accurate the time on the screen is. Look up the time for your state. What is the reported accuracy?
What are general tradeoffs involved in waiting line decision : What are the general tradeoffs that are involved in waiting line decisions?- Who needs to be involved in assessing the cost of customers waiting for service?
Resulting from technological progress : Suppose the growth rate of GDP in the United States is 4.2%. If 2.9% and 1.3% of GDP growth are due, respectively, to capital and labor growth, the amount resulting from technological progress is
Calculates how much an employee would earn over a period : Write a program that calculates how much an employee would earn over a period of time (in months), if, every month, the employee' pay-per-hour rate is one dollar more than the month before.
How many time should be order to supplier through inventory : This is the critcal item how to solve through MUSIC 3D or EOQ. How many time should be order to supplier through inventory carrying cost.
Prepare an eps ebit analysis of the assigned company : Prepare an EPS-EBIT analysis of the assigned company for the project.- Discuss proposed changes that you are recommending that the company make, based on your research and work on strategic plan elements.
Components of an application implementation plan : How can an implementation plan also help in ensuring a smooth implementation process? What are some key components of an application implementation plan?
How would you measure a patient''s pain : Help out the VA: how would you measure a patient's pain?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a program that substitutes an overloaded

Write a program that substitutes an overloaded += operator for the overloaded + operator in the STRPLUS program in this chapter.

  Write a function to circulate a list

Write a function to circulate a list. The function takes two paramaters, the first defines how many elements of the list to circulate, and the second is the list. The output should be the circulated list.

  Run multiple clients and one server

Run multiple clients and one server - create your client side and server

  Develop a program to input miles driven and gallons for tank

Develop a program in C++ that will input the miles driven and gallons used (both as integers) for each tankful. The program should calculate and display the miles per gallon obtained for each tankful.

  Display total amount owed in fixed-point notation

Enter your C++ instructions into a source file named Introductory11.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Display the total amount owed in fixed-point notation with two decimal places.

  Create gui program which extends jframe

Create the GUI program which extends JFrame to find weighed average of your grade. You must input total points received on quizzes, midterm, and programming assignments.

  Write a program that simulates the lottery

For this problem, you will simulate the lottery to put your programming knowledge for use in something practical. Write a program that simulates the lottery to help in becoming obscenely wealthy with no work whatsoever!

  Program that will first ask the number of overs each team

The program will also display the winning team and the result. That is, if Team A wins then it will display the result in terms of runs. For example, Team A wins by 54 runs, which is the difference between the total runs scored by the teams. Howev..

  Draw application which reads inventory records file

Draw an application which reads inventory records file and produces a report whihc show item-number, item-description, and price of every item on each day, one through 7.

  Design interactive program using prewritten methods

Design an interactive program that does the following, using the prewritten methods whenever they are appropriate. Prompt the user for and read a library card number, which must be between 1000 and 9999.

  Write program to allow user to enter marks of students

Write a program that allows user to key in marks of students. The number of students is determined by the user at the start of the program.

  Design and implement a web page named esp.html

Design and implement a Web page named esp.html that allows the user to conduct an ESP test.

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