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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started