The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 2 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Python Programming Python 3
Part 1
Employee Class Write a class named Employee that holds the following data about an employee in attributes: name, ID number, department, and job title.
Once you have written the class, write a program that creates three Employee objects to hold the following data:
Name                  ID Number                         Department                     Job Title
Susan Meyers  47899                                   Accounting                       Vice President
Mark Jones        39119                                   IT                                          Programmer
Joy Rogers        81774                                   Manufacturing                Engineer
The program should store this data in the three objects and then display the data for each employee on the screen.
Part 2
Retail Item Class Write a class named RetailItem that holds data about an item in a retail store. The class should store the following data in attributes: item description, units in inventory, and price.
Once you have written the class, write a program that creates three RetailItem objects and stores the following data in them:
Description                        Units in Inventory                           Price
Item #1              Jacket                                 12                                                      59.95
Item #2                  Designer Jeans                40                                                34.95
Item #3             Shirt                                      20                                                      24.95
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll