Question: c++ programming problem Frequent Flyer Miles Calculator Write a C++ program that calculates how many frequent flyer miles are needes for a free ticket on

c++ programming problem

c++ programming problem Frequent Flyer Miles Calculator Write a C++ program thatcalculates how many frequent flyer miles are needes for a free ticket

Frequent Flyer Miles Calculator Write a C++ program that calculates how many frequent flyer miles are needes for a free ticket on a new startup airline. Frequent flyer miles are charged for a free ticket depending on the class of service (more for first class, less for coach), depending on the day flying (more if flying on Friday, Saturday or Monday, less for other days of the week), depending on the distance traveled, and a surcharge if flying to Canada, Mexico or the Carribean. Tickets start with a cost of 10,000 frequent flyer miles. Then, you should calculate the distance charge which is 1,000 frequent flyer miles for each 250 miles flown. Then, you should charge an additional 40% charge of frequent flyer miles if the passenger wants to fly first class. If flying on a Friday, Saturday or Monday, the ticket will cost an additional 5,000 frequent flyer miles. Travel to Canada, Mexico or the Carribean needs to cost an additional 7500 frequent flyer miles. Be sure your program does not allow for negative miles flown or incorrect answers to the yeso questions asked. The sample program dialogs below should help you to see how to perform this calculation. YOU NEED TO DECLARE AND USE A const DECLARATION FOR SOME CERTAIN VALUES IN YOUR PROGRAM

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!