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.
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
|