Question: Write a Python Program Write a class called Customer that has the following private attributes for the following data: CustomerNumber, FirstName, LastName City, Eircode,

Write a Python Program Write a class called Customer that has the

 following private attributes for the following data: CustomerNumber, FirstName, LastName City, Eircode,

Write a Python Program Write a class called Customer that has the following private attributes for the following data: CustomerNumber, FirstName, LastName City, Eircode, PhoneNumber. The Customer class's__init___ method should accept an argument for each attribute. The Customer class should also have accessor and mutator methods for each attribute. Next write a class called Orders that represents an order of a customer. The order should have private attributes for the following data: OrderNumber Dateof order Productnameoftheorder Quantityordered Totalprice The order class's__init__method should accept an argument for each attribute. The order class should also have accessor and mutator methods for each attribute. Next write a program that creates an instance of the Customer class, initiliazed with sample data (use any customer data). Then, create 3 instances of the order class initializing with the following data: Order number: 1 Date of order: 12/2/2023 Product Name: Piano Quantity: 1 Charge: 3200 Order number: 2 Date of order: 1/1/2021 Product Name: Covid Test Kit Quantity: 1000 Charge: 333 Order number: 3 Date of order: 1/1/2020 Product Name: Books Quantity: 10 Charge: 500 4T he program should display the Customer's information, information about all 3 of the orders, and the total charges of the 3 orders.

Step by Step Solution

3.43 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Python code class Customer def initself customernumber firstname lastname city eircode phonenumber selfcustomernumber customernumber selffirstname fir... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!