When you finish this assignment you should be able to
You should implement the following functions:
// This function will read the value of the scanner. // Input: none // Output: // coffee: an integer representing coffee ordered // donuts: an integer representing donuts ordered // rocks: an integer representing the rocks tendered // stones: an integer representing the stones tendered // pebbles: an integer representing the pebbles tendered void GetScannerValue(int & coffee, int & donuts, int & rocks, int & stones, int & pebbles); // This function will convert Rocks, Stones and Pebbles to Pebbles // Input: // rocksIn: an integer representing the quantity of rocks // stonesIn: an integer representing the quantity of stones // pebblesIn: an integer representing the quantity of pebbles // Output: // pebblesOut: an integer representing the totaly quantity of pebbles int ToPebbles(int rocksIn, int stonesIn, int pebblesIn); // This function will convert from Pebbles to Rocks, Stones and Pebbles // Input: // pebblesIn: an integer representing a quantity of pebbles // Output: // rocksOut: an integer representing the quantity of rocks // stonesOut: an integer representing the quantity of stones // pebblesOut: an integer representing the quantity of pebbles void FromPebbles(int pebblesIn, int & rocksOut, int & stonesOut, int & pebblesOut); // This function will print a nicely formatted output line for money // Input: // titleString: a string to be printed first. // rocks: an integer representing the quantity of rocks // stones: an integer representing the quantity of stones // pebbles: an integer representing the quantity of pebbles void PrintCash(string titleString, int rocks, int stones, int pebbles);
When you are finished attach a copy of your source code (.C or .cpp file) to an email message to danbennett360@gmail.com.
Make sure you include your name in the email message.