Program to validate pay rate as it is entered

Assignment Help Programming Languages
Reference no: EM1386131

A bookstore owner wishes you to write down the program to compute store's weekly payroll. Store's employees are paid hourly. Overtime is to be paid at rate of 1.5 times normal rate for hours employee worked over 40. Program must prompt user to enter number of hours employee worked and pay rate for employee. Program must display regular pay, overtime pay, and gross pay for that employee. Then program must prompt user to enter data for another employee. When user responds that there are no more employees to process, program must display number of employees it processed and total payroll, that is, sum of gross salaries of employees.

The program must validate pay rate as it is entered. Only valid hourly pay rates are following: 5.50, 6.00, 6.50, 6.75, 7.00, 7.25, 7.50, 7.75, 8.00. Store rates in array. When pay rate is entered, search array for a match. If there is match, continue rest of the calculations. If there is no match, display error message, a list of valid pay rates, and prompt for another pay rate.

Reference no: EM1386131

Questions Cloud

Disadvantages of utilitarianism and deontological theory : Critically discuss the chief advantages and disadvantages of Utilitarianism and Deontological Theory. Think specifically about how the theories would work in a concrete situation.
Diffusion rates of the substances : Discuss how would the diffusion rates of the following substances in 2 percent agar compare: sodium ions, sucrose, a 60,000 protein, and a dinucleotide?
Describe the language and rhetoric : Provide an explanation of whether these groups invoke the same image to all persons, and if the stereotypes are positive, negative, or both. Describe the language and rhetoric that is used to reinforce the stereotype of each group.
Perform a paired t-test to verify your claim : Which type of t-test is most appropriate to investigate your co-investigator's claim? Why is it most appropriate t- test? Please explain your answer in 1-2 lines.
Program to validate pay rate as it is entered : When pay rate is entered, search array for a match. If there is match, continue rest of the calculations. If there is no match, display error message, a list of valid pay rates, and prompt for another pay rate.
Means for contemporary authority relationships : Describe how authority in human relationships has the potential to distort good thinking. Discuss what this means for contemporary authority relationships in the workplace and society.
Draw the punnett square depicting this self-cross : Assume you work in a cool professor's Drosophila lab and you are told to figure a genetics problem regarding fly hairness.
Histogram of time spent eating and drinking : A histogram of time spent eating & drinking each day is skewed right. Use this result to explain why a large sample size is needed to construct a confidence interval for the mean time spent eating & drinking each day.
Curves for leak and ina : Use the I/v curves for leak and INa describe how the treshold of an action potential can be dtermined and the peak height.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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