Car Pooling 1
Car Pooling 1
Car Pooling 1
You are a very active member of a Nature Club in your organization. In one of the meetings, it
was discussed to build a car pooling system to help cut down the pollution. Being very active and
tech savvy, you wish to contribute towards the development of system. One of the members
being an architect has understood the requirement and would be sharing you with smaller
requirements.
The users of the system are going to be general public who own cars. They are classified as
members in our system.
e. When the “member” object is printed, it should display the following details:
f. Two members are considered same if they have same email and contactNumber.
Implement the logic in the appropriate function. (Case – Insensitive)
The Input to your program would be details of two members, You need to display their
details as given in "e" and use the function to compare the two members and display if
the members are same or unique. Refer to Sample IO.
Hint:
The template code hints at which methods are to be implemented to complete the
requirement.
Member1 :
id:
1
first name:
Arun
last name:
Kumar
email:
[email protected]
contact number:
9878767655
license number:
TN38QW1232343
license start date:
12-12-2010
license expiry date:
13-12-2020
Member2 :
id:
2
first name:
Mohamed
last name:
Safiq
email:
[email protected]
contact number:
9667826601
license number:
TN33VA1238743
license start date:
01-05-2013
license expiry date:
01-04-2125
Member 1
Name: Arun , Kumar
Member contact details: 9878767655 , [email protected]
Member 2
Name: Mohamed , Safiq
Member contact details: 9667826601 , [email protected]
Member 1 and Member 2 are different
Member1 :
id:
1
first name:
Sam
last name:
Nath
email:
[email protected]
contact number:
9456738498
license number:
TN45AS123456
license start date:
12-12-2010
license expiry date:
13-12-2021
Member2 :
id:
2
first name:
Swamy
last name:
Nathan
email:
[email protected]
contact number:
9456738498
license number:
TN54DF321456
license start date:
01-05-2012
license expiry date:
01-05-2123
Member 1
Name: Sam , Nath
Member contact details: 9456738498 , [email protected]
Member 2
Name: Swamy , Nathan
Member contact details: 9456738498 , [email protected]
Member 1 is same as Member 2