Write program using array of seven long integers

Assignment Help Programming Languages
Reference no: EM1388878

Write down the program which uses the following arrays:

empId: array of seven long integers to hold employee identification numbers. Array must be initialized with following numbers: 5658845, 4520125, 7895122, 8777541, 8451277, 1302850, 7580489

hours: array of seven integers to hold number of hours worked by each employee

payRate: array of seven floats to hold each employee's hourly pay rate

wages: array of seven floats to hold each employee's gross wages.

The program must relate data in each array through subscripts. For instance, number in element 0 of 'hours' array must be number of hours worked by employee whose identification number is stored in element 0 of 'empId' array. That same employee's pay rate must be stored in element 0 of payRate array. Program must display each employee number and ask user to enter that employee's hours and pay rate. It must then compute gross wages for that employee (hours times pay rate), which must be stored in 'wages' array. After data has been entered for all employees, the program must 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: EM1388878

Questions Cloud

Find out the distance from a enough b : If we assume uniform acceleration for both horses between A and C, find out the distance from A enough B.
Five-step p-value approach to hypothesis testing : Use the five-step p-value approach to hypothesis testing and a 0.05 level of significance to determine whether the proportion of full-time students at Miami University is different from the national norm of 0.46.
Environmental health and environmental protection : Critically illustrate out the difference between environmental health and environmental protection? Give examples of environmental factors that might impact the health and wellness of public & community health?
Bart claimed the offer no longer was available : Ten days later when the shares were trading at $76.25, Marie, one of the offeree at the party, appeared at Bart's office saying that she accepted the offer. Bart claimed the offer no longer was available.
Write program using array of seven long integers : Write down the program which uses the following arrays: empId: array of seven long integers to hold employee identification numbers. Array must be initialized with following numbers.
How much time does it take for the ship and asteroid to meet : At first the spacecraft and the asteroid are at rest, 450m apart. How much time does it take for the ship and the asteroid to meet?
Why a salesperson must constantly look for new prospects : why a salesperson must constantly look for new prospects are to replace customers lost over time and to
Current hypothesis-casual theories-ideas : Summarize and current hypothesis, or casual theories or ideas proposed to describe the distributions by person, place, and time in literature, on the web, or ideas you've about why something might be true---for ex., if you find a gender difference..
Illustrate what executives at competitive companies are paid : De Louse Plastics Corporation pays its executives an excessive amount relative to other employees also to illustrate what executives at competitive companies are paid. This is most likely to be challenged.

Reviews

Write a Review

Programming Languages Questions & Answers

  Return boolean value true if string in array is palindrome

Write the recursive method testPalindrome which returns boolean value true if string stored in array is palindrome and false otherwise. Method must ignore spaces and punctuation in string.

  Write constructor which needs two string parameters

Generate a class named Student which includes String data fields for firstName and lastName. Prepare a constructor which needs two String parameters to populate firstName and lastName fields.

  Write the program which approximates pi using series

Your problem is to write the program which approximates pi using above series. Allow the user to specify the number, n, of terms to be used.

  Program to allot new value to first element of array

Write the single statement which assigns new value to first element of array. This new value must be equal to twice value stored in the last element of the array.

  Write program to enter last names of five candidates

Write down the program which permits the user to enter last names of five candidates in local election and number of votes received by each candidate.

  Write progam which uses two-dimensional array

Write the progam which uses two-dimensional array to store the highest and lowest temperatures for each month of the year. The program should output the average high, average low,

  Program read weight of package of breakfast cereal in ounces

Write a program which will read the weight of package of a breakfast cereal in ounces and output weight in metric tons as well as number of boxes

  Write loop header to hold odd number between a range

Suppose the int variables i and result have been declared but not initialized. Write down for loop header, that is something of form.

  Write program which permits user to enter first name

Write the program which permits the user to enter first names of candidates in university election and number of votes received by each candidate.

  Write program to merge two files that contain polynomials

Write a program that merges two files that contain polynomials. To merge two files, the input files must be in sorted order.

  Program instantiates four dates and allots invalid values

Demonstration program instantiates four Dates and purposely allots invalid values to some of arguments; class methods will correct invalid values.

  Explain importance of developing strategy for navigation

Discuss the importance of developing a strategy for the navigation, and describe the common navigation elements. Navigation is a very important part of your portfolio.

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