MCPcopy Create free account
hub / github.com/geekcomputers/Python / calculateCharge

Method calculateCharge

Laundary System/code.py:36–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 print("Branded", a)
35
36 def calculateCharge(self):
37 a = 0
38 if self.Type_of_cloth == "Cotton":
39 a = 50.0
40 elif self.Type_of_cloth == "Silk":
41 a = 30.0
42 elif self.Type_of_cloth == "Woolen":
43 a = 90.0
44 elif self.Type_of_cloth == "Polyester":
45 a = 20.0
46 if self.Branded == 1:
47 a = 1.5 * (a)
48 else:
49 pass
50 if self.Season == "Winter":
51 a = 0.5 * a
52 else:
53 a = 2 * a
54 print(a)
55 return a
56
57 def finalDetails(self):
58 self.customerDetails()

Callers 1

finalDetailsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected