Answered step by step
Verified Expert Solution
Link Copied!

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 2020, Australia airlines offers a flat 10%,20% and 30% 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:
1. Write the python classes with suggested data members and functions.
2. Write the base and derived classes for implementing inheritance in the program.
3. Implement polymorphism and encapsulation to check for accessibility of data members and different form of the data member.
4. Write the main logic that takes input from the user members with their bookings.
5. Write the code to display the output.
6. 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 console-based application should include the following:
1. The code should have a consistent, professional, and well-organized appearance.
2. Choose meaningful identifiers names.
3. The developed system takes inputs and handles the error in a friendly manner.
4. 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

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_2

Step: 3

blur-text-image_3

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

Building The Data Warehouse

Authors: W. H. Inmon

4th Edition

0764599445, 978-0764599446

More Books

Students also viewed these Databases questions