Consider the following C++ program and rewrite the output function as: 1. Non-member function 2. Friend function Then call both from main and print out the result. #include > using namespace std; class Money i public: Money(int dollars, int cents); Money(int dollars); Money0: double get value(; void input (0; void output(O; int get_all_cents O { return all_cents; } private: int all_cents; i; int main() f Money income; income.input 0 ; cout "Income = "; income.output 0 ; cout << endl; system("pause"); return 0 ; 3 Money:: Money(int dollars, int cents) i if (dollars*cents <0 ) //If one is negative and one is positive f cout "Illegal values for dollars and cents. lnn; exit(1); 3 all_cents = dollars 100+ cents; 3 Money::Money(int dollars) : all_cents(dollars * 100) i //Body intentionally blank. Money::Money 0 ; all_cents( 0 ) f //Body intentionally blank. 3 double Money::get value()Money::Money(int dollars, int cents) i if (dollars*cents <0 ) //f one is negative and one is positive.