Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please help Write a small program according to the following description and requirements: Write a program that maintains a database of patients in a hospital.
please help
Write a small program according to the following description and requirements: Write a program that maintains a database of patients in a hospital. Each patient has the following properties: . Name . Phone Number . Blood Type Your program should contain a list (vector, array, etc.) that contains at least 3 instances of the class prepopulated with patient information. When the program is ran, it should print out all the data of each patient contained in the list. Requirements: . Use a class to contain the properties of a patient . The class' member variables should be kept private, use accessors and mutators as needed . The patient class should contain a constructor . The program should contain a list (array, vector, etc.) containing 4 patient class instances pre- populated with names, phone numbers, and blood types. You may make up whatever data you want for these members. . The program should behave according to the description in the first part Create as many functions, class member functions, extra variables as needed. The program should be able to be complete and able to be compiled. Use whatever editor you like and copy your code here for submission. Edit View Insert Format Tools Table 12pt w Paragraph BIUALV TVStep 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