0% found this document useful (0 votes)
32 views3 pages

Assignment 2 (5 Marks)

This document provides instructions for a programming assignment to analyze COVID-19 case distribution data in Malaysia. Students are asked to write a program to view the latest case distribution from a provided website, store the district-level data in variables or data structures, use control structures to determine alert zones (red, orange, yellow, green) for selected states, and output the results with proper formatting. The assignment will be graded based on correctly choosing data types, control structures, output formatting, and inclusion of documentation and readability elements like indentation and comments.

Uploaded by

Sebastian
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views3 pages

Assignment 2 (5 Marks)

This document provides instructions for a programming assignment to analyze COVID-19 case distribution data in Malaysia. Students are asked to write a program to view the latest case distribution from a provided website, store the district-level data in variables or data structures, use control structures to determine alert zones (red, orange, yellow, green) for selected states, and output the results with proper formatting. The assignment will be graded based on correctly choosing data types, control structures, output formatting, and inclusion of documentation and readability elements like indentation and comments.

Uploaded by

Sebastian
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Assignment 2 [5 Marks]

Write a computer program about the COVID-19 case distribution within the last 14 days in Malaysia. Go to : http://statsgen.cloud/covid-
19 to view the latest case distribution in Malaysia. Figure 1 show the example of case distribution in Sabah and Sarawak as of 1 Nov 2021.

Figure 1
Use appropriate choice of variable names or data structure to store the information of the COVID-19 case distribution by district in
Malaysia. Then, use appropriate choice of sequential, selection and repetition control structure to determine the zones
(red/orange/yellow/green). Choose either Sarawak or Sabah. Use appropriate output formatting for best display of output.
Criteria N=0 N=1 N=2 N=3 W W*N
Appropriate choice Unable to identify Able to identify Able to apply Able to apply 20
of variable names required data required data type or required data type or required data type or
or data structure type or data data structure but data structure and data
structure does not produce produce partially Structure and
correct correct produce correct
results results results
Correct choice of Unable to identify Able to apply Able to apply Able to apply 40
sequential, required control required control required control required control
selection or structure structure but does structure and structure and
repetition control not produce correct produce partially produce correct
structure results correct results results
Correct choice of Unable to apply any Able to apply output Able to apply output Able to apply output 10
output formatting output formatting formatting but does formatting and formatting and
not produce nice produce partially nice produce good, nice
output output output
Free from syntax, Unable to run Able to run program Able to run program Able to run program 10
logic, and runtime program but have logic error correctly without any correctly without any
errors logic error and logic error and
display inappropriate display appropriate
output output
Comment / No documentation Documentation is Documentation is Documentation is 10
description simple comment in simple comment well written and
code embedded in code clearly explains what
with header the code is
separating the codes accomplishing
Indentation Unable to organize The code is poorly The code is readable The code is easy to 10
/ Naming the code organized and very only by a person who read
convention difficult to read already knows its
purpose
100 /300

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy