Monthly Store Sales Analysis System

Please check the attached file and submit your Java code. Do not submit screenshots or links.

A small retail store records its daily sales at the end of each working day. At the end of the

month, all sales data is saved in a text file called sales.txt.

Each line in the file contains:

  • The day number.
  • The total sales amount for that day.
  • The store manager wants a Java program that can read this file and produce a monthly sales

    summary to help analyze the stores performance, and your task is to design this program.

    Input File: The input file is named sales.txt. Each line in the file follows this format:

    DayNumber SalesAmount

    Example:

    1 450.75

    2 1200.00

    3 980.50

    System Requirements: Your Java program must perform the following tasks:

    1. Read all sales data from the file sales.txt.

    2. Calculate the total sales for the month.

    3. Calculate the average daily sales.

    4. Count how many days had high sales. A high-sales day is defined as sales >= to 1000.

    5. Display the results clearly on the screen.

    Programming Constraints:

    1. 4. You are provided with a partially completed Java program.

    2. You are provided with an input file.

    3. You must NOT modify any method header.

    You must implement all missing parts.

    Requirements: answer it correctly

    WRITE MY PAPER


    Comments

    Leave a Reply