Python
Write a program that will calculate the cost of installing fiber optic cable at a cost of .87 per ft for a company.
Your program should display the company name and the total cost.
- Display a welcome message for your program.
- Get the company name from the user
- Get the number of feet of fiber optic to be installed from the user
- Multiply the total cost as the number of feet times .87.
Display the calculated information and company name.
If you have any doubts, please give me comment....
print("Welcome to calculate the cost of installing fiber optic cable program")
company = input("Enter company name: ")
feets = float(input("Enter number of feet of fiber optic to be installed: "))
total_cost = feets * 0.87
print("Company Name: "+company)
print("Total Cost: "+str(total_cost))
Get Answers For Free
Most questions answered within 1 hours.