The file SalesData.txt (below) contains the dollar amount of sales that a retail store made each day for a numberof weeks. Each line in the file contains seven numbers, which are the sales numbers for one week.The numbers are comma delimited. The following line is an example from the file:2541.36, 2965.88, 1965.32, 1845.23, 7021.11, 9652.74, 1469.36Write a program using mainly methods within or outside a class definition to open the SalesData.txt fileand process its contents. The program should display the following on screen in the form of pop-ups.The same results should be duplicated in an output file that you will call SalesAnalysys.txt. Include SalesAnalysis.txt as part of your submission.• The total sales for each week• The average daily sales for each week• The total sales for all the weeks• The average weekly sales• The week number that had the highest amount of sales• The week number that had the lowest amount of sales
I can include the data file along with notes on the program that I have
It is due tomorrow
Awesome, thank you.
You can ask me again using "For LogicPro only" at the start of your questions like other customers to get instant answers.
It will ensure that question is for me.
Please bookmark my profile page:
so you can come back and ask me a question anytime.
Remember, if you need anything else, we can continue the conversation until you’re satisfied and rate my answer as excellent. I can address follow up questions at no extra charge and I’m always here to help.
Thank you for using this site!
Is there a way we can have the answer display in the text box, not a JOptionPane?