Beginning Java programming, computer science homework help

Beginning Java programming, computer science homework help

I am doing my java homework. After I typed in my codes. I got infinite loops. I don’t know the reason. Please help me fixing my codes. And! do not change anything in my FileIO.java and franchise.java. Those are source code from instructor. I will attach the instruction and my files. Additionally, im using eclipse. Since I am not able to upload my java file. I paste my code into word documents.

instruction:

Write a program that opens the salesdat.txt file and processes it contents. The program should display the following per store:

  • The total sales for each week. (Should print 5 values – one for each week).
  • The average daily sales for each week. (Should print 5 values – one for each week).
  • The total sales for all the weeks. (Should print 1 value)
  • The average weekly sales. (Should print 1 value)
  • The week with the highest amount in sales. (Should print 1 week #)
  • The week with the lowest amount in sales. (Should print 1 week #)

The file contains the dollars amount of sales that a retail store made each day for a number of weeks. Each line in the file contains thirty five numbers, which are sales numbers for five weeks. The number are separated by space. Each line in the file represents a separate store.

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper