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:
firstname: string
:
Assignment details
COMP Programming Fundamentals
firstname: string
lastname: string
dob: datetime.date object
country:string
expdate:datetime.date object
It must have the following functions:
arguments: all data to populate the
object properties of this class:
firstname, lastname, dob,
country, and expdate. The
dates should be given as strings in
ISO format and parsed to a
datetime.date object using the
datetime module.
returns: nothing COMP 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
humanreadable 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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
