Question: I need the code for this in Python Course Information(20 points)Write a program that creates a tuple for the following course numbers: COP 2510 EGN

I need the code for this in Python

Course Information(20 points)Write a program that creates a tuple for the following course numbers:

COP 2510

EGN 3000L

MAC 2281

MUH 3016

PHY 2048

Use the tuple as keys for the following dictionaries:

The first dictionary should have the following key-value pairs:

Course Numbers Course Name

COP 2510 Programming Concepts

EGN 3000L Foundations of Engineering Lab

MAC 2281 Calculus I

MUH 3016 Survey of Jazz

PHY 2048 General Physics I

The second dictionary should have the following key-value pairs:

CourseNumbers Instructor (First Initial, LastName)

COP 2510 S.Small

EGN 3000L J. Anderson

MAC 2281 A. Makaryus

MUH 3016 A. Wilkins

PHY 2048 G. Pradhan

The third dictionary should have the following key-value pairs:

CourseNumbers Class Times

COP 2510 MW 12:30pm 1:45pm

EGN 3000L TR11:00am 12:15pm

MAC 2281 MW9:30am 10:45 am

MUH 3016 online asynchronous

PHY 2048 TR5:00pm 6:15pm

The program should let the user enter a course number rand, if the course is in the dictionary, it should display all of the course information. Otherwise, the program should display a message indicating that the course cant be found.

Sample output: Output 1

: Enter a course number: COP 2510

The course details are:

Course Name: Programming Concepts

Instructor: S. Small

Class Times: MW 12:30pm -1:45pm

Output 2:

Enter a course number: COP 4932

COP 4932 is an invalid course number.

Tip:Since each dictionary uses the same key, you can just search for the course in one of the dictionaries(instead of all three.)

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!