Hi, please help withe the following the problem from a self test question, i have a mid term tomorrow and dont get it. Thanks.
Following is the defintion of the class Percent. Objects of type Percent rep. percentages such as 10% or 99%. Give definitions of the overloaded operators >> and << so that they can be used for input and output with objects of class Percent. Assume that input always consists of an integer followed by the character '%', such as 25%. All percentages are whole numbers and are stored in the int member variable named value. You dont need to define the constructor , only have to define the overloaded operators >> and <<.