Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help writing this in Python 3, please and thank you!! 1.Creating the CellPhone Class Wireless Solutions, Inc. is a business that sells cell

I need help writing this in Python 3, please and thank you!!

image text in transcribed

1.Creating the CellPhone Class Wireless Solutions, Inc. is a business that sells cell phones and wireless service. You are a programmer in the company's IT department, and your team is designing a program to manage all of the cell phones that are in inventory. You have been asked to design a class that represents a cell phone. The data that should be kept as attributes in the class are as follows 1. The name of the phone's manufacturer will be assigned to the manufact attribute 2. The phone's model number will be assigned to the model attribute 3. The phone's retail price will be assigned to the retail_price attribute The class will also have the following methods Aninitmethod that accepts arguments for the manufacturer, model number, and retail price A set_manufact method that accepts an argument for the manufacturer. This method will allow us to change the value of the manufact attribute after the object has been created, if necessary A set_model method that accepts an argument for the model. This method will allow us to change the value of the model attribute after the object has been created, if necessary A set_retail_price method that accepts an argument for the retail price. This method will allow us to change the value of the retail _price attribute after the object has been created, if necessary A get_manufact method that returns the phone's manufacturen A get_model method that returns the phone's model number get retail price method that returns the phone's retail price A The CellPhone class will be imported into several programs that your team is developing. To test the class, you write the code. This is a simple program that prompts the user for the phone's manufacturer, model number, and retail price. An instance of the CellPhone class is created and the data is assigned to its attributes Sample Program Output (with input shown in bold) Enter the manufacturer: Acme Electronics Enter Enter the model number: M1000 Enter Enter the retail price: 199.99 Enter Here is the data that you entered: Manufacturer: Acme Electronics Model Number M1000 Retail Price: $199.99

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

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions

Question

What is the meaning of? (a) 1/15, n/60; (b) n/30; (c) n/eom?

Answered: 1 week ago

Question

5. Can an inhibitory message propagate along an axon?

Answered: 1 week ago

Question

12-5 How will MIS help my career?

Answered: 1 week ago