Implement program in python

Assignment Help Python Programming
Reference no: EM132891469

Timetable Organiser is a system that allows users to view university timetables in multiple forms including by campus, room, subject, and lecturer. The system expects the timetable data to be stored in a simple comma-separated text file with the format:

subject,activity,day,start,end,campus,room,lecturer

A sample timetable data file is shown below:

ABC101,Lecture,Monday,08:00,10:00,Jenolan,J10112,Ada Log
ABC101,Tutorial,Tuesday,10:00,11:00,Jenolan,J10115,Ena Blue
ACE204,Lecture,Monday,09:00,11:00,Tarana,T05201,Kin Wall
ACE206,Lecture,Wednesday,13:00,14:00,Tarana,T06402,Kin Wall
PRG321,Lecture,Tuesday,14:00,16:00,Jenolan,J09302,Foxy Rex
PRG321,Tutorial,Thursday,11:00,12:00,Jenolan,J09212,Esk Brown

You are required to develop a menu-based program that implements the Timetable Organiser system. Your program should prompt the user for a timetable data file name. After the file has been successfully read, the system will interact with the user to view the timetable according to the desired selections.

You must define a function called display_timetable that accepts a string parameter containing the selection type and a list parameter containing the selection results, and prints the table in the format shown in the sample above.
You must use lists and string methods in your program.
You must handle the IOError exception with a specific handler. In addition, your program must not crash regardless of the input provided.
Your program must not import any library or module other than your own written modules (if any).

Task 1 Implement your program in Python. Comment on your code as necessary to explain it clearly.

Task 2 Select at least three sets of test data that will demonstrate the normal operation of your program; that is, test data that will demonstrate what happens when a valid input is entered. Select two sets of test data that will demonstrate the abnormal operation of your program; that is, test data that will demonstrate what happens when an invalid input is entered or when an error is encountered.

Set it out in a tabular form as follows: test data type, test data, the reason it was selected, the output expected due to using the test data, and finally a screenshot of the output actually observed when the test data is used. It is important that the output listings (i.e., screenshots) are not edited in any way.

Attachment:- Instructions_File.rar

Reference no: EM132891469

Questions Cloud

What is organization direction : What is Organization Direction, Design, and Effectiveness with given examples? there is a certain figure that explains it, what is the explanation of the figure
Bus 2003 sustainability and ethics : You need to consider a significant business ethics and/or sustainability issue. Do not consider multiple issues as it will degrade the quality of work.
Discuss importance of business ethics in organization : You are commissioned to advise your organization on business ethics and corporate social responsibility. You are required to write a report. It should be around
Explain accumulation by dispossession : In McNally Chapter 5 Global Slump, how does he define and explain accumulation by dispossession?
Implement program in python : Implement your program in Python and demonstrate the normal operation of your program; that is, test data that will demonstrate what happens when a valid input
What is direct cost and indirect cost : What is direct cost and indirect cost? Give its relationship in research budget preparation
Find concepts from regression modelling : A professor ran a regression between the number of hours that students spent studying (self-reported by students) and their final grade.
What are the limitations of electronic job markets : The online job market connects job seekers with potential employers.
Factors affecting the reliability of a research instrument : b) "Validity is more critical to measurement than reliability". Do you agree with the statement? Explain.

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  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.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

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