Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Advances In Databases And Information Systems 25th European Conference Adbis 2021 Tartu Estonia August 24 26 2021 Proceedings Lncs 12843

Authors: Ladjel Bellatreche ,Marlon Dumas ,Panagiotis Karras ,Raimundas Matulevicius

1st Edition

3030824713, 978-3030824716

More Books

Students also viewed these Databases questions