Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

C program that will accept an integer value in the range of 5-95 representing the number of cents and dollar values 100, 50, 20, 10, 5, 2 and 1 to...

C program that will accept an integer value in the range of 5-95 representing the number of cents and dollar values 100, 50, 20, 10, 5, 2 and 1 to give to a customer their change.

-output the correct combination of dollar and cent.

Cents should be multiples of 5.

-use code below as the basis

float change;

int dollar, cents;

...

dollar = (int) change;

cents = (int) (((change - dollar)*100) + 0.5);

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question