Hi, i need solkution for my below question. Question--- Find the most efficient
ID: 3617713 • Letter: H
Question
Hi, i need solkution for my below question. Question--- Find the most efficient way of making change forany amount up to $200.00. for eg: if the amount of change is $188.94,i shouldget 1-$100 bill 1-$50 bill 1- $20 bill 1-$10 bill 1-$5 bill 1-$2 bill 1-$1 bill 1- 50 cent bill 1- 25 cent bill 1-10 cent bill 1-5 cent bill 4-1 cent billQuestion--- Find the most efficient way of making change forany amount up to $200.00. for eg: if the amount of change is $188.94,i shouldget 1-$100 bill 1-$50 bill 1- $20 bill 1-$10 bill 1-$5 bill 1-$2 bill 1-$1 bill 1- 50 cent bill 1- 25 cent bill 1-10 cent bill 1-5 cent bill 4-1 cent bill
Explanation / Answer
please rate - thanks #include using namespace std; int main () {inthundreds,fifties,twenties,tens,fives,ones,quarters,dimes,nickels,pennies,amount; int twos,fifty; double damount; coutdamount; while(damount>200) {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.