Create the program uses two arrays to hold employee names

Assignment Help Programming Languages
Reference no: EM1372512

Create a program that uses two arrays: one to hold employee names and one to hold employee salaries (standard US currency, two decimal points). The program should prompt the user to enter employee names and salaries (see screenshot for details). The just-entered employee name should be printed when prompting for their salary.

After all employees have been entered, present the user with a menu, implemented with a switch, of actions that can be taken with the data that has been entered. This menu should be presented until the user chooses to quit. The user should be able to:

• print all employees and salaries,
• print the maximum salary and who makes it,
• print the minimum salary and who makes it,
• print the average salary and how many employees make more, less, or equal to the average,
• and quit.

You should have at least four methods for this project. One method, printAll(), should simply print all employees and their salaries (using fixed width columns, see System.out.printf(...)) line-by-line. The second method, getMaxSalaryIndex() should walk through the salary array, determine the maximum salary, and return the index of that salary. The third method, getMinSalaryIndex() should be a clone of getMaxSalaryIndex(), but should determine the smallest salary and return the index of that salary. The fourth method, printAverageStats() should calculate the average salary from the salary array and should then walk back over the array.

Reference no: EM1372512

Questions Cloud

Calculate the firm current contribution margin : Brazen, Corporation produces sound amplifiers for electric guitars. The company's income statement showed the following;
What are different ways of measuring global inequality : Why should a profit maximizing manager who is setting prices care about elasticity demand curve for a product. Elasticity only accounts for how price changes revenue.
What are the social structure : What are the social structure described by Durkheim,Tonnies, and Lenski? How does it which comes closest to matching certain social setting of to day?
Find the force provided by the cable : A floodlight with a mass of 20.0 kg is used to clarify the parking lot. The floodlight is supported at the end of a horizontal beam that is hinged to a vertical pole.
Create the program uses two arrays to hold employee names : Create the program which uses two arrays: one to hold employee names and one to hold employee salaries (standard US currency, two decimal points). The program must prompt user to enter employee names.
Calculate value of price elasticity of demand : For a product, at a price of $3, quantity demanded is 60 units and at a price of $5 quantity demanded is 40 units. Using midpoint formula, calculate value of price elasticity of demand.
Elements-functions of god myths : Explain the elements and functions of god myths. Also summarize the elements and functions shared by female and male divine
Determine the radius of the tire : An 10m, 210N uniform ladder rests against a smooth wall. The coefficient of static friction between the ladder and the ground is 0.55, and the ladder makes a 50° angle with the ground. How far up the ladder can an 850N person climb before ladder b..
Estimate the npv and irr : A drug company produces and sells generic over counter drugs in plants located throughout the country. One of its plants is trying to decide whether to automate a portion of its packaging process

Reviews

Write a Review

Programming Languages Questions & Answers

  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 .

  Design function to accept two integer values

Design function named max that accepts two integer values as arguments and returns the value that is the greater of the two. for example if 7 and 12 are passed as arguments to the function the function should return 12.

  Write html form that prompts user to enter value

Write an HTML form that prompts the user to enter a value. In PHP, write a script to determine whether the value contains an integer , a decimal-place number.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Create project to compute checking account balance

Create a project to compute your checking account balance. Form: Include radio buttons to indicate the type of transaction: deposit, check, or service charge.

  Program to calculate volume flow rate in cubic feet

Write a program to calculate the volume flow rate in cubic feet per second of water flowing through a pipe of diameter d in inches and a velocity of v feet per second.

  Program to compute net pay of employee

A program to compute net pay of employee. It must permit one to read deposit number, account name, amount deposited, and yesr.check.

  Compute and print annual salary of employee

Identify input, process and output to solves each problem. Compute and print the annual salary of employee. suppose the employee receive 6% increase in pay.

  Creating personnel promotion application program

The following application program will be modified to accommodate the change to the database table. The personnel promotion application program.

  Program to display words in a list box sorted by number

Write a program to display the words in a list box sorted by the number of different vowels(a,e,i,o,u) in the word.

  Write program which prompts for boiling point of substance

Write program which prompts user for observed boiling point of substance in Centigrade and identifies substance if observed boiling point is within 5% of the expected boiling point.

  Applying constraints in program

You will require to set up constants in program for given: number of square feet per square yard.

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