Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a python code that do the following: 1. A new travel agency just opened up and they are selling tickets at discounted price. Create

Write a python code that do the following: image text in transcribed
1. A new travel agency just opened up and they are selling tickets at discounted price. Create a program to help the company calculate the total bill. The program asks the user to enter the country and the number of tickets. The bill is calculated based on the rules below. The company sells only tickets to these countries to start with Country Abbreviation Ind or ind Nep or nep Pak or pak Price per ticket 800 AED 900 AED 1200 AED India Nepal Jeddah In addition, the ticket prices, the company is giving discounts for anyone that buys extra tickets. The discount Jed or Jed 1600 AED is calculated based on the following table. Number of tickets More than 10 Between 7 and 10 Between 3 and 7 Two tickets Discount percentage 25 % 20% 15% 5% 0% Less than 2 After calculating the ticket cost, the program calculates the discount and shows the final bill after applying the discount

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications 27th International Conference Dasfaa 2022 Virtual Event April 11 14 2022 Proceedings Part 2 Lncs 13246

Authors: Arnab Bhattacharya ,Janice Lee Mong Li ,Divyakant Agrawal ,P. Krishna Reddy ,Mukesh Mohania ,Anirban Mondal ,Vikram Goyal ,Rage Uday Kiran

1st Edition

3031001257, 978-3031001253

More Books

Students also viewed these Databases questions

Question

What can you do this week to sharpen your crosscultural skills?

Answered: 1 week ago

Question

Discuss the key people management challenges that Dorian faced.

Answered: 1 week ago

Question

How fast should bidder managers move into the target?

Answered: 1 week ago