Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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 verilmitir

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

Learning PostgreSQL

Authors: Salahaldin Juba, Achim Vannahme, Andrey Volkov

1st Edition

178398919X, 9781783989195

More Books

Students also viewed these Databases questions

Question

Define organisational structure

Answered: 1 week ago

Question

Define line and staff authority

Answered: 1 week ago

Question

Define the process of communication

Answered: 1 week ago

Question

Explain the importance of effective communication

Answered: 1 week ago

Question

* What is the importance of soil testing in civil engineering?

Answered: 1 week ago

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago