Question

Phyton

prog COMPLETE. Problem 1: Write a program that creates a directory containing course numbers and the room numbers of the room

Course Number (key) Meeting Time (value) CS101 8:00 am CS102 9:00am CS103 10:00am NT110 11:00am CM241 1:00pm The program shou

0 0
Add a comment Improve this question Transcribed image text
Answer #1
d1={"CS101":3004,"CS102":4501,"CS103":6755,"NT110":1244,"CM241":1411}
d2={"CS101":"Haynes","CS102":"Alvarado","CS103":"Rich","NT110":"Burke","CM241":"Lee"}
d3={"CS101":"8:00am","CS102":"9:00am","CS103":"10:00am","NT110":"11:00AM","CM241":"1:00pm"}
coursenumber=input("Enter the coursenumber:")
coursenumber=coursenumber.upper()
if coursenumber in d1.keys():
    print("Course Room Number:",d1.get(coursenumber))
    print("Instructor:",d2.get(coursenumber))
    print("Meeting Time:",d3.get(coursenumber))
else:
    print("Course number Doesn't exist")

RESULT:

Enter the coursenumber:cs101
Course Room Number: 3004
Instructor: Haynes
Meeting Time: 8:00am

Add a comment
Know the answer?
Add Answer to:
Phyton prog COMPLETE. Problem 1: Write a program that creates a directory containing course numbers and...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • IN python, Write a program that creates a dictionary containing course numbers and the room numbers...

    IN python, Write a program that creates a dictionary containing course numbers and the room numbers where the courses meet. The dictionary should contain the following key:value pairs. Course Number (key) Room Number (value) CS101 3004 CS102 4501 CS103 6755 NT110 1244 CM241 1411 The program should also create a dictionary 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) CS101 Haynes CS102...

  • Python Language Only!!!! Python Language Only!!!! Python Language Only!!!! Python 3 is used. Write a program...

    Python Language Only!!!! Python Language Only!!!! Python Language Only!!!! Python 3 is used. Write a program that creates a dictionary named rooms 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) CS101 3004 CS102 4501 CS103 6755 NT110 1244 CM241 1411 The program should also create a dictionary named instructors containing course numbers and the names of the instructors that teach...

  • Python Language Only!!!! Python Language Only!!!! Python Language Only!!!! Python 3 is used. Write a program...

    Python Language Only!!!! Python Language Only!!!! Python Language Only!!!! Python 3 is used. Write a program that creates a dictionary named rooms 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) CS101 3004 CS102 4501 CS103 6755 NT110 1244 CM241 1411 The program should also create a dictionary named instructors containing course numbers and the names of the instructors that teach...

  • Using Python. Please help! The output should looks like below. Please follow the emphasis. I think...

    Using Python. Please help! The output should looks like below. Please follow the emphasis. I think it just prompt user to input course name. Write a modular program that creates a dictionary 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) CS101 3004 CS102 4501 CS103 6755 NT110 1244 CM241 1411 The program should also create a dictionary containing course...

  • Write a Java program that creates and manipulates a directory of names, telephone numbers. The following...

    Write a Java program that creates and manipulates a directory of names, telephone numbers. The following information will be stored for each person in the directory: - Name (Last, First) - Home telephone number You should keep the entire collection ordered by key value (the combination of last and first names). Your program should be able to perform the following basic functions: - Search and display the contents of a particular entry - Display the entire directory - Delete an...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT