Title The Class for Representing a Loan (Case 2)
Catalog Type SLCItem
Persistent ID https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/objects_classes_loan__664e2c3291363872f0ba3439?index=1
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 methods of the this class should calculate the amount of monthly payments on the loan as well as the total payment.\n\nThe LoanTester2 class instantiates an object from this class and invokes its method to determine the amount of monthly payments on the loan and the total payment.
Keywords
Author Mohammad Hassany
Institution University of Pittsburgh
Iframe URL https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/objects_classes_loan__664e2c3291363872f0ba3439?index=1
Protocol SPLICE
Protocol URL
License MIT
Programming Language JAVA
Natural Language en

Preview

SPLICE Output