#Create a solution that accepts three integers input representing the number of times an employee travels to a jobsite in a month 
#Output the total distance traveled to two decimal places according to the miles each employee commutes to the jobsite: 

#Employee A: 15.62 miles 
#Employee B: 41.85 miles 
#Employee C: 32.67 miles 

# The solution output should be in the format: 
#distance_total_miles, traveled_miles 

#Sample Input/ Output: 
# If the input is: 3, 10, 5 

#then the expected output is 
#Distance: 628.71 miles 

# MY CODE 

#Get the input value of the number of trips from each employee 
trip_a = int(input("Enter the number of miles traveled for trip A : "))
trip_b = int(input("Enter the number of miles traveled for trip B : "))
trip_c = int(input("Enter the number of miles traveled for trip C : "))

#Get the total distances (miles) by employees in a month one way 
miles_a = 15.62 
miles_b = 41.85
miles_c = 32.67

#Get the total of miles traveled in a month one way
 total_miles = (trip_a * miles_a) + (trip_b * miles_b) + (trip_c * miles_c)
    return total 

#calculate the total distance 
total = total_distance(trip_a, trip_b , trip_c)

#Output the total distance traveled by employee in a month 
print(f" The total distance traveled by the employee in a month is: {total:.2f} miles.")

Embed on website

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