Question
The file sections.txt has information about programming courses being offered. Here is what it looks like: CIS 106 002 MW 1:50-4:15 p.m. C3-14 CIS 106
The file sections.txt has information about programming courses being offered. Here is what it looks like:
CIS 106 002 MW 1:50-4:15 p.m. C3-14 CIS 106 950 T 6:00-8:25 p.m. C3-10 CIS 114 001 MW 12:40-3:05 p.m. C3-18 CIS 200 900 online CIS 211 900 online CIS 244 900 online CSCI 111 001 TR 2:00-4:30 p.m. C3-10 CSCI 111 900 online CSCI 111 901 online CSCI 111 951 MW 12:00-1:45 p.m. C3-12 CSCI 112 001 MW 8:00-10:30 a.m. C3-10 CSCI 112 900 online CSCI 112 951 W 6:00-8:25 p.m. C3-18 CSCI 211 900 online
The data set for each section is on three consecutive lines, with the course number, section, and meeting time and location. If the course is an online course (HYBAS), then the data has online in place of the meeting time and location.
Your task is to write a program that contains a while loop to read in the data for each section then print the data with online for each section, similar the what the programs stateList.py and stateListFormatted.py do. It is up to you to decide what each like will look like, but we should have one line for sections, printed on the screen in a way that is easy to read and understand.
You should submit your properly formatted .py file for the assignment.
You should read the document Notes about Python Text Files included with the files in this week's module.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started