Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Solve this in python
image text in transcribed
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

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

What is a bank run?

Answered: 1 week ago