File Assignments Menu Create Schedule File Create Report File Exit Please enter your choice: Example of a schedule file ( notice class info is stored as a record containing three fields ( class name, class number, meeting days and meeting time) with each field on a separate line : CIS 115 mw 10-12 CSC 121 tth 01-03 Example above only shows two classes (records), your file will have more entries (5 minimum 10 maximum) If the user chooses option 2 (Create Report File), program is to read the schedule report and create a report file similar to the example shown below: Example of a report file Student Name 2019 Spring Schedule (center this heading) Class Name Meting Days Meeting Times CIS115 MW 10-12 CSC121 TTh 01-03 Design the program to notify the user if no schedule.txt file exists (hint: exception handling)
Based on what you took thus far in this chapter, your boss(me) needs you to create an application that will that accept a student’s 2019 Spring schedule thru input. Name the file XXXM7HW2 where XXX is your last name. You will need to get the student’s course number, course name, days it meets and times it will meet.
Once you get this information, you will need to write the information to a text file called schedule.txt and also create a student schedule report called report.txt. You can ask the user what to call the file or just name the files within the program. You will need to create a menu that can be ran more than once. Below is an example of a menu you can use:
File Assignments Menu
- Create Schedule File
- Create Report File
- Exit
Please enter your choice:
Example of a schedule file ( notice class info is stored as a record containing three fields ( class name, class number, meeting days and meeting time) with each field on a separate line :
CIS
115
mw
10-12
CSC
121
tth
01-03
Example above only shows two classes (records), your file will have more entries (5 minimum 10 maximum)
If the user chooses option 2 (Create Report File), program is to read the schedule report and create a report file similar to the example shown below:
Example of a report file
Student Name 2019 Spring Schedule (center this heading)
Class Name Meting Days Meeting Times
CIS115 MW 10-12
CSC121 TTh 01-03
Design the program to notify the user if no schedule.txt file exists (hint: exception handling)
FULL PYTHON CODE
Trending now
This is a popular solution!
Step by step
Solved in 7 steps with 6 images