Read the situation below and complete your writings. Coronavirus disease (COVID-19) is an infectious disease caused by a newly discovered coronavirus. Most people who fall sick with COVID-19 will experience mild to moderate symptoms and recover without special treatment. Create a new program which will analyse Covid-19 case in Malaysia based on a state daily. The user must enter the state (such as Sabah) and number of districts of covid-19 reading. Every day, each district will only update the total of new cases two times. Daily cases are the total of report update daily. To record the data, the system is developing according to specification below: i. Read number of district, representing the size of array, ii. Read the name of district. ii. Read total new cases in each update The report must include the following process: Calculate and view total cases daily for each district Find the average of new cases in that state. Calculate the frequency of new cases. i. ji. ii. iv. Determine total new cluster based on this criterion below. Yellow Cluster green <10 10 -30 More than 30 Determine the highest cases and equivalent district. Output sample as Figure 1 V. vi.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter16: Searching, Sorting And Vector Type
Section: Chapter Questions
Problem 23PE
icon
Related questions
Question
100%
Do flowchart and java code for the question given
Read the situation below and complete your writings.
Coronavirus disease (COVID-19) is an infectious disease caused by a newly discovered coronavirus. Most people
who fall sick with COVID-19 will experience mild to moderate symptoms and recover without special treatment.
Create a new program which will analyse Covid-19 case in Malaysia based on a state daily.
The user must enter the state (such as Sabah) and number of districts of covid-19 reading. Every day, each district
will only update the total of new cases two times. Daily cases are the total of report update daily.
To record the data, the system is developing according to specification below:
i.
ii.
Read number of district, representing the size of array,
Read the name of district.
ii.
Read total new cases in each update
The report must include the following process:
Calculate and view total cases daily for each district
Find the average of new cases in that state.
Calculate the frequency of new cases.
iv.
i.
ii.
ii.
Determine total new cluster based on this criterion below.
Yellow
10 -30
green
Cluster
<10
More than 30
Determine the highest cases and equivalent district.
Output sample as Figure 1
V.
vi.
Transcribed Image Text:Read the situation below and complete your writings. Coronavirus disease (COVID-19) is an infectious disease caused by a newly discovered coronavirus. Most people who fall sick with COVID-19 will experience mild to moderate symptoms and recover without special treatment. Create a new program which will analyse Covid-19 case in Malaysia based on a state daily. The user must enter the state (such as Sabah) and number of districts of covid-19 reading. Every day, each district will only update the total of new cases two times. Daily cases are the total of report update daily. To record the data, the system is developing according to specification below: i. ii. Read number of district, representing the size of array, Read the name of district. ii. Read total new cases in each update The report must include the following process: Calculate and view total cases daily for each district Find the average of new cases in that state. Calculate the frequency of new cases. iv. i. ii. ii. Determine total new cluster based on this criterion below. Yellow 10 -30 green Cluster <10 More than 30 Determine the highest cases and equivalent district. Output sample as Figure 1 V. vi.
Enter no of disctrict in the state : 4
Enter 4 name of disctrict in the state : lajau merinding ganggarak manikar
Enter 4 first total cases reading : 12 23 14 5
Enter 4 second total cases reading : 23 15 4 1
****
List of disctrict :
lajau merinding
23
15
ganggarak
manikar
12
14
5
23
4
1
35
38
18
Average cases for today is: 24
Total cluster for today: 2
Final report of Covid-19 cases for today:
disctrict
total cases
remarks
lajau
merinding
ganggarak
35
cluster
38
cluster
18
Yellow Zone
manikar
Green Zone
Highest case of Covid-19 today: 38
District: merinding
Figure 1: Output sample run from BlueJ compiler
Transcribed Image Text:Enter no of disctrict in the state : 4 Enter 4 name of disctrict in the state : lajau merinding ganggarak manikar Enter 4 first total cases reading : 12 23 14 5 Enter 4 second total cases reading : 23 15 4 1 **** List of disctrict : lajau merinding 23 15 ganggarak manikar 12 14 5 23 4 1 35 38 18 Average cases for today is: 24 Total cluster for today: 2 Final report of Covid-19 cases for today: disctrict total cases remarks lajau merinding ganggarak 35 cluster 38 cluster 18 Yellow Zone manikar Green Zone Highest case of Covid-19 today: 38 District: merinding Figure 1: Output sample run from BlueJ compiler
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,