Reference no: EM132005334
Generated Web Site for Aussie Road Fatalities
Your task in this assignment is to write a Python program that generates an informative web site about Australian Road Fatalities over the last 30 years, showing summary statistics about the crash types, speed limits, vehicle types, times of day, and the ages and genders of the people who died.
This will allow viewers to get insights into the data, and to identify trends that are changing over time.
Your program will read some input data from a text file (e.g., a spreadsheet in comma-separated-values, or CSV, format) and automatically generate several web pages with links going between the pages. The input data is updated each month, so the idea is that your program will be run on the updated input data each week or each month to automatically generate an updated web site that shows the latest trends and statistics.
Each web page should show a different aspect of road fatalities, and how that aspect has changed over time. Some of your pages must have photos and graphs. Here are some suggestions for different pages you might generate:
- Fatalities per year, and how this rate is changing over time;
- Fatalities per Australian state;
- Fatalities at different times of the day (each hour);
- The impact of different types of crash (single vehicle, multiple vehicle, pedestrian, etc.);
- The contribution of crashes involving buses and trucks, compared to other kinds of crashes;
- The impact of different speed limit zones on road fatalities;
- The impact of different road-user roles (driver; passenger; motor cyclist; cyclist, pedestrian, etc.) on road fatalities;
- The impact of gender on road fatalities - note that the data shows the gender of the deceased person, not necessarily of the driver;
- The impact of age (of the deceased) on road fatalities.
Four more important goals:
A. For most of these pages, it would be even more interesting and useful if you could display the change in these statistics over time, such as comparing 1989 against 2017, or the first 10 years against the most recent 10 years.
B. Also, for many of these pages, it would be more meaningful if you could display the statistics relative to the total number of vehicles or vehicle-kilometres in that category. For example, display the fatalities for buses and trucks relative to how many buses and trucks are on the roads, rather than just the absolute numbers of fatalities - this makes it possible to compare fatality rates between those different types of vehicles. To generate some of these relative percentages, you will need to obtain additional data from other sources - for example, the ABS has lots of data about vehicle usage in Australia. Make sure you clearly document all your data sources!
C. There must be one top-level page, index.html, that is the entry point for the web site. This must give an overview of the whole website, and should have links to all the other pages.
D. All the HTML files and graphs in your whole web site must be generated by your Python program, so that your whole web site can be automatically updated when the input data values are updated, just by rerunning your Python program.
Learning Objectives
In this assignment you will learn how to:
1. use top-down design to divide a larger data processing task into parts;
2. use Python to read and write text files (CSV data files);
3. use functions to raise the abstraction level of your program;
4. analyse data to produce graphs and summary statistics;
5. use string and list methods to generate HTML.
Attachment:- resources.rar
Compute the cost of new common stock
: If a $3 flotation cost is involved, compute the cost of new common stock (Kn). (Do not round intermediate calculations. Input your answer as a percent rounded.
|
Discuss about the dollar-euro exchange rate
: Murray Electric has agreed to buy precision lathes from Germany and is worried about the dollar/euro exchange rate. The total invoice amount is €800,000.
|
Moors and drove them out of spain
: He was a Spanish hero who, before he was 20, led a Spanish force against the Moors and drove them out of Spain. He is celebrated in poem and romance.
|
Calculate the apv of the project
: MVP, Inc., has produced rodeo supplies for over 20 years. The company currently has a debt-equity ratio of 50 percent and is in the 40 percent tax bracket.
|
Write a python program that generates an informative website
: ICT112 - University of Sunshine Coast - Generated Web Site for Aussie Road Fatalities - write a Python program that generates an informative web site
|
Compare natural versus anthropogenic climate changes
: Compare and contrast natural versus anthropogenic climate changes. Include at least two (2) specific examples of each.
|
What amount of equity income would anderson recognize
: What amount of equity income would Anderson recognize in 2011 from its ownership interest in Barney
|
Ad to the northern part of britain
: The Scots were a Gaelic tribe that migrated in the 6th century AD to the northern part of Britain, from where? Ireland, Belgium, or Holland?
|
What is the geometric average annual return
: You mutual fund investment earned 4.5% three years ago, 6.75% two years ago, and 8% last year. What is the geometric average annual return over the last three.
|