Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project DescriptionIn this project, you will create a simple pharmacy management system in C + + that utilizes object - oriented programming principles. The pharmacy

Project DescriptionIn 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 Requirements1. Class DefinitionsModify the Medication and Customer classes you created in phase 1 and create new classis as needed based on the following:Medication ClassAttributes:Medication ID ( generated sequentialy)Medication NamedescriptionPriceQuantity in StockExpiry Date (Of Type Date)barcodeMethods:Constructor(s) to initialize medication attributes.Setters and gettersDisplay information about medication. Date ClassAttributes:DayMonthYearMethods:Constructor(s) to initialize date attributes.Setter(s) and getter(s)Display date information in the format day/month/year Customer ClassAttributes:Customer NameCustomer ID (generated sequentialy)Phone number(string), Address (string)Customer address (of type Address)Methods:Constructor(s) to initialize customer attributes.Setters and gettersDisplay customers information Address ClassAttributes: Email CityMobile NoStreet NameMethods:Constructor(s) to initialize address attributes.Setter(s) and getter(s)Display address information in proper way Pharmacy ClassAttributes: Pharmacy ID (constant and generated sequentialy) Pharmacy nameset of medications (max size 50)set of Customers (max size 50)Methods:Add a new medication to the inventory.Remove medications from the inventoryAdd 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 cashetc.) Notes: Dont use dynamic memory allocation in this phase 2. 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 pharmacys 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

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

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions

Question

Structures cannot be nested. Question 1 2 options: True False

Answered: 1 week ago