Employee identification numbers

Assignment Help Basic Computer Science
Reference no: EM131561120

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: EM131561120

Questions Cloud

Describe your own approach to problem solve overuse : In what ways might health promotion activities for rural populations differ from those designed for urban populations?
Explain image using the four visual cues from your reading : Explain the image using the four visual cues from your reading: color, form, depth, and movement. Explain how the artist makes use of these four cues.
Discuss the age of drivers in crash fatalities : Age of drivers in crash fatalities the number of crash fatalities per 100,000 vehicle miles of travel (based on 1994 data) is approximated.
Develop a pamphlet to inform parents : Explain how the environmental factor you selected can potentially affect the health or safety of infants.
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.
Advantage of a dynamic array over a regular array : 1. What is meant by a dynamic array? What is the advantage of a dynamic array over a regular array?
How accounting economic and social costs can be used : Discuss how accounting, economic, and social costs can be used in transportation to mitigate risks associated with these costs.
Calculate its velocity just after it leaves : Calculate its velocity just before it strikes the floor. Calculate its velocity just after it leaves the floor on its way back up.
Identify two healthcare problems with mathematical solutions : Identify two healthcare problems with mathematical solutions. An actual or hypothetical situation may be used for example.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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