Question: Please do in java as simply as possible with the code available for copy and with comments so i can follow along :) Hard code
Please do in java as simply as possible with the code available for copy and with comments so i can follow along :) Hard code please.
The code should also accept user input, not have values hard coded. The output should also be formatted in rows and columns like the table below
Write a program that uses a two-dimensional array to store the sales for the bookstore for a month. The array can be initialized with user input or initialized when the array is declared. Write two methods: one to calculate and return the average sales for the month and one to calculate and return the total sales for a week of sales. These methods MUST be your original code. Your program should output all the values in the array (in rows and columns) and then output the average sales and the total sales for each week
Sales Amounts
| Monday | Tuesday | Wednesday | Thursday | Friday | |
| Week 1 | 1234.55 | 2222.35 | 2400.15 | 2523.73 | 567.84 |
| Week 2 | 1001.13 | 1101.01 | 923.92 | 907.57 | 250.15 |
| Week 3 | 732.87 | 494.15 | 502.85 | 323.50 | 214.17 |
| Week 4 | 551.15 | 442.25 | 383.89 | 627.19 | 239.18 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
