Part II: Write a code based on the description
Grading ?The assignment is graded out of 60?
1. Develop a program to determine baggage charges for passengers in the ordinary cabin of an airline, adhering to the following guidelines:
a. The standard rate for the flight ticket is $120.0. Passengers are allowed to check
in up to 20.0 kilograms of luggage for free.
b. For weight exceeding 20.0 kilograms, a fee of 1.5% of the airline's standard rate
is charged per kilogram.
c. Calculate the baggage charges based on the given user input and determine the
total charges for the user by considering the flight ticket cost and baggage
charges.
2. Write a program to generate the letter grade based on the input.
a. Prompt for a real value score between 0.0 and 1.0.
b. If the score is out of range, print an error message.
c. If the score is between 0.0 and 1.0, print a grade using the following table:
| Score | Grade |
| >=0.9 | A |
| >=0.8 | B |
| >=0.7 | C |
| >=0.6 | D |
| <0.6 | F |
3. Implement a program that translates the user input string into a coded message.
a. Prompt the User for Input:
- Request a string from the user to be encoded.
- Ask the user for an integer value to define the character shift for encoding. No error checking is needed; assume that the user will enter a value between 1 to 5 inclusive.
b. Process the Input:
- Convert the string to include only uppercase letters
- Apply a Caesar cipher where each letter in the string is shifted to the right by the user-defined number of positions in the alphabet. For instance, if the shift is 2, A becomes C, and Z wraps around to B.
- Non-alphabetic characters (e.g., $, _, spaces) should remain unchanged.
c. Output the Coded Message:
- Display the encoded message based on the provided shift