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

Preview

SPLICE Output