USING PYTHON LANGUAGE When prompting the user you must always include text which lets the user know what should be inputted. Write a program that creates a class named Person with three instance...


USING PYTHON LANGUAGE<br>When prompting the user you must always include text which lets the user know what should be inputted.<br>Write a program that creates a class named Person with three instance attributes: name, address, and<br>cell_number as strings.<br>Next, create a class named Customer (subclass) that inherits from the Person class.<br>The Customer class should have two additional instance attributes: customer_number as a string.<br>on_mailing_list as a boolean.<br>Each class should include _init_) and _str-0 methods. The Customer class-_init__) and _str_-)<br>methods must make a call to super) to access the Person's methods.<br>After the Customer code, prompt the user to enter a name, address and cell_number for a person.<br>Instantiate a Person object by passing in the user's input as the arguments and print out the Person's<br>attributes by calling the -str-0 method.<br>Next, prompt the user to enter a name, address, cellnumber, customer_number and on_mailing_list for a<br>customer.<br>Instantiate a Customer object by passing in the user's input as the arguments and print out the Customer's<br>attributes by calling the --str-0 method.<br>Here is a sample run of the program:<br>Enter the person information:<br>Enter the name: Marla Owens<br>Enter the address: 111 10th Ave W<br>Enter the cell number: 701-225-5805<br>Person Information:<br>Name: Marla Owens<br>Address: 111 10th Ave W<br>Cell Number: 701-225-5805<br>Enter the Customer Information:<br>Enter the name: Pam Walker<br>Enter the address: 510 Custer St.<br>Enter the cell number: 701-225-9620<br>Enter the customer number: PW13579<br>Enter on mailing list (True or False): False<br>Customer Information:<br>Name: Pam Walker<br>Address: 510 Custer St.<br>Cell Number: 701-225-9620<br>Customer Number: PW13579<br>

Extracted text: USING PYTHON LANGUAGE When prompting the user you must always include text which lets the user know what should be inputted. Write a program that creates a class named Person with three instance attributes: name, address, and cell_number as strings. Next, create a class named Customer (subclass) that inherits from the Person class. The Customer class should have two additional instance attributes: customer_number as a string. on_mailing_list as a boolean. Each class should include _init_) and _str-0 methods. The Customer class-_init__) and _str_-) methods must make a call to super) to access the Person's methods. After the Customer code, prompt the user to enter a name, address and cell_number for a person. Instantiate a Person object by passing in the user's input as the arguments and print out the Person's attributes by calling the -str-0 method. Next, prompt the user to enter a name, address, cellnumber, customer_number and on_mailing_list for a customer. Instantiate a Customer object by passing in the user's input as the arguments and print out the Customer's attributes by calling the --str-0 method. Here is a sample run of the program: Enter the person information: Enter the name: Marla Owens Enter the address: 111 10th Ave W Enter the cell number: 701-225-5805 Person Information: Name: Marla Owens Address: 111 10th Ave W Cell Number: 701-225-5805 Enter the Customer Information: Enter the name: Pam Walker Enter the address: 510 Custer St. Enter the cell number: 701-225-9620 Enter the customer number: PW13579 Enter on mailing list (True or False): False Customer Information: Name: Pam Walker Address: 510 Custer St. Cell Number: 701-225-9620 Customer Number: PW13579
Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here