Question: Write a program Using C# Saudi Airlines permit each passenger to hold one bag. The maximum weight allowed for the bag depends on the class

Write a program Using C#

Saudi Airlines permit each passenger to hold one bag. The maximum weight

Saudi Airlines permit each passenger to hold one bag. The maximum weight allowed for the bag depends on the class of the passenger which is: o 30 Kg for First class 'F'. o 25 Kg for Business 'B'. o 20 Kg for Economy 'E'. If the weight of the bag excesses the allowed one, the passenger should pay 10 SR for each Kg. Write a program that calculates the excess baggage charge for the passenger. All input data should be read by the user. Solve the problem using the switch statement.

Step by Step Solution

3.41 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

source code using System namespace BagWeightCalc class ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!