(Solved):Create a function named change() in c++. It has an integer parameter and six integer reference parameter named hundreds, the fifties, twenties, tens, fives, and ones. The function is to consider… View Answer…

 

Question

Create a function named change() in c++. It has an integer parameter and six integer reference parameter named hundreds, the 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.

 

EXPERT ANSWER

C++ code:

#include 

Scroll to top