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 Respostas
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