Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Professional SQL Server 2000 Database Design

Authors: Louis Davidson

1st Edition

1861004761, 978-1861004765

More Books

Students also viewed these Databases questions

Question

What is meant by formal organisation ?

Answered: 1 week ago

Question

What is meant by staff authority ?

Answered: 1 week ago

Question

Discuss the various types of policies ?

Answered: 1 week ago

Question

Briefly explain the various types of leadership ?

Answered: 1 week ago

Question

Explain the need for and importance of co-ordination?

Answered: 1 week ago