Fletcher is making an online ticket buying system for a museum. His program needs to calculate the final cost of a ticket with extra options added, a planetarium show and an IMAX 3D movie. The initial code looks like this:

Respuesta :

fichoh

The final ticket cost obtained by taking the sum of ticket price and the extra options can be obtained thus ;

  • finalCost = ticket + imax3D + starShow

Using Python 3 :

ticket = int(input("Enter ticket cost :"))

#takes input for ticket cost

imax_cost = int(input("Enter imax3D cost :"))

#takes cost of imax3D

starshow_cost = int(input("Enter cost of starShow :"))

#takes input for cost of starShow

finalcost = ticket + imax_cost + starshow_cost

#takes the sum of the cost and assign to the finalcost variable

Learn more : https://brainly.com/question/25553386

ACCESS MORE
ACCESS MORE
ACCESS MORE
ACCESS MORE