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

  How to use bit vector to represent dynamic set of distinct

Explain how to use a bit vector to represent a Dynamic Set of Distinct Elements with no Satellite Data. Dictionary Operations must Run in O (1) Time.

  Program to print smallest number and largest number entered

Write C++ program; LargestSmallest.cpp; which inputs six real numbers from user and determines and prints smallest number and largest number entered.

  Development of the current strategic potential of airline

Evaluate the organisation's current external and internal strategic position

  Create and write payroll program to prompt user for input

Create and write a payroll program that will prompt the user to enter employee's hourly pay rate and the number of hours worked.

  Program to compute person-s body mass index

Write a program to compute person's body mass index? Create a modular program which calculates and display person's body mass index (BMI).

  Create a class which holds account number

Create a class named Loan which holds the account number, name of account holder, amount borrowed, term, and interest rate. Include methods to set values for each data field.

  Write driver class to instantiates-updates flight objects

Write a driver class called FlightTest whose main method instantiates and updates several Flight objects. Two classes are needed for this project: Flight and FlightTest.

  Creating website-based sales system for retail firm

Assume that you have been hired to create website-based sales system for large international retail sales firm.

  Compare three generations of programming languages

Compare and contrast at least three generations of programming languages. Be sure to include in your discussion: semantics, syntax, and machine dependence.

  Write function to merge contents of two sorted arrays

Write a function which will merge contents of two sorted (ascending order) arrays of type FLOAT values, use efficient bubble sort to sort two arrays first and then use merger function.

  Data members to store values of the two loans

A class that represents a person who belongs to a SACCO has two data members to store values of the two loans the person owes the SACCO. Add a parameterized constructor that initializes these loans using the two values passed as arguments.

  Program to continuously accepts each worker-s first name

Program which continuously accepts each worker's first and last names, this year's number of units produced, and last year's number of units produced.

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