Answered step by step
Verified Expert Solution
Question
1 Approved Answer
class Prescription: public MedicineAttributes:int FDANumber Date ApprovalDate Methods:Constructor ( s ) to initialize medication attributes.Setters and gettersPrint to display information about medication ( need to
class Prescription: public MedicineAttributes:int FDANumber Date ApprovalDate Methods:Constructors to initialize medication attributes.Setters and gettersPrint to display information about medication need to call bases print first and then print local derived object attributes class OffTheShelf: public MedicineAttributesbool BOGOF;Date OfferEnds;Methods:Constructors to initialize medication attributes.Setters and gettersPrint to display information about medication need to call bases print first and then print local derived object attributes Medication ClassAttributes:Medication ID generated sequentiallyMedication NamedescriptionPriceQuantity in StockExpiry Date Of Type DatebarcodeMethods:Constructors to initialize medication attributes.Setters and gettersDisplay information about medication. Date ClassAttributes:DayMonthYearMethods:Constructors to initialize date attributes.Setters and gettersDisplay date information in the format daymonthyear Customer ClassAttributes:Customer NameCustomer ID generated sequentialyPhone numberstring Address stringCustomer address of type AddressMethods:Constructors to initialize customer attributes.Setters and gettersDisplay customers information Address ClassAttributes: Email CityMobile NoStreet NameMethods:Constructors to initialize address attributes.Setters and gettersDisplay address information in proper way Pharmacy ClassAttributes: Pharmacy ID constant and generated sequentialy Pharmacy nameset of medications dynamic arrayset of Customers dynamic arrayMethods:Add a new medication to the inventory.resize array if neededRemove medications from the inventory resize array if neededAdd a new customer to the list. resize array if neededDisplay 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: You MUST use dynamic memory allocation in this phase. You must implement inheritance in this phase. User InterfaceCreate a simple textbased user interface that allows users to interact with the pharmacy management system. You should provide a menu with options for performing operations as follows: Define dynamic array of pharmacy based on user input. Add option if user need to resize array of pharmacy. Add medications for each pharmacys inventory. Add customers 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started