Question: Lab #7-Change Please! Write in C++ Task Write a function named change () that has an integer parameter and six integer reference parameters named hundreds,
Lab #7-Change Please! Write in C++ Task Write a function named change () that has an integer parameter and six integer reference parameters named hundreds, fifties, twenties, tens, fives, and ones. The function is to consider the passed integer value as a dollar amount and convert the value into the fewest number of equivalent bills. Using the reference parameters, the function should alter the arguments in the calling function. Include the function written above in a working program. Make sure your function is called from main) and returns a value to main) correctly. Have main) use a cout statement to display the returned value. Quality Assurance Test the function by passing various data to it and verifying the returned value. You should turn in at least four different dollar values and its equivalent output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
