Question: Write a c++ program for the following instructions. Read the instructions very carefully and make sure to answer every detail. Create two classes and name

Write a c++ program for the following instructions. Read the instructions very carefully and make sure to answer every detail.  Write a c++ program for the following instructions. Read the instructions
very carefully and make sure to answer every detail. Create two classes
and name their types HotdogStand and Money All relevant classes, functions, and

Create two classes and name their types HotdogStand and Money All relevant classes, functions, and data shall be placed in a namespace called MyAwesomeBusiness Use initialization sections where possible for all constructors With the sole exceptions being the print ) function(s), no other functions should be printing to the screen unless an error message must be displayed Money Class Requirements 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 void add (const Money &m) - The sum shall be stored in the calling object void subtract (const Money &m) - The difference shall be stored in the calling object bool isEqual (const Money 6m) 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!