/* Problem 1 Write a function double monthly(double loan, int years) that has 2 parameters - loan amount taken in the bank and number of years the loan is taking for. The function returns the monthly loan payment. There is NO interest. Write a program that first reads the number of customers that took a loan in a bank on specific day. For each customer the programs reads loan amount and term (in years). The program stores loans in array of doubles and terms in array of integers. The program creates a new double array to store monthly payment for each customer. Use fundtion monthly to calculate the monthly payment. */ #include #include #include double monthly(double, int); void make_random_array(int A[], int size, int min, int max); void print_array(int A[], int size); void print_array_double(double A[], int size); #define SIZE 20 int main(){ srand(time(NULL)); int terms[SIZE], num_users, i; double loan[SIZE], monthly_amount[SIZE]; printf("enter number of users\n"); scanf("%d", &num_users); if(num_users<=SIZE){ make_random_array(terms, num_users, 1, 5); printf("terms are\n"); print_array(terms, num_users); printf("enter loan amount for %d users\n", num_users); for(i=0;i