« All Events
6 PM – Python OOP – Gamas
December 7, 2022 @ 8:00 am - 5:00 pm
Homework
- All of class files are uploaded to google drive which you can access here: https://drive.google.com/drive/folders/1yj3auNLld74NNzu98nptj8Y2BN3JF0z0
- Henry, please do your homework 2 weeks ago from page 167.
- For everyone, do the following homework
- In Dec7_GroceryShoppingCartV4.py. Figure out how to run the program that will call the application_loop() method. If you do it properly, you should be able to run the Grocery Shopping Cart application as before. If you are confused how to do this, look at page 167 homework (Nov16_ClassHomeworkP167.py) and see how you call open_restaurant() or describe_restaurant() methods. This is the same mechanism on how you call the application_loop() method from GroceryShoppingCartSystem class.
- Create a new file school_system.py
- Create a program that will continuously print the following menu until user enter exit then stop the program.
-
Please select one of the following
1. Add new student
2. List all students
3. Find student
4. Add new teacher
5. List all teachers
6. Find teacher using Dictionary
7. Find student using Dictionary
Enter your selection. Enter "exit" to quit: 12123
Please select one of the following
1. Add new student
2. List all students
3. Find student
4. Add new teacher
5. List all teachers
6. Find teacher using Dictionary
7. Find student using Dictionary
Enter your selection. Enter "exit" to quit: adf
Please select one of the following
1. Add new student
2. List all students
3. Find student
4. Add new teacher
5. List all teachers
6. Find teacher using Dictionary
7. Find student using Dictionary
Enter your selection. Enter "exit" to quit: exit