30.6k views
4 votes
This is A C++ PROGRAM BTW!! Define a class named Money that stores a monetary amount. The class should have two private integer variables , one to store the number of dollars and another to store the number of cents. Add accessor and mutator functions to read and set both member variables . Add another function that returns the monetary amount as a double .

In main(), test the implementation of your class with two different Money objects . Ask the user to enter values for dollars and cents and then display the value as a double .

User Roseanna
by
7.4k points

1 Answer

6 votes
Jasminee accoo i'm very disappointed in you, this was a assignment that you were to do. Can you explain yourself?
User Alexandr Kapshuk
by
8.7k points

No related questions found