Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(c) A&G Travel and Tours offers special promotion flight fare from Kuala Lumpur to Kota Bharu on February 2015. Passengers under 12 years old will

image text in transcribed

(c) A&G Travel and Tours offers special promotion flight fare from Kuala Lumpur to Kota Bharu on February 2015. Passengers under 12 years old will be subjected to Children rates. The special rates is shown in Table 4. Table 4: Special rates from Kuala Lumpur to Kota Bharu r e Airlines Airlines Rates C Code Adult Children 1 Air Asia RM 100 RM 20 2 Malaysia Airlines RM 210 RM 50 a 3 Malindo Air RM 90 RM 10 t e a C program to calculate the total amount of ight fares according to Table 4. Use loops to ask if customer wants to add more booking. The output of the program should be as follows: Program to calculate Flight Fares Enter Airlines Code : 1 Enter Category (A- Adult, C - Children) : A Enter number of persons : 2 Enter more? (Y- yes, N- No) : Y Enter Airlines Code : 1 Enter Category (A- Adult, C - Children) : C Enter number of persons : 1 Enter more? (Y- yes, N- No) : N Total Amount : RM 220.00

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

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago