Question: Implement these using python TRY IT YOURSELF 9-1. Restaurant: Make for Restaurant should store two attributes: a restaurant_name and a cuisine type Make a method

Implement these using python  Implement these using python TRY IT YOURSELF 9-1. Restaurant: Make for
Restaurant should store two attributes: a restaurant_name and a cuisine type Make

TRY IT YOURSELF 9-1. Restaurant: Make for Restaurant should store two attributes: a restaurant_name and a cuisine type Make a method called describe_restaurant() that prints these two pieces of a class called Restaurant. The init () method information, and a method called open restaurant () that prints a message indi- cating that the restaurant is open. Make an instance called restaurant from your class. Print the two attri- butes individually, and then call both methods. 9-2. Three Restaurants: Start with your class from Exercise 9.1. Create three different instances from the class, and call describe restaurant () for each instance. 9-3. Users: Make a class called user. Create two attributes called first name and last_name, and then create several other attributes that are typically stored in a user profile. Make a method called describe user) that prints a summary of the user's information. Make another method called greet user() that prints a personalized greeting to the user. methods Create several instances representing different users, and call both for each user

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!