Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write Python code to implement the given management system. The program should be of Insurance management system (cars and properties) and have the following: Deliverables

Write Python code to implement the given management system. The program should be of Insurance management system (cars and properties) and have the following:

Deliverables for this assignment are:

1. For the management system allocated to you, develop appropriate class inheritance. You need to have at least FIVE classes; two of them as children's classes.

2. Each class must have at least THREE private variables.

3. Each class must have at least TWO user-defined functions to add extra functionality to each class. Additionally, each class must have a constructor (__init__) and __str__ functions.

4. In your design you must incorporate overloading and overriding of methods as appropriate.

5. You must consider implementing "getters" and "setters" for instance variables and don't provide direct access to instance variables (as they are private).

6. Each setter functions must implement at least one filter to user entered data (of your choice). For example, setter function to a name must not have numbers as inputs. Another example, setter function to age must not have negative values or values more than 120.

7. You may have additional methods if required based on your analysis and design of the management system allocated.

8. Your management system should have a text-based menu to prompt the user to enter related data (such as name, age...). The entered date should be added to objects of classes.

9. Outside the classes, create one list for each class and whenever an object is created, this object to be added to its appropriate list.

10. In the text-based menu, there should be options to insert, search, display and delete an object from the appropriate list.

11. You must also consider exceptional handling. Submission instruction

a) A fully working Python application. A Python source file which runs without any error and fully tested.

b) A well structure Python source file with commented file header describing the author's name, student ID, a brief description of the code and any open-source copyright acknowledge if needed.

c) Your code must be appropriately commented in every section necessary.

d) Error checking wherever required.

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

Why are red blood cells Red in colour?

Answered: 1 week ago

Question

Define Consumerism.

Answered: 1 week ago

Question

Name the system that includes heart, blood vessels and blood?

Answered: 1 week ago