Question
You are an administrator. You want to track some of the courses being offered. Write a python program that will allow you to enter four
You are an administrator. You want to track some of the courses being offered. Write a python program that will allow you to enter four pieces of information:
- The course number
- The room number
- The instructor
- The meeting time
use 3 dictionaries (rooms, instructors, times) to store this information. the course number would be the key in the three dictionaries, and the other items would be the values.
Allow for six courses and their associated items.
After creating the dictionaries , ask the user what to search for. When you search for one of the items, the other three will be found and print. You can search by room number or instructor or meeting time.
Here the sample of output:
Enter the course number: CSC 250
Enter the room number: BEH 112
Enter the instructor for the course: Bill
Enter the time the course meets: 2:00 pm
Enter 1 to search by room number.
Enter 2 to search by instructor name.
Enter 3 to search by time.
Enter your menu choice: 1
Enter the room number: DEH 112
The details for course CSC 250 are:
Room: DEH 112
Instructor: Bill
Time: 2:00 pm
Do you want to continue? (enter y for yes and n for no.)
When it is yes, the program continues, and it ends if no.
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