Write a python program that generates a small web site

Assignment Help Python Programming
Reference no: EM131533100

Generated Web Site for Sports Club

Your task in this assignment is to write a Python program that generates a small web site for a local sports club. It will read some input data from a text file (e.g., a spreadsheet in comma-separatedvalues, or CSV, format) and automatically generate several web pages with links going between the pages. The idea is that as the season progresses, and more games are played, 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 results.

Each web page should show a different aspect of the club activities. For example, you might have one web page for each team in the club, with that page displaying all the games that that team has played, with the scores shown for each game (and possibly the schedule of future games to be played). Or you might have a different page for each grade or age level, showing all the teams and results for that grade.

There must be one top-level page, called index.html, that is the entry point for the web site. This must describe the whole club, and should have links to all the other pages.

Input Data
You first task is to choose a sport or club, and get some suitable input data.. If you play a sport yourself, see if you can get some data files for your sport. Or talk to friends and relatives and see if they are involved in any clubs or sports that would like to have a prototype web site generated for them.

If you cannot find, beg, or borrow any real data for a sports club, there are web sites like Fox Sports Pulse that list teams and results for many different local sports. Some of them have results for previous years, as well as partial results for this year. So choose a sport you are passionate about, and copy some grades, team names, and even scores from those pages and put them into a CSV file. Keep it simple! If you cannot find a local sports club, you can use your favourite national club.

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;
3. use functions to raise the abstraction level of your program;
4. use string and list methods to generate HTML.

It will be marked out of 30. Marks will be allocated as follows:

- Design Report. This should be a short (1-2 pages) report giving a brief introduction to the club/sport and the application; describing the format of the input data file(s); giving a summary of the format of the output web site including one of two screenshots / images; brief user documentation of how to run your program.

- Web Design and Functionality. To achieve maximum marks, the generated web site should contain several (5-10) web pages, with an entry page (index.html) that links to all the other pages, and the other pages linking back to the entry page; the layout and organisation of the pages should be elegant and readable, with appropriate choices of colours; good use of HTML tables for layout; the generated pages should conform to HTML standards; a simple CSS file should be used to specify the look of the web pages (this does not have to be generated by your program); some use of images; and several pages should display summary statistics that have been calculated from the input data (e.g. the number of games that each team won and lost, or the average score, or average and best times).

- Python Documentation and Coding Standards. To achieve maximum marks, each function should include appropriate function docs; your program should start with a detailed documentation comment that describes the purpose and usage of the program; correct naming conventions should be followed for variable and function names; and the Python code should conform to standard layout and formatting conventions.

- Program Structure and Algorithms. To achieve maximum marks, your program should be elegantly designed; concise; structured to use functions for each major functionality of the program; use appropriate data structures (e.g. strings, lists, tuples, dictionaries, or objects) to store the data; make good use of Python libraries and methods (e.g. for strings and lists); and be reasonably efficient during execution (e.g. reading the input files just once, rather than many times). The key criterion is the use of functions to raise the abstraction level of the code, and make your program more concise and readable.

Note: the generated web pages should NOT contain any Javascript, as the goal of this assignment is to generate simple static web pages using Python.

Reference no: EM131533100

Questions Cloud

Prepare a brief memorandum to the owner concerns : You are the financial officer for Music Plus, a retailer that sells goods for home entertainment needs. The business owner, Jamie Madsen.
Create a gui application that allows the user to enter price : Create a GUI application that allows the user to enter the following data into text fields: Price per adult ticket and Number of adult tickets sold.
Analyze and comment on the trend in its gross margin ratio : Access the SEC's EDGAR database (www.sec.gov) and obtain the March 19, 2010, filing of its fiscal 2010 10-K report (for year ended January 30, 2010).
Prepare loans for credit tranching and sale : Do some research on the Internet and describe how loan underwriting is used to prepare loans for credit tranching and sale on U.S.
Write a python program that generates a small web site : Write a Python program that generates a small web site for a local sports club. It will read some input data from a text file
Populate the stock ticker combobox control : Populate the stock ticker ComboBox control: The user should start with a ComboBox control that displays the complete list of stock tickers retrieved.
Check your net income with the instructor : Best Brands' general ledger and supplementary records at the end of its current period reveal the following.
The largest segment of the us population : The largest segment of the U.S. population, the "baby boomers," are moving into middle adulthood and, in some cases, even becoming grandparents.
Prepare an REA Data Model for the Revenue Cycle : Using the information provided for Techarati, Inc. prepare an REA Data Model for the Revenue Cycle, including cardinalities

Reviews

len1533100

6/16/2017 4:48:08 AM

In this assignm ent 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; 3. use functions to raise the abstraction level of your program; 4. use string and list methods to generate HTML. the generated web pages should NOT contain any Javascript, as the goal of this assignment is to generate simple static web pages using Python.

Write a Review

Python Programming Questions & Answers

  What is complexity in asymptotic notation of your solution

Write a program in Python to draw the following figure: What is the complexity in asymptotic notation of your solution? Return the "centered" average of an array of ints, which we'll say is the mean average of the values.

  Part-1for task 1 list the things you changed and the

part-1for task 1 list the things you changed and the purpose of changing it. good reasons include making code easier

  Design and implement a data structure for a social network

In this assignment you are required to design and implement a data structure for a social network (e.g., Facebook, LinkedIn, etc). You would also be required to implement an algorithm to show the connection.;

  Code a console-based program in python

CP1404/CP5632 2016 SP2/22/52 Assignment - Shopping List 1.0. You are to plan and then code a console-based program in Python 3, as described in the following information and sample output. This assignment will help you build skills using selection,..

  Interaction between the customer and the machine

In Python:Simulate a cash register or ATM including the interaction between the customer and the machine (i.e. assume that you are automating the responses)

  Develop a software in python for performing nearest neighbor

Topic: Develop a software in Python for performing nearest neighbor and furthest neighbor analysis using the squared euclidean distance

  Write a short program in python that turns on all leds

Write a short program in Python that turns on all LEDs, one at a time, in a looping fashion. When an LED is on, it should stay on for 1 second.

  Develop and test a python program

develop and test a python program to track student marks in the various assignments in a given unit of study. The time allocated for this project is 10 weeks.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Identify whether an individual character is a numeric digit

You may identify whether an individual character is a numeric digit via expr[pos].isdigit() There are similar funtions isalpha for letters and isalnum for alphanumerics (letters or digits).

  Without using the system function to call any bash commands

without using the system function to call any bash commands write a python program that will implement a simple version

  Most popular name would be the one with the biggest number

the program will ask you to insert the year that the user is interested in, then ask the gender that the user is interested in, and print out the most popular names corresponding to the year and gender. FYI, the number on the right represents how man..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd