Assignment 3 program that opens the following text file and processes it contents Solved

25.00 $ 12.50 $

Category:

Description

Please start with this source code.
Write a program that opens the following text 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.