Personal Information Program Using Python Develop a program, in which you'll design a class that holds the following personal data: name address age phone number As part of the program, you'll then create appropriate accessor and mutator methods. Also, set up three instances of the class. One instance should hold your information, and the other two should hold your friends’ or family members’ information. NOTE: The input data do not need to be real data. Input Data: Set up a loop and enter the following input data: data for the following attributes of 3 instances of the Personal Information Class: name, address, age, and phone number NOTE 1: The input data do not need to be real data. NOTE 2: they need to be entered at the keyboard, when program is run. Processing: Develop the following: Personal Information Class A program that creates three instances of the above class Output Data: Set up a loop and display data within each object: name, address, age, and phone number
Personal Information
Using Python Develop a program, in which you'll design a class that holds the following personal data:
- name
- address
- age
- phone number
As part of the program, you'll then create appropriate accessor and mutator methods.
Also, set up three instances of the class. One instance should hold your information, and the other two should hold your friends’ or family members’ information. NOTE: The input data do not need to be real data.
Input Data:
Set up a loop and enter the following input data:
- data for the following attributes of 3 instances of the Personal Information Class:
- name, address, age, and phone number
NOTE 1: The input data do not need to be real data.
NOTE 2: they need to be entered at the keyboard, when program is run.
Processing: Develop the following:
- Personal Information Class
- A program that creates three instances of the above class
Output Data:
Set up a loop and display data within each object:
- name, address, age, and phone number
Trending now
This is a popular solution!
Step by step
Solved in 2 steps