Create a class that prints out a summary for a list of prescriptions. Using your Prescription class and some if statements you will read in 3 prescriptions and print out an appropriate summary with a list of the prescriptions, the total price, and any warnings associated with those medicines. You will also create a small test class to validate your work.
Example
So, the input to the class may be something like (3 sets of name, supply, price):
Tylenol 14 8.95 Diflucan 3 14.50 Pseudoephedrine 20 13.45
This would produce an output similar to:
Name Supply Price
Tylenol 14 $8.50
With your discount, you saved $0.45! Diflucan 3 $14.50 Pseudoephedrine 20 $12.78 With your discount, you saved $0.67! Total: $35.78