Question: 05 Prepare : Checkpoint B Instructions Add a default and a non-default constuctor the Money class from Checkpoint 05a 1. While you will use the

 05 Prepare : Checkpoint B Instructions Add a default and anon-default constuctor the Money class from Checkpoint 05a 1. While you willuse the money class from Checkpoint 05a, you will use a new

05 Prepare : Checkpoint B Instructions Add a default and a non-default constuctor the Money class from Checkpoint 05a 1. While you will use the money class from Checkpoint 05a, you will use a new "main" function. Copy over the file check05b.cpp and a corresponding makefile to start with mkdir check05b cd check05b cp /home/cs165new/check05b/* 2. Now, copy over your money h and money.cpp files from last time. Assuming you have your code from last time in a 2. Now, copy over your money.h and money.cpp files from last time. Assuming you have your code from last time in a directory called "check05a" and that you are now in the "check05b" directory: cp ../check05a/money.* . 3. Please note that this code does not compile at this point. You need to add code to make it compile 4. Add the following constructors . Default - Set the values to 0 Non-default that accepts 1 integer - Sets the dollar amount to that integer, sets the cents to 0 Non-default that accepts 2 integers - Sets the dollar amount to the first, and the cents to the second 5. Don't forget to use your setters so that you will get any error checking they do for free 6. You should not change anything in main (or your functions from last time). All you need to do is add the contructors 7. Don't forget to add your information to the makefile before tar-ing, and submitting

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!