Difference: Lab4 (20 vs. 21)

Revision 212017-02-23 - JimSkon

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Lab 4-1 - Count Coins

Line: 30 to 30
 %CODE{"c++"}% void computeCoins(int coinValue, int& number, int& amountLeft); //Precondition: 0 < coinValue < 100; 0 <= amountLeft < 100.
Changed:
<
<
//(CoinValue will always be 24, 10, or 1 for this project)
>
>
//(CoinValue will always be 25, 10, or 1 for this project)
 //Postcondition: number has been set equal to the maximum number of coins of //denomination coinValue cents that can be obtained from amountLeft //amountLeft has been decreased by the value of the coins to be returned, that is,
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback