Java



Create a CarLoan Class that encapsulates the following elements of a car loan: Sales price of the car Down Payment or trade-in allowance number of months for the loan (term) APR Car loan payment Total Interest paid on loan Your class must have both a default and overloaded constructor (the overloaded constructor should have the appropriate parameters, given that some data elements should be read-only. Create a MainClass that declares and instantiates a CarLoan object. Use the following data values for the CarLoan: Sales price of the car : $40,000 Down Payment or trade-in allowance: $15,000 number of months for the loan (term): 48 APR: 6%