Question: Design a python class that represents an item in the inventory. Refer to the SnowMan example provided a previous assignment classroom activity. Choose one of
Design a python class that represents an item in the inventory. Refer to the SnowMan example provided a previous assignment classroom activity. Choose one of the following realworld objects to model in the system.
Create an electric device class with the following
idInteger: A unique identifier for each device.
nameString: The general name of the device, eg smartphone, laptop.
modelString: The specific model of the device.
serialnumberString: A unique code assigned to each device for identification.
priceFloat: The selling price of the device.
manufacturedateDate: The date by when the device was manufactured.
Create a driver class with a main method.
In this method, instantiate several objects of your inventory class and print their properties to demonstrate their creation.
You do not need to implement the user menu yet. This not an interactive application. Its only purpose is to demonstrate the design of a class and the ability to create instances
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
