Question: Please, help with a c++ code The following webpage provides a brief overview of beverage classification: https://361degreeshospitality.wordpress.com/2014/06/19/beverages-its-classification/ (Links to an external site.) In this programming

Please, help with a c++ code

The following webpage provides a brief overview of beverage classification:

https://361degreeshospitality.wordpress.com/2014/06/19/beverages-its-classification/ (Links to an external site.)

In this programming assignment, you will create a hierarchy of classes (see below) that inherit from the beverage class. The base class (Beverage) and each derived class should have the appropriate attributes, parameterized constructor, destructor, setter/getter methods, and a toString() method that clearly defines the beverage. Write a program that creates several beverages (at least one of each from list below) using a parameterized constructor and displays the set of beverages you created.

Beverage:

  • Name
  • Description
  • Serving Size
  • Calories
  • Price

Coffee:

  • Hot/Cold
  • Caffeinated
  • Roast Type (Light, Medium, Dark, French Roast, Espresso)
  • Strength
  • Creamer
  • Sweetener

Tea

  • Type (Black, Oolong, Green, Herbal, etc.)
  • Hot/Cold
  • Creamer
  • Sweetener
  • Lemon

Soda

  • Brand
  • Type (Cola, Lemon-Lime, Birch, etc.)
  • Diet

Energy Drink:

  • Brand
  • Stimulant (caffeine, taurine, etc.)
  • Sweetener

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!