Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions