Employee identification numbers

Assignment Help Basic Computer Science
Reference no: EM131559398

Overview

In C++ the program must use the following parallel arrays:

  • empId: An array of five strings to hold employee identification numbers. 
  • The array should be initialized with the following numbers: 
  • S45601564 S15486576 S12487658 S02145673 S00154657
  • hours: An array of five Integers to hold the number of hours worked by each employee.
  • payRate: An array of five doubles to hold each employee's hourly pay rate.
  • wages: An array of five doubles to hold each employee's gross wages.

Instructions

The program should relate the data in each array through the subscripts. For example, the number in element 0 of the hours array should be the number of hours worked by the employee whose identification number is stored in element 0 of the empId array. That same employee's pay rate should be stored in element 0 of the payRate array.

The program should display each employee number and ask the user to enter that employee's hours and pay rate. Since the CCA pays hourly employees on a biweekly bases, validate that the hours do not exceed 80 hours. It should then calculate the gross wages for that employee (hours times pay rate), which should be stored in the wages array. After the data has been entered for all the employees, the program should display each employee's identification number and gross wages.

Reference no: EM131559398

Questions Cloud

What is the discounted payback period for these cash flows : What is the discounted payback period for these cash flows if the initial cost is $9,000?
Record these vehicle purchases in the purchases journal : Invested $340000.00 into the business, depositing it into the bank account. Record these vehicle purchases in the purchases journal
Create a new thread in the discussion board : Create a new thread in the Discussion Board that will reserve the article you would like to critique.
Explain what speech-language pathologists do : Explain what Speech-Language Pathologists do and describe what they offer to the health industry. Please answer in no less than 300-400 words
Employee identification numbers : The program should relate the data in each array through the subscripts. For example, the number in element 0 of the hours array should be the number.
How many dvds can customer entering store be expected to buy : Based on past experience, the manager of the VideoRama Store has compiled the following table, which gives the probabilities that a customer who enters.
What is after-tax cash flow : What is the Net Income for XYZ for the year? What is the After-Tax Cash Flow (ATCF)?
Winfield transportation system : Winfield is a small city with a population of 22,000. Until now, Winfield was served by a bus route from a nearby city.
What types of monitoring procedures would you develop : What would you include in your sanctions for violations policy - What types of monitoring procedures would you develop?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What is the location

What is the location from which the 1st computer instructions are available on boot up?

  Optimal cash replenishment level

What will be its optimal cash replenishment level? (Enter your answer in dollars not in millions. Round your answer to 2 decimal places.)

  Determine the multiplicity constraints for each relationship

Using your answers (a) to (e), represent the data requirements of the Easy Drive School of Motoring as an ER model. State any assumptions necessary to support your design.

  Program to solve a simple payroll calculation

Write a program to solve a simple payroll calculation. Find the amount of pay given, hours worked, and hourly rate. (The formula to calculate payroll is pay = hourly rate * hours worked.)

  Determine the types of organizations

Analyze the major ways that cryptography can help alleviate risks that exist when using cloud computing. Determine the types of organizations that would benefit the most from enabling cryptography while using cloud computing. Provide a rationale f..

  Interpreting another algorithm can be challenging

Though interpreting another's algorithm can be challenging, cultivating skills in reverse engineering algorithms is invaluable, as it always has the potential of showing you new ways to solve problems. For this Hand-In Assignment, your task is to ..

  Computer system life cycle process

What is the role of the CSPM in the initiation phase of the Computer System Life Cycle process?

  Would you agree with the materialism philosophy.state reason

Extending this argument, is it possible for artificial intelligence to surpass human intelligence? Substantiate your position with references, length around 500 words.

  Assignment on hd-dvd versus blu-ray

In recent times, HD-DVD and Blu-ray were competing technology formats for creating and watching movies on DVDs. Neither was compatible with the other. Eventually, Blu-ray won the competition. Use the Internet to research the competition between th..

  Write an efficient algorithm for combining two heaps

Write an efficient algorithm for combining two heaps, one with size n and the other with size 1. What is the Big Oh performance of your algorithm?

  Solve the following problems using linearity of expectation.

Solve the following problems using linearity of expectation. . (For each problem you will want to think about what the appropriate random variables should be and define them explicitly.)

  Can you suggest a reason for peak in women''s length of stay

What would you suggest be changed about these histograms to make them easier to compare?

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