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

  Write application to use random-number to create sentences

Write an application that uses random-number generation to create sentences. Use four arrays of strings called article, noun, verb and preposition.

  Program to compute percentage and final grade for students

Write a program which will permit teacher to compute percentage and final grade for students in a class.

  Write statement essential to call compute interest method

Write statement essential to call the calculate interest method with an account balance of $2300.00 and an interest rate of 5%. What rule must be adhered to when calling a method with multiple parameters?

  Determine total cost of order-display it in alert dialog box

After you determine the total cost of the order (purchase plus shipping and handling), display it in an alert dialog box.

  Write program which inputs the string from user

Write a program which inputs the string from a user. Then it will take character as input and prints string onwards from that character.

  Write program to read file consisting of students test score

Write program which reads a file consisting of students test scores in range 0-100. It muts then determine number of students having scores in each of the ranges.

  Write program to compute student-s quiz average

Write a program that will compute student's quiz average. Program must prompt the user for the number of quizzes and then ask the user for each quiz grade.

  Write css rule to gives all h elements padding

Write down CSS rule which gives all h1 and h2 elements padding of 0.5 ems, grooved border style and margin of 0.5ems. Prepare a layout template which contains header and two columns.

  Find whether each shape is two dimensional shape

Find whether each shape is TwoDimensionalShape or a ThreeDimensionalShape. If it is a TwoDimensionalShape, display its area. If it is a ThreeDimensionalShape, display its area and volume.

  Write program where dealer-s five-card hand is dealt

Write a program where the dealer's five-card hand is dealt "face down" so the player cannot see it. The program should then evaluate the dealer's hand.

  Users selection and return to menu

Create a menu that will allow the user to list all wines by name in alphabetic order and count all wines in each type and list all 5 types with their count

  Write vl program to convert leagues-number of nautical miles

Write a VL program which will convert 20,000 leagues to number of nautical miles. Your program requires no input elements, just elements to compute result and output how many nautical miles is equivalent to 20,000 leagues.

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