Question: It must have the following public instance variables: first _ name: string 1 4 : 3 4 Assignment details 2 0 2 3 2 4

It must have the following public instance variables:
first_name: string
14:34
Assignment details
202324-COMP517- Programming Fundamentals
first_name: string
last_name: string
dob: datetime.date object
country:string
exp_date:datetime.date object
It must have the following functions:
arguments: all data to populate the
object properties of this class:
first_name, last_name, dob,
country, and exp_date. The
dates should be given as strings in
ISO format and parsed to a
datetime.date object using the
datetime module.
returns: nothing 202324-COMP517- Programming FundamentalsThe Task
Passports are going digital. The UN has agreed, the new digital
passports will be python objects. You are tasked with
implementing the new passport class file. The special
subcommittee on passport specification has worked tirelessly
to design the following specification, which you must
implement exactly.
All passports must contain basic information (object
properties) like first name, last name, date of birth, country of
birth, and expiration date. As many passport objects as
required can be created from this one blueprint.
Furthermore, functions (object methods) need to be created to
check if any given one of these passports is still valid, to check
data for security reasons, and to summarize all data in a
human-readable format.
Like a physical passport, digital passports can be stamped on
entry to a country, so the passport will retain a record of all
countries visited. Digital passports don't have exit stamps
(stamps are only made on entry). The number of overseas visits
will be closely monitored using the sum of squared visit counts;
the score is higher for repeat visits to the same country over
new destinations.
For this assignment, you will create the Passport class in a
file named passport, py.
It must have the following public instance

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!