Requirements (remember to identify the requirements by number):
• It is recommended to use PyCharm Pro to create this program and all subsequent python programs.
• Name the source file program_4.py.
• Format code like the examples in the course material.
• Include comments in your code like the examples in the course material.
• Output a header in the console: “This is Program 4 - <yournamehere”
Requirements to be numbered in program_4.py:
1. Print “This program provides airline seat assignments.” 2. Ask the user to enter the following data about themselves:
• First Name
• Last Name
• Priority Status
i. Platinum
ii. Gold
iii. Newbie
• Seat Preference
i. First Class
ii. Business
iii. Coach
• Ticket Budget (amount they are willing to spend)
i. Colossal
ii. Big Bucks
iii. Peanuts
3. Message the following based on criteria (include First and Last Name in messages to user):
• if Platinum and Colossal:
i. “You qualify for First Class and they are exceptional seats!”
• if Platinum and Big Bucks
i. “You have Business and they are ok seats. We suggest you spend more money to get better seats.”
• if Platinum and Peanuts
i. “Really? You are in Coach and will be sorry.”
• if Gold and Colossal:
i. “You qualify for First Class. Did you get a promotion?”
• if Gold and Big Bucks
i. “You have Business, as usual. You know we do recommend
First Class ”
• if Gold and Peanuts
i. “Really? You can do better don’t you think?”
• if Newbie and Colossal:
i. “We are running your credit card again to ensure there are no mistakes. Looks like you may get First Class. Please behave.”
• if Newbie and Big Bucks
i. “Hmmm… Our fashion consultant will ensure you are professionally dressed. If so, it is Business for you.”
• if Newbie and Peanuts
i. “We apologize in advance for the crying baby next to you. Please limit peanut request to one 1 oz. bag.”
4. After the flight, the user completes a survey with the following three questions. Ask the user to input a score 1 – 5 (1 = dissatisfied; 5 = outstanding).
• Did you have a good flight?
• Was the food fantastic?
• How was the movie selection?
5. Message to the user based on the following:
• if Platinum and (total score less than 12 or any score less than 4):
i. “Your survey score of <score was lower than we would like. Please give us another opportunity soon.”
• if Gold and (total score less than 11 or any score less than 3):
i. “Your survey score of <score was lower than we would like.
The next time you fly you receive a complementary soft drink.
• if Newbie and (total score less than 10 or any score less than 2):
i. “Your survey score of <score was lower than we would like. You will have more fun next time.”
6. Print a statement explaining your experiences with Program 4.
TEST – TEST – TEST your application to ensure the specific program requirements are met.
• Use the list above and the common requirements as a confirmation checklist.