I have a project where i need to get the user to input some dollar amounts and then add them and then get the average, however im having trouble with the add and div function to get the average, could you guys take a look and give any advice
line 75 and 91
If you have $4.52 in your right hand, and $6.83 in your left, how much money do you have? How did you do the calculation? This is a good way to figure out what to do when you're stuck on a particular algorithm.
Also, just a thought (you don't need to do this): you might like Money operator+(Money x, Money y); better then "addMoney." Then you just code x + y instead of addMoney(x, y);. Same with divideMoney...