Question
Construct a C program which computes the minimum number of bills and coins needed to make change for a particular purchase. The cost of the
Construct a C program which computes the minimum number of bills and coins needed to make change for a particular purchase. The cost of the item is $21.17 and the amount tendered is $100.00. These values should be built into your program using assignment statements rather than input into the program during program runtime. Your program should indicate how many bills and coins of each denomintaion are needed for the change. You should make use of the following denominations: Bills: twenty, ten, five, one Coins: quarter, dime, nickel, penny YOur program should make use of integer division as well asthe modulus operator. Do not use the subtraction operator in place of the modulus operator. What I am REALLY looking for is an explanation of which formulas I should be using and how I am supposed to implement the modulus operator within the formula.
Step 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