Title The Class for Representing a Loan
Catalog Type SLCItem
Persistent ID https://pawscomp2.sis.pitt.edu/pcex/index.html?lang=JAVA&set=objects.classes.loan
Platform Name PCEX
Features
Description Construct a class that represents a loan. This class should contain data representing the interest rate, loan amount, and the length of loan period (in years). The class should have constructors that permits a loan to be created when:\n - annual interest rate, length of loan period, and loan amount are specified\n - none of the properties of the loan are specified. In this, we create a loan with default values for the loan properties (3 % interest rate, 1-year loan period, and 1000 loan amount).\nThe other method of the this class should calculate the amount of monthly payments on the loan.\n\nThe LoanTester1 class instantiates an object from this class and invokes its method to determine the amount of monthly payments on the loan.
Keywords classes, object, objects
Author Roya Hosseini
Institution University of Pittsburgh
Iframe URL https://pawscomp2.sis.pitt.edu/pcex/index.html?lang=JAVA&set=objects.classes.loan
Protocol PITT, HTML
Protocol URL
License MIT
Programming Language Java
Natural Language en

Preview