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

  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