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 class using static variable to store annual interest

Write class SavingsAccount. Use static variable annualInterestRate to store annual interest rate for all account holders. Each object of class contains private instance variable savingsBalance,

  Design a c# windows phone 8 application

Design and implement a C# Windows Phone 8 application based on the SoundBoard app in the Windows Phone 8 Development for Absolute Beginners textbook.

  Create the logic for the application fast-food resturant

Create the logic for the application which permits a user to enter the ordered item continuosly until sentinel value is entered.

  Create constructor by allotting value to gpa attribute

We have provided the super call, which does some of the work of constructor. Your code must complete constructor by allotting value of g to gpa attribute.

  Explaining risk in fixed-price contracts

It is recognized that fixed-price contracts offer obvious advantages to buyer organizations because they transfer almost all of the risk to the contractor.

  Design a math sorting game

Using Visual Studio 2010, design a math sorting game. A random number between 1 and 99 will be generated and displayed to the user. User will quickly have to divide that number by 3, and come up with remainder.

  Create e-r diagram for sell and buy of antiques

Create E-R diagram for following situation (state any assumptions you believe you have to make to develop diagram): XYZ Antiques buys and sells one-of-a kind antiques of all kinds

  Executive committee for alleviating it complexity

You are a consultant brought in by the executive committee to make recommendations for alleviating the "IT complexity" concerns of the executives at the company.

  Write program to compute integer part of quotient

Write program segments that accomplish each of the following: Calculate the integer part of the quotient when integer a is divided by integer b.

  Write program to read series of pairs of numbers

Write the program which reads series of pairs of numbers (product code and quantity sold) then the program must compute and print the total retail value

  Write the program to sustain person-s savings

Write down the program to sustain the person's Savings and Checking accounts. Program must keep track of and show balances in both accounts, and sustain a list of transactions.

  Write program which prompts for boiling point of substance

Write program which prompts user for observed boiling point of substance in Centigrade and identifies substance if observed boiling point is within 5% of the expected boiling point.

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