Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write the code with c++ with OOP method with comments explaining code Project Description In this project, you will create a simple pharmacy management system

write the code with c++ with OOP method with comments explaining code
Project Description
In this project, you will create a simple pharmacy management system in C++ that utilizes object-oriented programming principles. The pharmacy management system should allow for managing medications, customers, and sales transactions.
Project Requirements
1. Class Definitions
Modify the Medication and Customer classes you created in phase 1 and create new classis as needed based on the following:
Medication Class
Attributes:
Medication ID (generated sequentialy)
Medication Name description
Price
Quantity in Stock
Expiry Date (Of Type Date)
barcode
Methods:
Constructors) to initialize medication attributes.
Setters and getters
Display information about medication
Date Class
Attributes:
Day
Month
Year
Methods:
Constructor(s) to initialize date attributes.
Setter(s) and getter(s)
Display date information in the format "day/month/yea
Customer Class
Attributes:
Customer Name
Customer ID (generated sequentialy)
Phone number(string), Address (string)
Customer address (of type Address)
Methods:
Constructor(s) to initialize customer attributes.
Setters and getters
Display customer's information
Address Class
Attributes:
Email
City
Mobile No
Street Name
Methods:
Constructor(s) to initialize address attributes.
Setter(s) and getter(S)
Display address information in proper
Attributes:
Pharmacy ID (constant and generated sequentialy)
Pharmacy name
set of medications (max size 50)
set of Customers (max size 50)
Methods:
Add a new medication to the inventory.
Remove medications from the inventory
Add a new customer to the list.
Display a list of available medications.
Display a list of customers
Add any other functions you think is important to compare pharamcy objects together (such as number of medications, number of customers, total cash.
etc.)
Notes:
Don't use dynamic memory allocation in thisphase
User InterfaceCreate a simple text-based user interface that allows users to interact with the pharmacy management system. You should provide a menu with options for performing operations as follows:
* Add a new pharmacy (up to 10)
* Add medication(s) for each pharmacy's inventory
* Add customer(s) for each pharmacy
* Display list of medications (including all of their information) for a pharmacy
* Remove a medication from a pharmacy
* Display list of customers (including all of their information) for one pharmacy
* Test all functions you have defined in your classes
1. Object-Oriented PrinciplesApply object-oriented programming principles such as composition to your class designs.
2. Error HandlingImplement error handling to deal with invalid inputs or other potential issues in the program.
3. Documentation and CommentsProvide clear comments and documentation for your code, explaining the purpose of classes, functions, and any complex logic.
Project Submission
You should submit the following for evaluation:
The source code of your pharmacy management system written in C++.
A document explaining how the system works, and any challenges you faced during the development.
image text in transcribed
image text in transcribed
Rarmesclaw Astrithuter: Fhermacy neme sct of Cusiences imus sirs 80 . Metheds: Add a new modication io the investory: Remve madications froes the invensory Add a new customer to the lise. Display a fist of availeble matications. Display a litit of custemens - Add any other fanctions yus finat is importart io compare pharamcy objects ingether (iack as number of meticaticns. Notes: - Don't use dynamic memory allocation in this phase [ 2. User Interface Create a simple text-based user interface that allows users to interact with the pharmacy management system. You should provide a menu with options for performing operations as follows: - Add a new pharmacy (up to 10) - Add medication(s) for each pharmacy's inventory - Add customer(s) for each pharmacy - Display list of medications (including all of their information) for a pharmacy - Remove a medication from a pharmacy - Display list of customers (including all of their information) for one pharmacy - Test all functions you have defined in your classes 3. Object-Oriented Principles Apply object-oriented programming principles such as composition to your class designs. 4. Error Handling Implement error handling to deal with invalid inputs or other potential issues in the program. 5. Documentation and Comments Provide clear comments and documentation for your code, explaining the purpose of classes, functions, and any complex logic. Project Submission You should submit the following for evaluation: The source code of your pharmacy management system written in C+. A document explaining how the system works, and any challenges you faced during the development. Grading Your project will be graded based on the following criteria: 1. Adherence to object-oriented principles. 2. Functionality and correctness of the system

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

More Books

Students also viewed these Databases questions

Question

What types of people do you like to work with?

Answered: 1 week ago