Question: Program language: Python In this assignment, you will be writing a program with classes to keep track of phones. Here are the requirements for the

Program language: Python

In this assignment, you will be writing a program with classes to keep track of phones. Here are the requirements for the program: Create a new class called Phone. The Phone class should have a class attribute for the owner's name. Since all phones have a manufacturer and a model number, your class should take the manufacturer and model number from the constructor and assign them to instance attributes. Your Phone constructor should be able to take the parameters in any order. Override the print method for Phone to output a human-friendly version of the information. In a second code cell, write a main function to test your Phone class. The main function should prompt the user for an owner name and then start prompting for the manufacturers and models for all phones for that user until the user enters a 'q' or 'Q'. After the entry print out a list of all the phones. Example Output (User Inputs are in Bold Italics): Please enter the owner's name: Steve J Please enter the phone's manufacturer: Apple Please enter the phone's model: iPhone 7 Please enter the phone's manufacturer: Samsung Please enter the phone's model: Galaxy 3 Please enter the phone's manufacturer: Motorola Please enter the phone's model: X4 Please enter the phone's manufacturer: q Phone List: iPhone 7 is made by Apple and is owned by Steve J Galaxy 3 is made by Samsung and is owned by Steve J X4 is made by Motorola and is owned by Steve J

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!