Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this assessment, you will create an advanced Customer Management System using object - oriented programming principles and applying best practices and design patterns. The

In this assessment, you will create an advanced Customer Management System using object-oriented programming principles and applying best practices and design patterns. The system should meet the specifications outlined in the case study and demonstrate your proficiency in advanced concepts and techniques.
You will be provided with a case study which will require you to use your problem-solving skills and you will create an application via object-oriented programming and apply best practices and design patterns to an application. You will need to create a solution and develop the program using Python 3 language.
Case Study:
You have been hired as a lead software engineer to develop an advanced Customer Relationship Management (CRM) System for a multinational corporation. The system should provide comprehensive customer management functionalities and integrate with various external services. You need to design and implement classes for customer data management, incorporate advanced features, and ensure high performance and security.
Customer (class)
Properties: id (integer), name (string), email (string), phone_number (string), date
(string), and address (string)
Getters: getId(), getName(), getEmail(), getPhoneNumber(), getAddress()
Setters: setName(newName), setEmail(newEmail),
setPhoneNumber(newPhoneNumber), setAddress(newAddress)
Methods:
o A__repr__methodthatdisplaysdetailedinformationaboutthecustomer
o Acalculate_age()methodthatcalculatesthecustomersagebasedontheirdate
of birth (provided as a parameter)
CustomerManager (class)
Properties: customers (list of Customer objects) Methods:
o addCustomer(customer: Customer) adds a customer to the customer list
o removeCustomer(customer: Customer) removes a customer from the customers
list
o getCustomersByAgeRange(min_age: int, max_age: int) returns a list of
customers within the specified age range
o getCustomersByAddress(address: str) returns a list of customers with a
matching address
o exportData(filename: str) exports customer data to a CSV file (optionally you may
use JSON file structure)
Note: You are required to implement appropriate exception handling techniques to handle potential errors, such as invalid data inputs or file handling issues. Ensure that meaningful error messages are displayed to the user when exceptions occur. Develop comprehensive unit tests using a suitable testing framework to verify the functionalities of the Customer and CustomerManager classes. Ensure that the tests cover various scenarios and edge cases.
LO1
Create unit tests and a test-driven development environment.
LO2
Use exception handling and debugging to identify and manage runtime errors.
LO3
Create an application via object-oriented programming.
LO4
Develop an application using best practices and design patterns.Implement the Python classes and methods based on the provided requirements.
5. Utilise appropriate inheritance and class properties.
6. Apply basic principles of object-oriented programming, including encapsulation and inheritance.
7. Follow the PEP 8 coding conventions and use meaningful names for variables and functions.
8. Includecommentstoexplainthefunctionalityandanyassumptionsmade.
9. Develop comprehensive unit tests using an appropriate testing framework to validate the
functionalities.
10.Apply robust exception handling techniques to handle potential errors.Aim to demonstrate advanced proficiency in object-oriented programming, software design, and exception handling. Consider code correctness, performance, and adherence to best practices in your implementation. Please provide the testing and the print commands for the the output that I should get.

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

MySQL/PHP Database Applications

Authors: Brad Bulger, Jay Greenspan, David Wall

2nd Edition

0764549634, 9780764549632

More Books

Students also viewed these Databases questions

Question

1. Describe the types of power that effective leaders employ

Answered: 1 week ago