0

Simple challenge👼

Simple challenge for beginner 👼... Airlines permit each passenger to hold one bag. The maximum weight allowed for the bag depends on the class of the passenger which is: 30 Kg for First class ('F'), 25 Kg for Business ('B') and 20 Kg for Economy ('E'). If the weight of the bag excesses the allowed one, the passenger should pay 10 $ for each Kg. Write a program that calculates the excess baggage charge for the passenger. All input data should be read by the user. 👵

20th Nov 2017, 10:37 PM
While (Everything!=∞)
While (Everything!=∞) - avatar
6 odpowiedzi
21st Nov 2017, 5:13 AM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
+ 8
what did u mean about switch?
21st Nov 2017, 11:35 AM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
+ 2
nice challenge but you ain't specific,what are we calculating?
20th Nov 2017, 11:06 PM
᠌᠌Code X
᠌᠌Code X - avatar
+ 1
a switch method
21st Nov 2017, 4:04 PM
While (Everything!=∞)
While (Everything!=∞) - avatar
0
calculate tha excess baggage charge ☺
20th Nov 2017, 11:17 PM
While (Everything!=∞)
While (Everything!=∞) - avatar
0
ok that's cool ☺💖.. ummmm.... if u use a switch I tkink u will do great..try that 👵
21st Nov 2017, 6:06 AM
While (Everything!=∞)
While (Everything!=∞) - avatar