Question: ##PROBLEM i1 (20 points) : ## Write code to help find desirable courses to take next semester. Download and look at the text file: 2024s3Fall

##PROBLEM i1 (20 points) : ## Write code to help find desirable courses to take next semester. Download and look at the text file: 2024s3Fall courses. txt Notice the structure. It is a text file. The first line has a heading, ## All other lines contain a course listings. Courses are listed in pairs, lecture then lab. ## Show which courses desired based on some criteria (BCIS, COSC, 1336, 1337, MW, TTh, etc, ) ## Hint: Open the file: '2024s3fall_ courses. txt' (If file not found, give error message and quit) Skip ist line; read all other lines into a collection (list, tuple, dict, set, your choice) ## Ask user for criteria for selection: Such as: COSC 1336, MW or DIL, etc) Show the user those courses which meet the criteria. You did something similar in Lab 7, when reading in the state census data. ## Hint: use split on comma (), ") to sub-divide the line into fields, use sub- scripting to find the desired field. ## This is not as difficult as you might expect. You can decide on the criteria to ask for
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
