Verity Wireless Solutions, Inc. is a business that sells mobile phones and wireless services. You are a programmer in the company’s IT department, and your team is designing a program to manage all of the mobile phones that are in inventory. You have been asked to develop an object - oriented software solution for managing the phone inventory. The requirements specified are as follows: A reusable class (Phone class) to model the Mobile Phone entity in a separate python file (py) The data that should be kept as attributes in the Phone class are as follows: The name of the phone’s manufacturer will be assigned to the _ _manufact The phone’s model number will be assigned to the _ _model The phone’s retail price will be assigned to the _ _retail_price The class will also have the following methods: An _ _init_ _ method 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 manufacturer. A get_model method that returns the phone’s model number. A get_retail_price method that returns the phone’s retail price. 1. Write a tester program (Console User Interface) in a separate python file (py), to create two phone objects, and display/print the object information in console. (1 mark) 2. Write a tester program (Graphical User Interface) in a separate python file (py), to create two phone objects, and display/print the object information in GUI. You can use a GUI layout of your choice. (1.5 marks) The data you use would need to be similar to the following sample test data.
Verity Wireless Solutions, Inc. is a business that sells mobile phones and wireless services. You are a programmer in the company’s IT department, and your team is designing a
- A reusable class (Phone class) to model the Mobile Phone entity in a separate python file (py)
- The data that should be kept as attributes in the Phone class are as follows:
- The name of the phone’s manufacturer will be assigned to the _ _manufact
- The phone’s model number will be assigned to the _ _model
- The phone’s retail price will be assigned to the _ _retail_price
- The class will also have the following methods:
- An _ _init_ _ method 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 manufacturer.
- A get_model method that returns the phone’s model number.
- A get_retail_price method that returns the phone’s retail price.
1. Write a tester program (Console User Interface) in a separate python file (py), to create two phone objects, and display/print the object information in console. (1 mark)
2. Write a tester program (Graphical User Interface) in a separate python file (py), to create two phone objects, and display/print the object information in GUI. You can use a GUI layout of your choice. (1.5 marks)
- The data you use would need to be similar to the following sample test data.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images