-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathh.12
More file actions
30 lines (21 loc) · 845 Bytes
/
Copy pathh.12
File metadata and controls
30 lines (21 loc) · 845 Bytes
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
Dept = [0,0,0,0,0,0,0,0,0]
DeptNum = [0,1,2,3,4,5,6,7,]
DeptName = [" ", "Personnel", "Marketing", "Manufacturing", "Computer Services", "Sales", "Accounting", "Shipping"]
Cont = "Y"
HourlyPay = 0.00
HoursWorked = 0.00
TotalP = 0.00
while Cont == "Y":
print(DeptName)
for DeptName in Dept:
Dept = input("Enter the Name of the department you would like to add to")
HourlyPay = float(input("Enter the Hourly pay"))
HoursWorked = int(input("Enter the Number of Hours Worked"))
TotalP = HourlyPay * HoursWorked
Cont = input("Continue [Y/N]")
if Cont == "N":
break
for Dept in DeptName:
print(DeptName, TotalP)
print("You chose: ", DeptName)
print("Department Numbers are: ",DeptNum)