Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Department of Health has asked you to writea program to assist in the modelling of data to control the spread of the COVID-19 virus.

The Department of Health has asked you to writea program to assist in the modelling of data to control the spread of the COVID-19 virus. You have been asked to read data from a text file, and predict future positive tests based on a number of parameters, including existing positive tests, the growth rate of the virus (how many people 1 person infects), and social distancing compliance, which can inhibit the spread of the virus.

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed
Your brief The Department of Health has asked you to create a program to assist in the modelling of data to control the spread of the COVID-19 virus You have been asked to read data from a text file, and predict future positive tests based on a number of parameters, including existing positive tests, the growth rate of the virus (how many people 1 person infects), and social distancing compliance, which can inhibit the spread of the virus. You have been asked to provide summary reports based on several scenarios, and to write updated files to disk. Details You will be provided with a file, data.txt, which will contain data in the following form (figures represent positive tests and are indicative only): NSW 2854 ACT 102 OLD 983 VIC 1268 SA 429 WA 517 TAS 133 NT 27 Your program will read the file data.txt, and predict future positive tests for each State and Australia as a whole. ....docx OneDrive_2020....zip Wireless Netwopptx 7.4.1-packet-tr...pkaInputs The user will be asked for: The growth rate of the virus (how many people one person infects) The number of days to calculate into the future . The percentage the population practicing social distancing (social distancing compliance) Outputs The program will list positive cases in each state and for the country as a whole in the following form: COVID-19 POSITIVE RESULTS - 5 DAY PREDICTIONS GROWTH RATE: 1.5 SOCIAL DISTANCING COMPLIANCE: 30% DAY NSW QLD VIC TAS WA SA NT ACT TOTAL DAWN 2854 983 1268 133 517 429 27 102 5071 2996 1032 1331 139 542 450 28 107 6625 3146 1083 1397 146 569 472 30 112 6955 3303 1137 1467 153 598 496 32 118 7304 3469 1194 1541 161 628 521 33 124 7671 Once the modeling has been run, the user should have the option to run it again. Each time it is run, the output should be saved to disk with the following filename: report s.txt where s is a number returned by int(time.time() ) (time.time() is a function from the time module which you will need to import). This returns the number of seconds since 1/1/70 so that each value of s will be a unique timestamp. So for example the file may look like this: report_1586386072.txtUse the following information for your calculations: i=initial number of positive cases (read from detour} d=number of days being calculated g=growth rate (how many people are infected by each person) s=social distancing compliance {what percentage of the population practices social distancing} i... For any given day d, the number of positive results is calculated by the following (simplied) formula: 1) To scale the growth rate we take into account social distancing compliance: g=g-{]sflll) 2) We then use this gure in the formula: Positive tesm=( 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 tests after 14 days, with social distancing compliance of 20% this would be: g=1.5-{1-2w10m=1.1 Positive tesm=(4llw 1.1" )=514 Note that if the social distancing compliance went up to 30% the result would be only 19. And if social distancing compliance went up to 35% infections would actually drop to 28! 1 Import the math module so you can implement the formula. 1 Break the problem down and use functions where possible to make your program modular. I Test your program with a range of values for growth rate, number of days, and social distancing compliance. 1! Validate all data input for correct data type and range Note that the group's solution should be documented in a formal report. Each student must identify their particular role in the report by which they will be assessed Your report should: Indicate the role of each team member . Provide the results of several runs of your program with different values for growth rate and social distancing compliance, for 5, 14 and 30 days For a given growth rate, indicate the social distancing compliance that would result in reductions of infections, and make recommendations Approximate word length is 600 words. ICTICT102A - Introduction to Programming ITICT102A_Group_Assignment_2020 Page 3 of 4 Note that each student must upload the following saved as a zip file: 1. Python program 2. Formal Report Marking Criteria Criteria Marks Comments Program uses functions 2 Program should make generous use of functions (at least 2 Data is correct based on input 2 Gives correct output Several runs using different data provided as requested 2 0.5 for each run (at least 4 runs Comments used to explain program operation 2 Table of data displayed as re See ahoveMarking Criteria Criteria Marks Comments Program uses functions 2 Program should make generous use of functions (at least 2) Data is correct based on input 2 Gives correct output Several runs using different data provided as requested 2 0.5 for each run (at least 4 runs) Comments used to explain program operation 2 Table of data displayed as required See above Data displayed in correct format (including no decimal 2 places Output file written using correct filename (including |2 timestamp Exceptions for file I/O handled correctly 2 Should not crash Data input validation done properly for the following: Data types and ranges Growth rate 3 tested for each Social distancing compliance Number of days Opportunity to run program again 2 User-driven Formal report: I mark for student roles, 2 . Work distribution between students documented 3 marks for properly recommendations Recommendations TOTAL 25

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

=+5. Explain semantic autosuggest. How can it be implemented?

Answered: 1 week ago