#Employee A: 15.62 miles
#Employee B: 41.85 miles
#Employee C: 32.67 miles
#solution accepts three integer inputs representing the number of times an employee travels to the job site
#solution outputs "Distance: " followed by the total value to two decimal places

#accept three integer inputs
print("Enter the number of days Employee A travels to job:")
Employee_a = int(input())
print("Enter the number of days Employee B travels to job:")
Employee_b = int(input())
print("Enter the number of days Employee C travels to job:")
Employee_c = int(input())

# mileage from each employee 
mileage_a = 15.62 
mileage_b = 41.85 
mileage_c = 32.67 
#calculate total distance
total_distance = (Employee_a * mileage_a) + (Employee_b * mileage_b) + (Employee_c * mileage_c)

#output combined mileage
print(f"Distance: {total_distance:.2f} miles")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: