Create an Allergies class that holds a person's name and the things s/he is allergic to. Each allergy has a unique score value as follows:
| Allergy | Score |
|---|---|
| Eggs | 1 |
| Peanuts | 2 |
| Shellfish | 4 |
| Strawberries | 8 |
| Tomatoes | 16 |
| Chocolate | 32 |
| Pollen | 64 |
| Cats | 128 |
By combining the scores for each allergy suffered by a person their overall allergy score is obtained. For example, if someone was allergic to Peanuts, Tomatoes, and Pollen, their allergy score would be 2 (Peanuts) + 16 (Tomatoes) + 64 (Pollen) their allergy score would be 82.
An enumeration type enum called Allergen is already declared in the Code tab and should not be altered.
The class should have the following members:
One or more constructors allowing the following instantiations:
var mary = new Allergies("Mary") ➞ Mary initially has no allergies
var joe = new Allergies("Joe", 65) ➞ Joe is allergic to Eggs (1) and Pollen (64)
var rob = new Allergies("Rob", "Peanuts Chocolate Cats Strawberries") ➞ Rob is allergic to Peanuts, Strawberries, Chocolate, and Cats.Name ➞ the name of the person
Score ➞ returning an `int` value equal to the allergy scoreToString() — (override) returns a string in one of the following forms
IsAllergicTo() — taking either a string parameter (e.g. "Pollen") or an Allergen enum value and returning true or false depending on whether the person is allergic to the given allergen.
AddAllergy() — taking string or Allergen parameter as above and updating the Score property by adding the numeric value of the given allergen.
DeleteAllergy() — taking string or Allergen parameter as above and updating the Score property by subtracting the numeric value of the given allergen.
ToString() method should return the allergies in order of their score value