Source code should be Python

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Source code should be Python

Post by answerhappygod »

Source code should be Python
Source Code Should Be Python 1
Source Code Should Be Python 1 (6.17 KiB) Viewed 11 times
Step1: Write a class named Retailltem that holds data about an item in a retail store. The class should store the following data in attributes: items description, units in inventory, and price.
Step 2: (After completing Step 1 of B-3) Write a program that creates three Retailltem objects (three instances) that store the following data. Units in Inventory Description Jacket Designer Jeans Shirt Prod1 Prod2 Prod3 Your output may look like the following: Product 1: Description: Jacket Units in inventory: 12 Price: $249,99 Product 2: Description: Designer Jeans Units in inventory: 30 Price: $199.99 Product 3: Description: Shirt Units in inventory: 45 Price: $49.99 12 30 45 Price $249.99 $199.99 $49.99
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply