Question
Airline companies apply baggage restrictions for their passengers. Hand luggage of an airline's passengers is 10 kg and It also decided to apply a 20
Airline companies apply baggage restrictions for their passengers. Hand luggage of an airline's passengers is 10 kg and It also decided to apply a 20 kg limit for its luggage. Passengers when arriving, they enter hand and normal luggage weight from the keyboard. If passengers exceed their hand baggage allowance, 10 TL per kg is normal. If they exceed their baggage allowance, they pay 12 TL per kg. This according to the baggage values entered by the arriving passenger calculates the airline's baggage price and calculates this for each passenger Write the program that continues without closing the program. Note: Hand and payment if normal baggage allowance is reduced below the maximum value The amount will be considered 0, not negative. A sample printout on the right given. C PROGRAMMNG LANGUAGE WRTE THS CODE
El bagaj kilonuzu giriniz=Enter your hand luggage weight
JUST C PROGRAMMNG LANGUAGE
***** 2. Havayolu irketleri yolcular iin bagaj snrlamas uygulamaktadr. El bagaj kilonuzu giriniz: 10 Bir havayolu irketi yolcularnn el bagajlar 10 kg ve normal Normal bagaj kilonuzu giriniz: 20 bagaar iin de 20 kg snrlama uygulama karar almtr. Yolcular kg fazlaligi odemesi: @ TL geldiinde el ve normal bagaj kilolarn klavyeden girmektedirler. El bagaj kilonuzu giriniz: 11 Eer yolcular el bagaj haklarn geerlerse kg bana 10 TL normal Normal bagaj kilonuzu giriniz: 21 bagaj haklarn geerlerse kg bana 12 TL demektedirler. Buna kg fazlaligi odemesi: 22 TL gre gelen yolcunun girdii bagaj deerlerine gre gidecei havayolunun bagaj fiyatn hesaplayan ve bunu her yolcu iin Ei bagaj kilonuzu giriniz: program kapatmadan srdren program yaznz. Not: El ve normal bagaj haklar maksimum deerin altnda gerilirse deme tutar negatif deil O kabul edilecektir. rnek bir kt sada verilmitirStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started