Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java Program Design a program as per the following information using the accompanying data file. sodaSales.dat Make sure the program compiles and that you include

Java Program

Design a program as per the following information using the accompanying data file.

sodaSales.dat

Make sure the program compiles and that you include pseudo code. The quiz

is worth 100 points. The program must demonstrate you knowledge of the use of methods.

You have been asked to produce the report below. Each month the company

delivers 150 bottles to each location. This report will tell the company how

Sales are going. You will read the file named sodasales.dat The values are the brand name, number sold, the cost per bottle, the retail price. You will read each of these into their own arrays.

Soda Sales

Bottles Cost Retail Profit Percent

Soda Sold Bottle Bottle Brand Sold of 150

----- ---- ----- ------- ------- -----------

You will have a summary at the end of the report. The summary section should display the average cost, the average price, the highest and the lowest priced soda. You will also display total profit.

Remember profit is the profit per bottle multiplied by the number of bottles sold.

soda sales in dat file

Coke 34 3.00 5.00 Sprite 18 2.89 4.30 Fanta Mango 21 3.35 5.99 Orange Crush 35 4.00 6.00 Browns Cream Soda 43 4.25 5.75

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

Database Security XI Status And Prospects

Authors: T.Y. Lin, Shelly Qian

1st Edition

0412820900, 978-0412820908

More Books

Students also viewed these Databases questions