Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

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

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions

Question

How do members envision the ideal team?

Answered: 1 week ago

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago