# Write a Program that dispense change. The Program shouldread the amount of pur
ID: 3613478 • Letter: #
Question
# Write a Program that dispense change. The Program shouldread the amount of purchase and the amount paid and then displaythe number of dollars , quaters, dimes, nickels, and pennies givenin change. (Hint - Convert Purchase amount andthe amount paid to pennies.) Calculate difference . Use % operatorto determine how many dollars to pay. Subtract the number ofpennies from change due and continue this process for quarters ,dimes, etc. Your answer may be off by a penny . Do you have anyidea why this might be the case ? How would you correctthis.)Thanks
Urgent Help
Explanation / Answer
#include using namespace std; int main () { coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.