Modify Project 1 (dollar.c) (Write a C program that asks the user to enter a U.S. dollar amount and then shows how to pay that amount using the smallest number of $20, $10, $5, and $1 bills.) So it includes the following function: void pay_amount(int dollars, int *twenties, int *tens, int*fives, int *ones); The function determines the smallest number of $20, $10, $5, and $1 bills necessary to pay the amount represented by the dollars parameter. The twenties parameter points to a variable in which the function will store the number of $20 bills required. The tens,fives, and ones parameters are similar. Modify the main function so it calls pay_amount.
This is dollar.c: #include int main(){ //initialize variables and read inputint dollar = 0, twenty = 0, ten = 0, five = 0, one =0; printf("Enter a dollar amount:\n"); scanf("%d", &dollar); //check the range of the input amountif(dollar < 0 || dollar > 1000000000) printf("Invalid amount %d,\nAmount must be between 0 and 1000000000, inclusive\n", dollar); else { twenty = dollar/20; ten = (dollar - (twenty * 20))/10; five = (dollar - (twenty * 20) - (ten * 10))/5; one = dollar - (twenty * 20) - (ten * 10) - (five * 5); printf("$20 bills: %d\n", twenty); printf("$10 bills: %d\n", ten); printf("$5 bills: %d\n", five); printf("$1 bills: %d\n", one); } return 0; }