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. 👵
6 Answers
+ 12
[One liner Function]
https://code.sololearn.com/c4WAoefAHsg8/?ref=app
+ 8
what did u mean about switch?
+ 2
nice challenge but you ain't specific,what are we calculating?
+ 1
a switch method
0
calculate tha excess baggage charge ☺
0
ok that's cool ☺💖.. ummmm.... if u use a switch I tkink u will do great..try that 👵