Given the following declarations and statements, write an appropriate function c
ID: 3673693 • Letter: G
Question
Given the following declarations and statements, write an appropriate function call for the function implemented above. The value returned from the function should be stored in variable result.double balance = 0.0, withdrawal_amount = 0.0; int fifties = 0, twenties = 0, tens = 0, result = 0; printf("Enter your bank balance: "); scanf("%lf", &balance); printf("Enter the amount to withdraw in multiples of 10s: "); scanf("%lf", &withdrawal_amount);
// write the function call below (4 pts) Given the following declarations and statements, write an appropriate function call for the function implemented above. The value returned from the function should be stored in variable result. double balance 0.0, withdrawal-amount 0.0; int fifties = 0, twenties-0, tens = 0, result 0; printf ("Enter your bank balance: "); acant ("%1.1", &balance;) ; printf("Enter the amount to withdraw in multiples of 10s:" acant ("%df", &withdrawal-amount;); // write the function call below
Explanation / Answer
result = dispense_bills(balance, withdrawal_amount, &fifties_ptr, &twenties_ptr, &tens_ptr);