Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do in java as simply as possible with the code available for copy and with comments so i can follow along :) Write a

Please do in java as simply as possible with the code available for copy and with comments so i can follow along :)

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Formal SQL Tuning For Oracle Databases Practical Efficiency Efficient Practice

Authors: Leonid Nossov ,Hanno Ernst ,Victor Chupis

1st Edition

3662570564, 978-3662570562

More Books

Students also viewed these Databases questions

Question

understand the key issues concerning international assignments

Answered: 1 week ago