Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed
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 TV

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions