Question: Program in C! Write a function that displays the changes in a given amount of dollars. void displayChanges(double amount) for example, if you call the
Program in C!
Write a function that displays the changes in a given amount of dollars.
void displayChanges(double amount)
for example, if you call the function with $8.78, your function should display something like this.
$8.78 is 8 dollars, 3 quarters, 0 dimes, 0 nickles, and 3 cents.
Hint: you should first convert the dollar amount into total cents in integer.
Write a program to test your code.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
