University | Temasek Polytechnic (TP) |
Subject | Computer Programming |
Trip Distance 1
The table below is a partial capture of the average trip distance on public transport (Average Distance per Trip in Kilometers) in Singapore for the 11-year period from 2004 to 2014, ordered by type of public transport.
Year | MRT | LRT | Bus | Taxi | ||||
2010 | 10.3 | 2.1 | 4.8 | 9.3 | ||||
2011 | 10 | 2 | 4.5 | 9.6 | ||||
2012 | 9.6 | 1 | 4.4 | 9.7 | ||||
2013 | 9.5 | 2 | 4.3 | 9.8 | ||||
2014 | 9.2 | 2 | 4.3 | 10 |
In this project, you are required to:
- Initialize appropriate lists with the given (full) data
- Write a Python program that shows four different menu options (and to include a Quit option).
Based on the user selection, your program shall
1. Display the average trip distance on public transport by type of public transport for 2008.
2. For a user-selected public transport type (e.g., Bus),
a. display the mean of the average trip distance for the 7-year span 2004 – 2010.
b. display the years and the average in that period which fall below the mean of the averages found above.
3. For a user-selected type of public transport type, display the year and the average trip distance in which the average has changed (increase or decrease) by at least 5% over the previous year.
4. Make the following line plots
a. Difference between MRT and Bus average trip distance (for each year) vs Year
b. Total Average Trip Distance (for all Public Transport excluding MRT) vs Year.
Hire a Professional Essay & Assignment Writer for completing your Academic Assessments
Native Singapore Writers Team
- 100% Plagiarism-Free Essay
- Highest Satisfaction Rate
- Free Revision
- On-Time Delivery
Avail of affordable assignment help for computer programming assignment from Singapore Assignment Help. We have a wonderful team of expert coders in the company and they have years of experience in the programming field. They work round the clock to support you with your computer science or Data Programming (ICT233) assignment and Python programming assignment. Also Our IT experts provide you excellent homework help for java at a low cost.
Looking for Plagiarism free Answers for your college/ university Assignments.
- ECE210 Advocacy and Collaborations with Families Assignment: Supporting Young Children Through Grief and Family-Centered Partnerships
- ACC707 Accounting and Finance Assignment: Evaluating Investment Decisions, Budgeting Strategies, and Financial Performance Analysis
- NCO201 Learn to Learn, Learn for Life TMA-01: Developing Self-Directed Learning Through the Journey of Mastering Public Speaking
- PSS219 Public Safety and Security in Singapore Group-Based Assignment: Strengthening National Resilience Through Policy Responses from the 2025 Committee of Supply Debate
- MTH240 Engineering Mathematics I Assignment: Heat Transfer, Chemical Balancing, Circuit Analysis, Signal Processing, and Matrix Theory
- Engaging Youth with IBM Skills Build Assignment: Designing Innovative Strategies for Skill Development and Career Growth
- BUS368 Innovation Management and Digital Transformation Assignment: Managing Innovation in Foldable, Trifold, and Stretchable Display Technologies
- BUS366 Assignment: Process Improvement and Recruitment Optimization Using Lean Six Sigma Methodology
- HBC203 Statistics and Data Analysis for the Social and Behavioural Sciences TMA-01: A Comparative Analysis of Workplace Wellbeing Interventions and Their Impact on Employee Productivity
- BCAF003 Business Accounting Assignment: A Comprehensive Study on Bank Reconciliation, Cash Controls, Inventory Valuation, and Financial Analysis