Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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:
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started