Object-Oriented Programming Project: Loan Amount Calculator (MITS4002)

Verified

Added on  2025/04/29

|8
|225
|421
AI Summary
Desklib provides past papers and solved assignments for students. This project compares loan amounts for 5 and 10 years using Java.
Document Page
MITS4002
OBJECT-ORIENTED SOFTWARE
DEVELOPMENT
Activity 07
Project:
Student ID:
Student full name:
Total Points:
Contents
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Establishment the requirements:................................................................................................
Create a design:..........................................................................................................................
Implement the code:...................................................................................................................
Output:........................................................................................................................................
Testing the implementation:.......................................................................................................
Document Page
Establishment of the requirements:
Write a Java program to compare the loan amount of two different years, 5 & 10 years of the
base amount 10,000. This calculation based on different interest rates. Take input from the
user side in the form of interest rate and get the output to compare both.
Create a design:
Declare datatypes in the program like, double, string, int
Create a main class named as args to find the rate of interest
Use while loop in the program with try function
Calculate the amount of two different years with the different rate of interest
Use class “calculateComparingLoanAmount” for calculation
Document Page
Implement the code:
Provide the screenshot of the coding part as below:
Figure 1: Source Code
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Output:
Provide the output of the compare loan amount of 5 & 10 years as below:
Figure 2: For 5 years
Document Page
Figure 3: For 5 years
Document Page
Figure 4: For 10 Years
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Figure 5: For 10 years
Testing the implementation:
The any of de-bug and error found in testing of the program
Output found correct after manually check
Enter two different years from the user side to get different values and to test the
program
chevron_up_icon
1 out of 8
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]