Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a python code that creates objects and classes with their member functions for Vistaflyer, an Australian airlines loyalty program. You are asked to write
Write a python code that creates objects and classes with their member functions for Vistaflyer, an Australian airlines loyalty program. You are asked
to write an inheritance hierarchy discount system that benefits Vistaflyer members program to calculate their profit. A brief about Vistaflyer is that it
is useful for those who fly on Australian Airlines its partners like Virgin Singapore and Air New Zealand frequently. Vistaflyer miles can be earned
through credit cards, flying and bonus miles promotions. The miles can be redeemed for award flights in all categories. It has three types of
memberships namely Basic, Elite Silver and Elite Gold. When registered for the first time, all the customers get instant access to the basic
membership level of Vistaflyer.
In Australia airlines offers a flat and discount to its Basic, Elite silver and Elite Gold members respectively for all services
provided. Customers without membership receive no discounts.
The students must implement basic OOPs concepts such as Inheritance, Polymorphism and Encapsulation. You can make your own assumptions, not
necessarily the same values which are provided above.
You need to do the following tasks:
Write the python classes with suggested data members and functions.
Write the base and derived classes for implementing inheritance in the program.
Implement polymorphism and encapsulation to check for accessibility of data members and different form of the data member.
Write the main logic that takes input from the user members with their bookings.
Write the code to display the output.
Advanced topic: Create a windows form, by considering the same scenario, where you need to create a layout which will describe the
Welcome Page with some submit buttons and a few different controls. You are free to use any basic controls from the toolbox to design this
layout.
Code related guidelines: Your python consolebased application should include the following:
The code should have a consistent, professional, and wellorganized appearance.
Choose meaningful identifiers names.
The developed system takes inputs and handles the error in a friendly manner.
Your code must adhere to OOPS concepts with implementation guidelines including modularity, reusability, extensibility, maintainability,
and adaptability.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started