Assessment 4: Applied Project

FIND A SOLUTION AT Academic Writers Bay

Assessment 4: Applied Project
Due date:
Week 12
Group/individual:
Group
Word count/Time provided:
3000
Weighting:
25%
Unit Learning Outcomes:
ULO1, ULO2, ULO3, ULO4, ULO5
Assessment 4 brief:
Work in a group of 2 or 3. Due end of week 12.
Groups need to be formed by week 4.
The Department of Health pointed you to develop a program to assist in controlling the spread of the
COVID-19 virus. The Department provided you with text file data and asked you to predict future
positive cases based on several parameters, including social distancing compliance, existing positive
cases, the growth rate of the virus (how many people are infected by each person). The text file
contains data in the following form (The name of the state and figures represent positive cases). These
figures are indicative only.
You must provide a summary report based on several scenarios and write the predicted data in a text
file.
Assessment 4 Details:
The text file (data.txt) contains the following data, and you can download the file from the subject
site:
NSW
1752
ACT
1120
QLD
923
VIC
1320
SA
520
WA
630
TAS
125
NT
110
The main program should first display a menu as follows. A user needs to select an option from the
main menu.
=======================================================
Prediction of COVID-19 Positive Cases
=======================================================
<1> List current positive cases
<2> Insert prediction parameters
<3> List predicted positive cases
<Q> Quit
Please select an option from the above: 1
If a user chooses the option <1>, the program will list all current positive cases from the data.txt file,
and then the system will display the main menu again.
A typical example of the program display (once a user chooses the option <1>) can be as follows.
Your program MUST follow the same display style.
The current positive cases are:
DAY NSW ACT QLD VIC SA WA TAS NT
——————————————–
1 1752 1120 923 1320 520 630 125 110
=======================================================
Prediction of COVID-19 Positive Cases
=======================================================
<1> List current positive cases
<2> Insert prediction parameters
<3> List predicted positive cases
<Q> Quit
Please select an option from the above: 2
If a user chooses the option <2> from the main menu, the program will be asked the user for:
growth rate of the virus (how many people infects). (e.g., 1.5)
number of days to calculate into the future. (e.g., 4 days)
of the population practising social distancing (social distancing compliance). (e.g.,
35%)
Then the system will display the main menu again.
=======================================================
Prediction of COVID-19 Positive Cases
=======================================================
<1> List current positive cases
<2> Insert prediction parameters
<3> List predicted positive cases
<Q> Quit
Please select an option from the above: 3
If a user chooses the option <3> from the main menu, the program will calculate and lists the
predicted positive cases in each state and for the country as a whole in the following form:
COVID-19 POSITIVE RESULTS
4 DAY PREDICTIONS
GROWTH RATE: 1.5
SOCIAL DISTANCING COMPLIANCE: 35%
DAY
NSW
ACT
QLD
VIC
SA
WA
TAS
NT
TOTAL
—————————————————
1
1752 1120 923
1320 520
630
125
110
6500
2 – – – – – – – – –
3 – – – – – – – – –
4 – – – – – – – – –
– Then the system will display the
main menu again.
Once option 3 has been run, the user should have the option to rerun it.
Each time it is run, the output should be saved to a text file with the following filename: report_v.txt,
where v is a version number. For example, the first time, the file name may look
report_1.txt, second time report_2.txt etc.
Finally, the program quits if the user chooses the option <Q>.
Calculations:
Use the following information for your calculations:
i = initial number of positive cases (read from data.txt)
d = number of days is calculated
g = growth rate (how many people are infected by each person)
s = social distancing compliance (what percentage of the population practices social
distancing)
For any given day d, the number of positive results is calculated by the following (simplified)
formula:
1) To scale the growth rate, we take into account social distancing compliance:
g=g*(1-s/100)
2) We then use this figure in the formula:
Positive cases=( i*gd)
For example, if there were 40 initial cases, a growth rate of 1.5, and you wanted to know the number
of positive cases after 14 days, with social distancing compliance of 20%, this would be:
g=1.5*(1-20/100)=1.2
Positive cases=(40*1.214 )=514
Note:
You must use multiple functions instead of using a single function to do everything.
You must handle exceptions appropriately, such as the data.txt file is not existing, string
values instead of numbers etc.
Validate all data input for correct data type and range with error messages.
You must use appropriate data structure such as Lists, Dictionaries etc.
Import the math module so you can implement the formula.
Test your program with a range of values for growth rate, number of days, and social
distancing compliance.
You need to develop the system by completing the following tasks:
Task 1:
Implement your system in Python. Comment on your code as necessary to explain it clearly.
Task 2:
Each group should write a formal report that includes:
A cove page for your assignment that includes the names of the group members and their
contribution percentage in this assignment (each student must state which parts of the
assignment have completed). If your name is not on the cover page, you will be given zero.
You need to test your program by selecting at least three sets of testing data. Provide the
results of testing of your program with different values for growth rate and social distancing
compliance for 5, 14 and 30 days. Record the testing results using the testing table below.
For a given growth rate, indicate the social distancing compliance that would reduce
infections and make recommendations.
Draw system flowchart/s that present the steps of the algorithm required to perform the major
system tasks.
The approximate word length is 500 words.
There are tools (see links below) that can be useful in drawing a flowchart.
https://www.draw.io/
http://dia-installer.de/
https://pencil.evolus.vn/
Use the below table to set your test results. It is important that provide screenshots of your program
output.
Test Data Table
Test
data
The reason for selecting this
data
The expected
output
The screenshot of the actual
output
Test Data Table
Note that each group submission will consist of:
1. Python program (Source code for your Python implementation)
2. Assignment report
Assessment 4 Marking Criteria and Rubric
The assessment will be marked out of 100 and weighted 25% of the total unit mark. The marking
criteria and rubric are shown on the following page.
Assessment 4 Marking Criteria and Rubric
Marking Criteria
Not Satisfactory
(0-49% of the criterion
mark)
Satisfactory
(50-64% of the criterion
mark)
Good
(65-74% of the criterion
mark)
Very Good
(75-84% of the criterion
mark)
Excellent
(85-100% of the criterion
mark)
Flowcharts Content
(10%)
The flowchart does
not meet the pass
criteria.
Missing many tasks,
use of decisions
incorrect
Flowcharts follow the
convention, contain at
most three notation
errors and produce
algorithm at a high
level.
Flowcharts have at
most one notation
error.
The algorithm
matches the
program code.
Flowcharts precisely
describe the algorithm
design.
Flowcharts do not
have any unnecessary
component.
Algorithm design is
efficient in terms of
time and memory.
Flowcharts layout
(5%)
The flowchart is
cluttered looking or
confusing. It is often
difficult to locate
important elements
The flowchart has a
usable layout, but it is
not easy to locate the
most important
elements.
The flowchart has a
usable layout. It is
easy to locate all of
the important
elements.
The flowchart has an
attractive and usable
layout. It is easy to
locate all important
elements
The flowchart has an
exceptionally
attractive and usable
layout. It is easy to
locate all important
elements. Graphic
elements are used
effectively to organize
material.
Identify correct
input/ output
(10%)
Unable to identify
any input and output
Able to identify only
one input or output
Able to identify
some input and
output correctly
Able to identify all
input and output
correctly
Able to identify all
input and output
correctly and provide
alternative
Appropriate choice
of variable names or
data structure
(5%)
Unable to identify
the required data type
or data structure
Able to identify the
required data type or
data structure but
does apply correctly
Able to apply
required data type
or data structure
but does not
produce correct
results
Able to apply required
data type or data
structure and produce
partially correct results
Able to apply required
data type or data
structure and produce
correct results
A correct choice of
sequential, selection
or repetition control
structure
(10%)
Unable to identify the
required control
structure
Able to identify
required control but
does apply correctly
Able to apply the
required control
structure but does
not produce correct
results
Able to apply the
required control
structure and produce
partially correct results
Able to apply the
required control
structure and produce
correct results
Free from syntax,
logic, and runtime
errors
(10%)
Unable to run
program
Able to run program
but have a logic error
Able to run the
program correctly
without any logic
error
Able to run the
program correctly
without any logic error
and display
inappropriate output
Able to run the
program correctly
without any logic error
and display
appropriate output
Validate input for
errors and out-of
range data
(10%)
The program
produces incorrect
results
The program
produces correct
results but does not
display correctly
Does not check for
errors and out-of
range data
The program
produces correct
results but does not
display correctly.
Does little check
for errors and out
of-range data
The program works
and meets all
specifications. Does
some check for errors
and out-of-range data
The program works
and meets all
specifications. Does
exceptional checking
for errors and out-of
range data
Program
functionality
(10%)
Python code is
produced that does
not execute properly.
It may contain a lot
of syntax errors
Functionality is
mostly implemented,
but code may contain
minor syntax or
logical errors.
Python code
produces correct
results.
The program meets all
specifications.
Python code contains
only necessary
functions, collections
and statements and
variables.
Program output
(10%)
The program
produces completely
incorrect results.
Program output has
significant formatting
errors.
Program output has
minor formatting
errors.
The program output
format is correct as
required.
The program handles
all exceptions and
errors correctly,
including those which
are not part of
specifications.
Code style
(10%)
Incomplete or largely
dysfunctional code.
The student uses
many global
variables.
Most variables have
exact names.
Student only uses a
small number of
inline comments.
Student avoids
unnecessary global
variables.
All variables have
meaningful names.
Sufficient inline
comments are
present.
Indentation is
consistent
throughout.
Functions are used,
but they are not
generic (reusable).
Code design is
modular, containing
several reusable
functions.
Named constants are
used instead of magic
numbers.
White space is
appropriately used for
code readability.
Code includes function
header comments and
module-level
docstrings.
Testing data
(10%)
Does not meet Pass
criteria
Selected test data is
clearly presented in
the required table
format.
At least two normal
and two abnormal test
cases are provided.
Test results are
reproducible
Minimum required
number of normal
and abnormal test
cases are collected.
Brief reasoning is
provided for the
test data selection.
Sound justification is
provided for the
selection of test data.
Diversity is evident
among the chosen test
data.
Test data is explored
in every branch of the
program.
To demonstrate
comprehensive testing,
the number of test
cases exceeds the
required minimum.
Additional Note: The standards outlined for each criterion are cumulative. For example, to achieve the standard for high distinction, your work
also needs to meet the Pass, Credit and Distinction levels standards.

Order from Academic Writers Bay
Best Custom Essay Writing Services

QUALITY: 100% ORIGINAL PAPERNO PLAGIARISM – CUSTOM PAPER