Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using c++, Write a function named change ) that has an integer parameter and six integer reference parameters named hundreds, fifties, twenties, tens, fives, and
using c++,
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 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 outputStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started