Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can anybody follow the sample output to help me solve this Lab10.java? Thank u so much! CSE 110 Lab 10: Arrays LabExercise: Complete this portion

Can anybody follow the sample output to help me solve this Lab10.java? Thank u so much! image text in transcribed
image text in transcribed
image text in transcribed
CSE 110 Lab 10: Arrays LabExercise: Complete this portion of the lab during your labsession Tracking Sales The file Lab10java contains a Java program that prompts for and reads in the sales for each of 5 salespeople in a company. It then prints out each salesperson's ID, each salesperson's amount of sales, and the total sales across all salespeople. Take a look at the code to figure out how it's structured and what it's up to. Now modify and improve the program as follows: 1. Compute and print the average sale amount. 2. Find and print the maximum sale. Print both the ID of the salesperson with the max sale and the amount of the sale, e.g., "Salesperson 3 had the highest sale with S4500. 3. Do the same for the minimum sale. [Your Name Here) (Your Lab Letter Here Lab10 .java Reads in and stores sales for each of 5 salespeople. Displays sales entered by salesperson id and total sales for all salespeople. import java util Scanner: import java .text. Number Format public class Lab10 public static void main (Stringt args) Number Format money Number Format.getcurrency Instance o variables and constants needed for the progran final int SALESPEOPLE new double tsALESPECPIE); sales double Declare additional variables to store the nax min sale index Don't forget to initialize the max and nin index to 01 Scanner scan new Scanner (systen. in) Read in each person's sales for (int i 0: 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

More Books

Students also viewed these Databases questions