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

  Write c program to add two integers and prints out average

Write a C program that prompts for a variable number of integers, adds them up, and prints out the average. The user will enter either an integer to be averaged.

  Write program to count occurrences of each word in text

Write down C++ program to read following text. Count occurrences of each word in text and keep this count in list of elements containing (word, occurrence count) pairs.

  Write me a function that finds the smallest item in an array

Write me a function that finds the smallest item in an ArrayBag (by reference) and returns true if the arrayBag is not empty and false otherwise.

  The method takes an array

The method takes an array of integers and returns true if there exists any item in the array that satisfies a specified condition. For instance, the following code fragment:

  How can we definean instance of this class

How can we definean instance of this class?

  Expressions until the user says

Expressions until the user says he or she wishes to end the program. For a more difficult assignment, enhance your program so that the expression need not be well formed; if it is not well formed, then the user is asked to reenter the expression.

  You are asked to write a simple driver program

In this assignment in c, you are asked to write a simple driver program and set of functions (maybe in a library) that can be performed on a binary search tree. Your program should allow user to insert/delete integer values into the binary search ..

  Produce a top-level design for your program

You are required to code the program using the C++ Programming Language. Your program should be properly laid out and should be modular, making sure that software engineering aspects of modularity and reusability as fully considered.

  Design a simple game of blackjack

Prepare a simple game of blackjack using object oriented programming.

  C string and two int reference parameters

Write a complete function, not an entire program, that has a C string and two int reference parameters (call them a and b), returning nothing.

  Program to add numbers and display sum

For each of problems write C++ code to do the required task. Receive the number and find out whether it is odd or even.

  Write a pseudocode statement

Assume that a program has two string variables named str1 and str2. Write a pseudocode statement that assigns an all uppercase version of str1 to the str2 variable. is str.add(str1,str2) part of it?

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