Question: Draw a flowchart for the following code in Digram form. It should be done on Microsoft Visio or any other application correct answer will be

Draw a flowchart for the following code in Digram form. It should be done on Microsoft Visio or any other application correct answer will be highly appreciated

# Ask the user to select a ticket type ticket_type = int(input)"Select ticket type (1-6): .)) # Compute the net amount paid by the customer based on the ticket type and booking type if ticket_type

booking_type (input ("Enter booking type (online or window"): print("1. Regular ticket for children (2 to 12 years old) - 50 AED per person") print("2. Regular ticket for adults (above 12 years old) - 100 AED per person") print ("2. Regular ticket for adults (above 12 years old) - 100 AED per person") print("3. VIP ticket for children (2 to 12 years old) - 150 AED per person") print("4. VIP ticket for adults (above 12 years old) - 300 AED per person") print("5. Annual child pass ticket type for children (2 to 12 years old) - 400 AED per person") print("6. Annual adult pass ticket type for adults (above 12 years old) - 600 AED per person")

ticket_type = int(input"Select ticket type (1-6): ") if ticket_type 1: price = 50 elif ticket_type 2: price = 100 elif ticket_type 3: price 150 elif ticket_type 4: price = 300 elif ticket_type == 5: price 400 elif ticket_type == 6: price 600 else: printr("Invalid ticket type") price = 0 if booking type == "online": discount = 0.1 else: discount 0 net_amount = price * discount

print("the net amout to be paid by customer is,net_amount,"AED")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!