Question: Write a program that contains 2 functions, main ( ) and again ( ) , and 3 dictionaries. In the main ( ) function place

Write a program that contains 2 functions, main() and again(), and 3 dictionaries.
In the main() function place the dictionaries.
Create a dictionary named location containing course numbers and the room numbers of the rooms where the courses meet. The dictionary should have the following key-value pairs:
Course Number (key) Room Number (value)
COSC 1305161
FIN 1024501
BIOL 1036755
HUM 1101244
Phys 2411411
The program should also create a dictionary named profs containing course numbers and the names of the instructors that teach each course. The dictionary should have the following key-value pairs:
Course Number (key) Instructor (value)
COSC 1305 Farrell
FIN 102 Alvarado
BIOL 103 Rich
HUM 110 Burke
PHYS 241 Lee
The program should also create a dictionary named when containing course numbers and the meeting times of each course. The dictionary should have the following key-value pairs:
Course Number (key) Meeting Time (value)
COSC 13055:00 p.m.
FIN 1029:00 a.m.
BIOL 10310:00 a.m.
HUM 11011:00 a.m.
PHYS 2411:00 p.m.
The again() function should be used to ask if the user wants to look up another course. If the answer is no ends the program. (This is like how you used the again function used in a previous assignment)
Remember that the response can be either upper or lower case. (If unsure how to handle this check out Table 8-2 and the explanation)
The program should let the user enter a course number, then it should display
if the course not listed, print the following replacing the with actual data
The is an invalid course number.
if listed, print the courses room number, instructor, and meeting time (Notice I want a formatted table)
The details for course are:
Room:
Instructor:
Time:
You need to test it 3 times, using 2 courses that are listed and one that is not.

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!