Write a program that uses the following arrays empid an

Assignment Help C/C++ Programming
Reference no: EM13370063

Write a program that uses the following arrays:

* empId: an array of seven long integers to hold employee identification numbers. The array should be initialized with the following numbers: 5658845, 4520125, 7895122, 8777541, 8451277, 1302850, 7580489
* hours: an array of seven integers to hold the number of hours worked by each employee
* payRate: an array of seven floats to hold each employee's hourly pay rate
* wages: an array of seven floats to hold each employee's gross wages.

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. 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.

Input Validation: Do not accept negative values for hours or numbers less than 6.00 for pay rate.

Reference no: EM13370063

Questions Cloud

Tcpipproblem 1bullexplain what is the biggest problem in : tcpipproblem 1.bullexplain what is the biggest problem in routing security and you may not all agree on which problem
Followers want their leaders to lead by example setting the : followers want their leaders to lead by example setting the standards and enforcing the same standards that will make
Joe fast started a mobile snack food service on january 2 : joe fast started a mobile snack food service on january 2 2006 investing 15000 cash depositing in a bank account in the
Task 1send a business email to your lecturer with the : task 1send a business email to your lecturer with the questions as an attachment. the attachment needs to be a
Write a program that uses the following arrays empid an : write a program that uses the following arrays empid an array of seven long integers to hold employee identification
Coastal seafoodcoastal seafood is a family-owned business : coastal seafoodcoastal seafood is a family-owned business that operates on the east coast. the company already uses
You have a bevel gear and shaft and you have to find the : you have a bevel gear and shaft and you have to find the maximum load that can be applied on it. what type of
Part-1suppose that the firm uses three inputs to produce : part-1suppose that the firm uses three inputs to produce its output capital k labor l and materials m.nbsp the firms
One of the problems of storing data in a matrix a : one of the problems of storing data in a matrix a two-dimensional cartesian structure is that if not all of the

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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