-
Notifications
You must be signed in to change notification settings - Fork 0
/
car-wash.py
81 lines (74 loc) · 1.56 KB
/
car-wash.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
69
70
71
72
73
74
75
76
77
78
79
80
81
carType = 0
washCost = 0.00
Wax = "Selected"
waxCost = 0
Shine = "Selected"
shineCost = 0
Rust = "Selected"
rustCost = 0
unselect = "Not Selected"
cartype = input("Select Vehicle Type (Car, Pickup, or Minivan): ")
if cartype == "Car":
carType = 1
washCost = 6.00
waxCost = 1
shineCost = 2
rustCost = 3
elif cartype == "Pickup":
carType = 2
washCost = 9.00
waxCost = 2
shineCost = 4
rustCost = 3
elif cartype == "Minivan":
carType = 3
washCost = 8.00
waxCost = 2
shineCost = 3
rustCost = 3
else:
print("Error")
carType = 0
if carType != 0:
wax = input("Do you want a wax (Y/N)? ")
else:
print("Invalid Entry")
if wax == "Y":
waxCost = waxCost
elif wax == "N":
waxCost = 0
Wax = unselect
else:
print("Invalid Entry")
if carType != 0:
shine = input("Do you want a Wheel Shine (Y/N)? ")
else:
print("Invalid Entry")
if shine == "Y":
shineCost = shineCost
elif shine == "N":
shineCost = 0
Shine = unselect
else:
print("Invalid Entry")
if carType != 0:
rust = input("Do you want a Rust Inhibitor (Y/N)? ")
else:
print("Invalid Entry")
if rust == "Y":
rustCost = rustCost
elif rust == "N":
rustCost = 0
Rust = unselect
else:
print("Invalid Entry")
print("")
print("_" * 35)
print("Vehicle Type: \t\t" + cartype)
print("Basic Wash: \t\t" + "$", washCost)
print("Wax: \t\t\t" + Wax)
print("Wheel Shine: \t\t" + Shine)
print("Rust Inhibitor: \t" + Rust)
print("_" * 35)
total = washCost + waxCost + shineCost + rustCost
print("Total Cost: \t\t" + "$", total)