I need help to get this program done thank you write C++ for a function that tak
ID: 3618188 • Letter: I
Question
I need help to get this program done thank youwrite C++ for a function that takes a change between 1 centand 99 cents and determines the least number of coins to give outfor the change. Use coin denominations of 25 cents (quarters), 10cents (dimes), 5 cents (nickels), and 1 cent (pennies). Thefunction has the following parameters.
- Input parameter: change
- Output paramers:
- numQ: number of quarters
- numD: number of dimes
- numN: number of nickels
- numP: number of pennies
- Local variable: remainder
write C++ for a function that takes a change between 1 centand 99 cents and determines the least number of coins to give outfor the change. Use coin denominations of 25 cents (quarters), 10cents (dimes), 5 cents (nickels), and 1 cent (pennies). Thefunction has the following parameters.
Explanation / Answer
please rate - thanks #include using namespace std; void getchange(int,int&,int&,int&,int&); int main () {int change,numQ,numD,numN,numP; coutchange; do {if(change99) {coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.