Question: Airlines Miles Create a flowchart and pseudocode for a program that will calculate the miles to be credited to a customers airline mileage program. The
Airlines Miles
Create a flowchart and pseudocode for a program that will calculate the miles to be credited to a customers airline mileage program. The miles given are based on destination (domestic or international) and the ticket price. The miles are applied as follows: For domestic flights the customer gets credited a number miles equal to the ticket price. If the price is greater than $500, the customer gets an additional 20% bonus miles. For international flights, the customer also gets credited a number miles equal to the ticket price. If the price is greater than $1000, the customer gets an additional 30% bonus miles. The output should display the type of destination (domestic or international), the ticket price and the numbers of miles credited.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
