Question: JAVA. Create a program with grocery customers names and the amount spent on groceries for each trip to the store this month. First line example:

JAVA. Create a program with grocery customers names and the amount spent on groceries for each trip to the store this month.

First line example: "Richard,35.00,67.00,13.00". So he went to the grocery store 3 times this month and spent $35, $67, and $13.

With this information, calculate theaveragegrocery bill for each customer.

Print in this format with each person on a new line: "Name: Richard, Average: 00.00"

Data in text file should contain:

Richard, 85.00,7.00,10.00

Kelly, 14.00,82.00,41.00,66.00

Miyeon, 12.00,90.00,21.00,71.00

Bill, 75.00,100.00,45.00

Cedric, 11.00

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!