-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.py
68 lines (52 loc) · 1.77 KB
/
package.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#Katherine Caudill
#Student #: 005252042
#WGU: Data Structures and Algorithms II - C950
# class Package is a class that represents a package. It has a constructor that takes in the following parameters:
# package_id: the package's ID number (int)
# address: the package's address (str)
# city: the package's city (str)
# state: the package's state (str)
# zip: the package's zip code (str)
# deadline: the package's deadline (str)
# weight: the package's weight (str)
# status: the package's delivery status (str)
# notes: the package's notes (str)
class Package:
def __init__(self, package_id, address, city, state, zip, deadline, weight, status, notes):
self.package_id = int(package_id)
self.address = address
self.city = city
self.state = state
self.zip = zip
self.deadline = deadline
self.weight = weight
self.delivery_status = status
self.notes = notes
def get_package_id(self):
return self.package_id
def get_address(self):
return self.address
def get_city(self):
return self.city
def get_state(self):
return self.state
def get_zip(self):
return self.zip
def get_deadline(self):
return self.deadline
def get_weight(self):
return self.weight
def get_delivery_status(self):
return self.delivery_status
def get_notes(self):
return self.notes
def set_delivery_status(self, status):
self.delivery_status = status
def set_address(self, address):
self.address = address
def set_city(self, set_city):
set_city
def set_zip(self, zip):
self.zip = zip
def set_deadline(self, deadline):
self.deadline = deadline