Question: solve the problem, design and develop a program using array. Array Instructions: For submission, the students should write: The flowchart the source code (Java program)
solve the problem, design and develop a program using array.
Array
| Instructions: |
For submission, the students should write: The flowchart the source code (Java program)
|
The weekly Covid 19 cases for states in Malaysia are stored in a two-dimensional array. Each row records a number of cases of each state in seven-days with its total. Write a program that does the following:
a. Read daily cases for each state.
b. Find total cases for each state.
c. Find an overall total case for all states.
d. Display the table to summarize all the information as shown below.
e. Display the line graph based on the number of cases in each state with its percentage.
Sample output:Array ( use java)

Number of cases a week : 12121313 State [2] :Melaka Number of cases a week : 2312121923
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
