Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Python Programming: 2 (15 points) Define a class FrequentFlyer in FrequentFlyer.py (11 pts) that has the following . Two data fields: flyerName(String), milesBalance (integer)

Using Python Programming:
image text in transcribed
2 (15 points) Define a class FrequentFlyer in FrequentFlyer.py (11 pts) that has the following . Two data fields: flyerName(String), milesBalance (integer) .A constructor that creates a flyer with the specified name and miles flown. . Standard methods: getName, setName, getMiles, setMiles .Additional methods: getstatus method to determine the membership status based on the miles balance, 10000 miles: bronze status 10000 to 19999: silver status >-20000: gold status Write a test program TestFlyer.py (4 pts) that Create a flyer object. Flyer name is Jane Smith with 17025 miles. Print the flyer information including name, miles balance and status . Ask user for miles for the current trip. Update the flyer's miles balance. . . .Print out the updated flyer information Sample Output: Flyer: Jane Smith Enter miles for this trip: 3050 Miles Balance: 17025 Status: Silver Updated information Flyer: Jane Smith Miles Balance: 20075 Status: Gold

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions