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

  Benefits of validating the forms

When you are collecting data, you need to consider what data to collect, why you are collecting the data. What are other benefits of validating your forms? How are forms validated? What are some form validation best practices?

  Create application which gets customer account data

Some interest Credit Company gives loans to customers at 1.5 percent interest per month. Create the application which gets customer account data which includes the account number, customer name, and balance due.

  Use input dialogs to get data from user

Print the combined miles per gallon obtained for all tankfuls up to this point. All average calculations must produce floating-point results. Use input dialogs to get the data from user.

  Write script which declares and sets variable

Write the script which declares and sets a variable that's equal to total outstanding balance due. If that balance is greater than $10,000.00, the script must return the result set consisting of VendorName,

  Application development and programming languages

Compare and contrast object-oriented languages (Java, C++, C#, etc.) to imperative languages (C, Pascal, etc.) in terms of:

  Write pseudocode and flowchart for program

Write pseudocode and flowchart for program that will prompt the user for a number, prompt the user for an operator (+,-,*,/).

  Design and algorithm that compute numbers of married men

Design and algorithm that will read through the file and compute the numbers of married men, single men, married women and single women.

  Create application that uses two-dimensional arrays

Create the application that uses 2-dimensional arrays to keep track of 5 students' grades, with each student having 3 different classes. You require to ask user to enter grade for each of 5 students.

  Write program which will ask user to enter last names

Write a program which will ask the user to enter last names of our candidates in class officer's president election and number of votes received each candidate.

  Write program that computes loan payments

Write a program that computes loan payments. The loan can be a car loan, a student loan, or a home mortgage loan. The program lets the user enter the interest rate.

  Explaining steps to execute branch instruction

Sketch a flow chart which carefully explains steps that little man follows to execute a branch instruction.

  Prepare console application to examine contents of text file

Prepare the C++ console application which examines the contents of a text file. Your program must count the number of: * lines (hint: use getline).

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