Looking for reliable answers? Westonci.ca is the ultimate Q&A platform where experts share their knowledge on various topics. Connect with professionals ready to provide precise answers to your questions on our comprehensive Q&A platform. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.

an authority requires a deposit on a car loan according to the following schedule: loan$ deposit less than $10000 10% of loan value less than $15000 $200 6% of loan value less than $20000 $500 5% of loan value less than $50000 $1000 3% of loan value loans in excess of $50000 are not allowed. write a complete program that will read a loan amount and compute and print the required deposit. c language only. no points will be given if other languages are used.

Sagot :

#include <stdio.h>

int main()

{

   double loanAmount;

   double deposit;

   

   printf("Please enter the loan amount: \n");

   scanf("%lf", &loanAmount);

   

   if (loanAmount < 10000)

   {

       deposit = loanAmount * 0.1;

   }

   else if (loanAmount < 15000)

   {

       deposit = 200;

   }

   else if (loanAmount < 20000)

   {

       deposit = 500;

   }

   else if (loanAmount < 50000)

   {

       deposit = loanAmount * 0.05;

   }

   else

   {

       printf("Loans in excess of $50,000 are not allowed.\n");

       return 0;

   }

   

   printf("The required deposit is: %.2f\n", deposit);

   

   return 0;

}

For more questions like Loan click the link below:

https://brainly.com/question/14628829

#SPJ4