Question: Object-Oriented Programming C++ - I need a class called Money to be created with these requirements met and each function defined. Negative amounts of Money

Object-Oriented Programming C++ - I need a class called Money to be created with these requirements met and each function defined.

Object-Oriented Programming C++ - I need a class called Money to be

created with these requirements met and each function defined. Negative amounts of

Negative amounts of Money shall be stored by making both the dollars and cents negative The Money class shall have four (4) constructors - A default constructor that initializes your Money object to $0.00 - A constructor that takes two integers, the first for the dollars and the second for the cents - A constructor that takes one integer, for an clean dollar amount A constructor that takes one double, and can assign dollars and cents accordingly int getPennies ) const Returns the equivalent amount of money as a number of pennies bool isNegative) const - Returns true if your amount of money is negative The following functions will be removed: - void add (const Money &m) - void subtract (const Money &m) bool isEqual (const Money &m) const void print ) const Negative amounts of Money shall be stored by making both the dollars and cents negative The Money class shall have four (4) constructors - A default constructor that initializes your Money object to $0.00 - A constructor that takes two integers, the first for the dollars and the second for the cents - A constructor that takes one integer, for an clean dollar amount A constructor that takes one double, and can assign dollars and cents accordingly int getPennies ) const Returns the equivalent amount of money as a number of pennies bool isNegative) const - Returns true if your amount of money is negative The following functions will be removed: - void add (const Money &m) - void subtract (const Money &m) bool isEqual (const Money &m) const void print ) const

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!