CPS 130 - Programming Logic II Project #8 Create a money class using the followi
ID: 3535341 • Letter: C
Question
CPS 130 - Programming Logic II
Project #8
Create a money class using the following UML diagram:
money
-dollars
-cents
+money(int = 0, int = 0) :
+setMoney(int, int) : void
+getMoney(int &, int &) : void
+dollarsToCents() const : int
operator<<(ostream&, money) : ostream&
operator>>(istream&, money&) : istream&
operator+(money, money) : money
operator==(money, money) : bool
operator!=(money, money) : bool
2. You may wish to start with files money.h and money.cpp located in the Project #8 folder on Angel.
3. Create a driver program, lastname8.cpp that tests each of the functions in your class. Be sure that the output of the driver program is documented, easy to read, and easy to understand
Project Due Date: See Angel Calendar
Attach files money.h, money.cpp and lastname8.cpp in the Project #8 Drop Box
money
-dollars
-cents
+money(int = 0, int = 0) :
+setMoney(int, int) : void
+getMoney(int &, int &) : void
+dollarsToCents() const : int
operator<<(ostream&, money) : ostream&
operator>>(istream&, money&) : istream&
operator+(money, money) : money
operator==(money, money) : bool
operator!=(money, money) : bool
Explanation / Answer
when do you need this? email necessary files to binarymonkey001@gmail.com
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.