Question: can i get help with this :( JAVA CODE Question 2. (30 points) A supermarket wants to keep statistical data about its customers. For that

can i get help with this :( can i get help with this :( JAVA CODE Question 2. (30
JAVA CODE

Question 2. (30 points) A supermarket wants to keep statistical data about its customers. For that purpose, they want you to write the following java program: a) (10 pts.) In this first part your code will prompt the cashier to enter all names and prices. Your code will take names to a string array list and prices to double array list. (Hint: Because of a Java bug, you may need to use two scanner objects, one for string and char input, and one for double input) b) (10 pts.) Write a method to calculate the average, and standard deviation of the customer prices. This method takes the prices as input and prints the average and standard deviation. Average = (price 1 + price2 + ...+priceN)/N (Total number of customers). Standard deviation = sqrt ((price1 - average)2 + (price2 - average)2 + ..+ (priceN-average)2/N (Total number of customers)). c) (10 pts.) Sort customer names alphabetical order (from "A" to "Z"). Do not forget to change their prices' position according to new ordering

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!