Ask coding questions

← Back to all posts
who knows? help if possible.
JaloliddinAbdum (0)

a) The operators <, <=, >, and >= have each been overloaded to apply to
the type Money
b) The following member function has been added to the class definition
const Money percent(int percentFigure) const;
//Returns percentFigure percent of Money.
//example: If percentFigure is 10, a Money object is returned that
//represents 0.1 of the amount of money of the calling object
//If purse is a Money object representing $100.20, purse.percent(10)
//is a Money object representing $10.02.
c) Finally, write a main subroutine that tests overloaded operators
<, <=, >, >= and percent(int percentFigure) member function