Question: Solve this in python 1 cabin 2 total weight =105 num_bags =2 *rou may modify the lines of code above, but don't move them! When
1 cabin 2 total weight =105 num_bags =2 *rou may modify the lines of code above, but don't move them! When you submit your code, we'11 change these lines to \#On check-in, re writing the code for an airport check-in kiosk. \#fees for their bags. To do so, it applies the following logic: - If the passenger is not in first class, then each bag costs - If the passenger is in first class, their first bag is free, but their second bag is $30. - If the average weight of the suitcases exceeds 50 pounds, there is a $40 per bag surcharge. This applies to all bags, regardless of cabin. \#For example, if a passenger in first class (cabin = "First") \#has two bags whose total weight is 105, then they would owe #$110 in bag fees: $0 for the first bag, $30 for the second bag \#and $40 for each bag for the average weight being over 50. \# Print the result according to the following format, replacing \#the number with the correct total: \# \#Your total baggage fee is: $110 \#Add your code here
Step by Step Solution
There are 3 Steps involved in it
To solve this problem you need to calculate the baggage fee based on the conditions provid... View full answer
Get step-by-step solutions from verified subject matter experts
