Question: In Python : CTI110, NOS125, CTS120, , and NET125. Write down the start time, room, and instructor for each class. Then write a program that

In Python: CTI110, NOS125, CTS120, , and NET125. Write down the start time, room, and instructor for each class. Then write a program that creates three dictionaries, times, rooms, and instructors. Each will have the class IDs as key and the appropriate values. In a loop, show a user a list of the IDs and ask them to enter one or XXX100 to exit the loop and program. If they don't enter any of the IDs or XXX100, display an error and ask them again. When they enter a valid ID (use the variable name course), display the time, room, and instructor like this:

print('The details for course', course, 'are:')

print('Room:', rooms[course])

print('Instructor:', instructors[course])

print('Time:', times[course])

INFO: NOS-125- Classroom Hours Tuesday 06:00PM Room 00118 -T. Edward NOS-120 - Classroom Hours Tuesday 06:00PM Room 00118 -T. Edward CTS-120 Classroom Hours Tuesday 12:30PM - 02:10PM, Room 00122 M. Forteson NET-120 Classroom Hours 12:30PM - 02:10PM 125 M. Forteson

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!