Question: Write a program which will accept Sales amount of a week (7 days) and display the sum of all sales amount, the average of all

 Write a program which will accept Sales amount of a week

Write a program which will accept Sales amount of a week (7 days) and display the sum of all sales amount, the average of all sales amount. The program should have an object class Sales and do the following operations. Member variables: amount[ ] (Array to store sales amount with maximum size of element 7) Total (the total sales amount) Average (the average sales amount Member Methods : a. Read(): Create a method called Read() which accept the sales (1 Mark) amount for a week and store it in Array. Create a Output_Sales () method which will display all the (1Mark) sales amount stored in the array. b. Output _Sales (: c. Qutput. Total Averagel): (2 Marks) Create Output Total Average() method which calculates the Total sales amount , Average sales amount and display them to the user. Create a driver or control class called Sales. Main. In this class, the main method is used to call the methods Read (), Output_Sales () and Output. Total Average (1 Mark) Write a program which will accept Sales amount of a week (7 days) and display the sum of all sales amount, the average of all sales amount. The program should have an object class Sales and do the following operations. Member variables: amount[ ] (Array to store sales amount with maximum size of element 7) Total (the total sales amount) Average (the average sales amount Member Methods : a. Read(): Create a method called Read() which accept the sales (1 Mark) amount for a week and store it in Array. Create a Output_Sales () method which will display all the (1Mark) sales amount stored in the array. b. Output _Sales (: c. Qutput. Total Averagel): (2 Marks) Create Output Total Average() method which calculates the Total sales amount , Average sales amount and display them to the user. Create a driver or control class called Sales. Main. In this class, the main method is used to call the methods Read (), Output_Sales () and Output. Total Average (1 Mark)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!