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

  Write the definition of a class clock

Write the definition of a class Clock . The class has no constructors and three instance variables. One is of type int called hours , initialized to 12 , another is of type boolean called isTicking , initialized to true , and the last one is of ty..

  Where do these plots violate the rules for statistical graph

Deaths 2003. A National Vital Statistics Report (www.cdc.gov/nchs/) indicated that nearly 300,000 black Americans died in 2003, compared with just over 2 million white Americans. Below are histograms displaying the distributions of their ages at d..

  What is socialization

1. What is socialization? 2. What is the difference between primary and secondary socialization?

  Distributed.net is an organization that coordinates research

Distributed.net is an organization that coordinates research on distributed computing applications. People and organizations can join Distributed.net and contribute idle computing power to ongoing research projects that require or use massively..

  Find the meaning of the terms hue

find the meaning of the terms hue, saturation, and brightness (or luminance), and how these color models are related to the CMYK and Pantone color schemes.

  What aspect of ip addresses makes it necessary

In light of your answer, why does IP tolerate point-to-point interfaces that have nonunique addresses or no addresses?

  Zidane red card case study

Watch a YouTube clip of the infamous Zinedane Zidane "head butt" from the July 9, 2006 World Cup championship match between France and Italy.

  The end-to-end communication

If a frame passes from a station through two switches, then through a router, then through two more switches, and then to the destination station, how many Ethernet frames will there be in the end-to-end communication?

  Moseley to disclose herzog behavior

1) Using duty-based ethical principles, what facts or circumstances in this case would lead Moseley to disclose Herzog's behavior? 2) Using outcome-based ethical principles, what issues would Moseley have to analyze in making the decision to repo..

  Worst-case running times

Programs A and B are analyzed and found to have worst-case running times no greater than 150N log2 N and N2, respectively. Answer the following questions, if possible:

  What is the address of entry in third row

what is the address of the entry in the third row and fourth column? What if each entry requires two memory cells?

  How would this affect the number of comparisons required

When implementing Insertion Sort, a binary search could be used to locate the position within the first i - 1 elements of the array into which element i should be inserted. How would this affect the number of comparisons required? How would using ..

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