Write a program that will calculate the pay for an employee for the week. The user...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that will calculate the pay for an employee for the week. The user will enter the hours worked and the payrate. (Assume that the user will enter a non-negative number for both inputs.) The program will then calculate the total pay by multiplying rate by hours. If the user worked more than 40 hours, the program will calculate overtime pay by multiplying the overtime hours * 1.5 * rate. Sample run 1 Enter hours for week: 35 Enter rate: 28.75 Total pay: 1006.25 Sample run 2 Enter hours for week: 48 Enter rate: 20.00- Base pay: 800.00 Overtime pay: .240.00 Total pay: 1040.00 ' Additional Notes: Regarding your code's standard output, CodeLab will check for case errors and will check whitespace (tabs, spaces, newlines) exactly. Sort the flowchart into the correct order. Group the same processes together. If there are duplicate processes, sort the higher letter first. 10 11 Start End W display 101 g sate B base pay calculate total pay 00ccuate vertime hours Mert re DAY l (1) play to pay RO display pay Phone Day hours calculate Racalatehase pay Write a program that will calculate the pay for an employee for the week. The user will enter the hours worked and the payrate. (Assume that the user will enter a non-negative number for both inputs.) The program will then calculate the total pay by multiplying rate by hours. If the user worked more than 40 hours, the program will calculate overtime pay by multiplying the overtime hours * 1.5 * rate. Sample run 1 Enter hours for week: 35 Enter rate: 28.75 Total pay: 1006.25 Sample run 2 Enter hours for week: 48 Enter rate: 20.00- Base pay: 800.00 Overtime pay: .240.00 Total pay: 1040.00 ' Additional Notes: Regarding your code's standard output, CodeLab will check for case errors and will check whitespace (tabs, spaces, newlines) exactly. Sort the flowchart into the correct order. Group the same processes together. If there are duplicate processes, sort the higher letter first. 10 11 Start End W display 101 g sate B base pay calculate total pay 00ccuate vertime hours Mert re DAY l (1) play to pay RO display pay Phone Day hours calculate Racalatehase pay
Expert Answer:
Answer rating: 100% (QA)
Get user input hours floatinputEnter hours for week rate floatinputEnter rate Calculate base pay and ... View the full answer
Related Book For
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell
Posted Date:
Students also viewed these programming questions
-
a. If Canace Company, with a break-even point at $398,400 of sales, has actual sales of $480,000, what is the margin of safety expressed (1) in dollars and (2) as a percentage of sales? Round the...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Write a java program that will calculate the pay for workers in my department. The program will give me the total monthly payroll for my department. It will, also, print the Employee ID #, hours...
-
Use the following information taken from the multi-step income statement of On That Note Music Shop to answer the questions below Account Name or Subtotal Cost of Good Sold General and...
-
Global warming is a cause for concern because even small changes in the Earths temperature can have significant consequences. For example, if the Earths polar ice caps were to melt entirely, the...
-
In recent years, many companies have invested in equipment to automate processes that were once performed manually. A simple example is a drive-through car wash, where robots wash and dry the cars...
-
Number of classes: 6 Data set: Amounts (in dollars) spent on conveyance for a quarter of a year. Construct a frequency distribution for the data set using the indicated number of classes. In the...
-
H.J. Heinz Company uses standards to control its materials costs. Assume that a batch of ketchup (6,000 pounds) has the following standards: The actual materials in a batch may vary from the standard...
-
Evaluate the implications of fluid-structure interactions (FSI) in engineering design, considering the effects of fluid-induced forces on structural integrity, the occurrence of phenomena such as...
-
Snowden Industries produces two electronic decoders, P and Q. Decoder P is more sophisticated and requires more programming and testing than does Decoder Q. Because of these product differences, the...
-
Question #3. [20 pts] A coal mine owner is making a decision on two options: buying a new truck or renting a truck. A new truck costs 150,000 TL to purchase and 1 TL/ton of coal to operate. Rental...
-
serves as the manager and receives an extra $500 per month. In addition to the base salary, each barber also receives a commission of $4.50 per haircut. Other costs are as follows. Advertising $200...
-
Imagine you have just resolved a case for one of your clients your boss has asked you to write a report on the case and make suggestions on how to improve the representative process in the future
-
Student A You are the manager at a factory that makes computer chips. You depend on a silicon supplier to deliver the supplies on time. You are happy with their costs but sometimes they are late when...
-
5) ABC receives a $9,000, 8%, 2-month note. The maturity value is: 6) Tarheel Services is holding a note receivable from one of its customers, and wishes to collect the cash earlier than the maturity...
-
2. A charge-q of mass m rests on the y axis at a distance b above the x axis. Two positive charges of magnitude q are fixed on the x axis at x = -a and x = a respectively. If the -91 charge is given...
-
State two precautions which should be taken when storing a microscope after a laboratory exercise
-
Troy is a qualified radiologist who operates a successful radiology practice from purpose- built rooms attached to his house. Troy works in the practice three days a week, and the other two days he...
-
A company pays a 3% annual bonus to employees who have been with the company more than 5 years; other employees receive a 1% bonus. Which control structure(s) would an algorithm use to calculate...
-
Write a C++ statement that assigns the square root of a number to a double variable named sqRoot. The number is stored in a double variable named num.
-
The function header specifies _____________________ . a. The data type of the functions return value (if any) b. The name of the function c. The functions formal parameters (if any) d. All of the...
-
With diverse patient populations come language translation issues. Medical interpretation is a challenge facing most health organizations. Medical interpretation and translation services are costly....
-
Visit the Hofstede Centre (https://geerthofstede.com/culture-geerthofstede- gert-jan-hofstede/6d-model-of-nationalculture/) and review the scores by country for the various cultural dimensions that...
-
You have been asked to join the hospitals task force for developing a plan to increase the organizations workforce diversity from its current 20% level to 40% over the next 5 years. How does your...
Study smarter with the SolutionInn App