Question 1) Write a user defined function called Change. The user enters the amount paid and the amount due in the main function. The program determines how many dollars, quarters, dimes, nickels, and...


**C PROGRAMMING LANGUAGE


**PLEASE PUT SOME COMMENTS


** DOUBLE CHECK IF IT WORKS


Q IN PICTURE


Question 1) Write a user defined function called Change. The user enters the amount paid and<br>the amount due in the main function. The program determines how many dollars, quarters,<br>dimes, nickels, and pennies should be given as change. The function parameter has two double<br>pointer reference parameters. The first parameter represents the amount paid and the second<br>represents the amount due. Assume the user will always pay over the amount due. Pointers are<br>required to receive full credit for the problem. If pointers aren't used, then no credit will be<br>given.<br>Sample output for question 1:<br>Amount Due: 10.42<br>Amount Paid: 15.00<br>Change<br>4 dollars<br>2 quarters<br>e dimes<br>1 nickels<br>3 pennies<br>

Extracted text: Question 1) Write a user defined function called Change. The user enters the amount paid and the amount due in the main function. The program determines how many dollars, quarters, dimes, nickels, and pennies should be given as change. The function parameter has two double pointer reference parameters. The first parameter represents the amount paid and the second represents the amount due. Assume the user will always pay over the amount due. Pointers are required to receive full credit for the problem. If pointers aren't used, then no credit will be given. Sample output for question 1: Amount Due: 10.42 Amount Paid: 15.00 Change 4 dollars 2 quarters e dimes 1 nickels 3 pennies

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here