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 a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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