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:

  1. Request a string from the user to be encoded.
  2. 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:

 

  1. Convert the string to include only uppercase letters
  2. 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.
  3. Non-alphabetic characters (e.g., $, _, spaces) should remain unchanged.

c. Output the Coded Message: 

  1. Display the encoded message based on the provided shift

 

Matlabsolutions.com provides guaranteed satisfaction with a commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been empanelled after extensive research and quality check.

Matlabsolutions.com provides undivided attention to each Matlab assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work done at the best price in industry.