-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForGit.py
More file actions
38 lines (29 loc) · 1.58 KB
/
ForGit.py
File metadata and controls
38 lines (29 loc) · 1.58 KB
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
#Don't change anything to this unless you finally learn how to do loops
print ("Time to enter all the fun information: " + "\n")
target.write("How large of email pst was analyzed? \n")
x1 = raw_input("How big was the email dump?: ")
target.write(x1 + "\n")
target.write("How many devices were imaged? \n")
x2 = raw_input("How many devices were imaged?: ")
target.write(x2 + "\n")
target.write("How many hours did you spend analyzing? \n")
analysis_hours = raw_input("How many hours did you spend analyzing?: ")
target.write(analysis_hours + "\n")
target.write("How many mobile apps were analyzed? \n")
x4 = raw_input("how many mobile apps were analyzed?: ")
target.write(x4 + "\n")
target.write("How many hours were spent consulting? \n")
consulting_hours = raw_input("How many hours were spent consulting: ")
target.write(consulting_hours + "\n")
target.write("How large were the reports in GB? \n")
x6 = raw_input("How large were the reports in GB?: ")
target.write(x6 + "\n")
#This is where the magic happens
def vendor_costs(consulting_hours, analysis_hours, consulting_rate, analysis_rate):
return (consulting_hours*consulting_rate) + (analysis_hours*analysis_rate)
companies = {'CompanyA': {'consulting_rate': 400, 'analysis_rate': 300},
'CompanyB': {'consulting_rate': 295, 'analysis_rate': 295},
'CompanyC': {'consulting_rate': 190, 'analyis_rate': 295}}
for company, information in companies.items():
estimated_cost = vendor_costs(consulting_hours, analysis_hours, information['consulting_rate'], information['analysis_rate'])
print 'Estimated Cost for {} is {}'.format(company,estimated_cost)