Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Description: Create an object-oriented program that allows you to enter data for customers and employees in python Console: Customer/Employee Data Entry Customer or Employee? (c/e):

Description:

Create an object-oriented program that allows you to enter data for customers and employees in python

Console:

Customer/Employee Data Entry

Customer or Employee? (c/e): c

DATA ENTRY First Name: Frank Last Name: Wilson Email Address: frank44 Customer Number (10,000 - 99,999): 9000 Invalid Input. Please try again. Customer Number: 10293 Country: USA

CUSTOMER INFORMATION Wilson, Frank, frank44, N10293, USA

Continue? (y/n): y

Customer or Employee? (c/e): e

DATA ENTRY First Name: John Last Name: Atkins Email Address: john@convergentlaser.com Salary ($20,000 - $100,000): 18000 Invalid Input. Please try again. Salary ($20,000 - $100,000): 25000 Department: Production

EMPLOYEE INFORMATION Atkins, John, john@convergentlaser.com, $25000.00, Production

Continue? (y/n): n

Bye!

Specifications:

Create a Person class that provides private attributes for the first name, last name, and email address. This class should provide methods that set and return the persons first name, last name, and email address.

Create a Customer class that inherits the Person class. This class should add private attributes for the customer number and country. This class should also provide necessary set and get methods. The customer number should be between 10,000 and 99,999.

Create an Employee class that inherits the Person class. This class should add private attributes for the salary and department. This class should also provide necessary set and get methods. The salary should be between $20,000 and $100,000.

In the main function, the program should create a Customer or Employee object from the data entered by the user and it should use this object to display the data on the console.

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_2

Step: 3

blur-text-image_3

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

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions

Question

4-19. When you say weve doubled our profit level, you are (wrong).

Answered: 1 week ago

Question

4. Describe how cultural values influence communication.

Answered: 1 week ago

Question

LO5 Illustrate the steps in developing a base pay system.

Answered: 1 week ago

Question

LO3 Outline strategic compensation decisions.

Answered: 1 week ago