Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Needs to be in basic pseudocode. 4) Plan the logic for an airport services compa

ID: 3869040 • Letter: N

Question

Needs to be in basic pseudocode.

4) Plan the logic for an airport services company program to determine service fees. The program prompts the user for their name and the type of service needed—parking or shuttle. Depending on the service type, the main program gets additional information from the user and then calls one of the methods described below, to determine their fee, and then displays the user’s name, the service type and the fee. The methods are:

a) calculateParkingFee method

i) requires to be passed information (“Y” or “N”) that indicates whether the user is a member of the company’s frequent parker program, and the number of days of parking required

ii) if the user is a member, they receive a 10% discount on the regular parking fee of $12 per day

iii) the method returns the total parking fee

b) calculateShuttleFee method

i) requires to be passed the number of passengers and the total number of bags being brought by the passengers

ii) determines the shuttle fee as follows:

(1) a base fee of $29 per passenger

(2) the base fee includes one free bag per passenger; any additional bags are charged a fee of $2 each

iii) the method returns the total shuttle fee

Explanation / Answer

Main method:

Input name;

Input type_of_service;

if type_of_service=parking

input if_member;

input number_of_days;

fee=calculateParkingFee(if_member,number_of_days);

else if type_of_service=shuttle

input num_passengers;

input num_bags;

fee=calculateShuttleFee(num_passengers,num_bags);

else

print "Wrong input";

exit

end

print name+type_of_service+fee

calculateParkingFee method:
fee=12*number_of_days;

if(is_member==yes)

fee=fee-(fee*.1);

end

return fee;

calculateShuttleFee method:
fee=29*num_passenger;

if((num_bags-num_passengers)>0)

fee=fee+((num_bags-num_passengers)*2);

end

return fee;

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote