Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ question TASK The Person class is missing a special member function. This function needs to enable creating an object of Person class with the

C++ question

TASK The Person class is missing a special member function. This function needs to enable creating an object of Person class with the name , age and vaccinated status initialised with values supplied by user of the class. You will need to add the declaration of this member function in the header of Person class as well as implement this function in implementation file of Person class.

TASK Implement the method vaccinate in Person class. This function returns a bool indicating if a person can be given a vaccine. The person can only be given a vaccine, if they are not already vaccinated (so the function returns a bool if we try to vaccinate a person that is already vaccinated). When a person is given a vaccine, their vaccinated status should change.

TASK Implement oldestPerson function that returns the Person who is the oldest person(s) of the crowd. There could be multiple people of same age, therefore the return type is a vector.

TASK Implement eligibleForVaccine function that returns the people from the crowd that need to be vaccinated. Criteria is that they are older or equal to the specified ageCuttoff and have not been previously vaccinated. The age cut-off is inclusive of the age specified (an example is 18+, which is 18 and above).

*CANNOT CHANGE THE EXISTING WRITTEN LINES OF CODE

person.cpp

image text in transcribed

person.h

image text in transcribed

processing.cpp

image text in transcribed

processing.h

image text in transcribed

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 Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions

Question

13-1 How does building new systems produce organizational change?

Answered: 1 week ago

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago