Java Programming Project: Loan Calculator with Different Data Types
VerifiedAdded on 2025/04/29
|6
|189
|401
AI Summary
Desklib provides past papers and solved assignments for students. This project demonstrates loan amount calculation in Java.

MITS4002
OBJECT-ORIENTED SOFTWARE
DEVELOPMENT
Activity 07
Project:
Student ID:
Student full name:
Total Points:
OBJECT-ORIENTED SOFTWARE
DEVELOPMENT
Activity 07
Project:
Student ID:
Student full name:
Total Points:
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

Contents
Establishment of the requirements:............................................................................................3
Create a design:..........................................................................................................................3
Implement the code:...................................................................................................................3
Output:........................................................................................................................................4
Testing the implementation:.......................................................................................................6
Establishment of the requirements:............................................................................................3
Create a design:..........................................................................................................................3
Implement the code:...................................................................................................................3
Output:........................................................................................................................................4
Testing the implementation:.......................................................................................................6

Establishment of the requirements:
The given problem is to calculate the total sum of the loan amount for different years (5 & 6)
of two different sums at different interest rates. Write a java program to calculate it by using
different data types and Java classes.
Create a design:
Use datatype “double” in the program with different java classes
Import three java classes util, lang and decimalFormat
Use formula to calculate total loan amount with string format
Implement the code:
Figure 1: Code of the program
The given problem is to calculate the total sum of the loan amount for different years (5 & 6)
of two different sums at different interest rates. Write a java program to calculate it by using
different data types and Java classes.
Create a design:
Use datatype “double” in the program with different java classes
Import three java classes util, lang and decimalFormat
Use formula to calculate total loan amount with string format
Implement the code:
Figure 1: Code of the program
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide

Output:
Get the output of total loan of two different sums as below:
Figure 2: Output 1
Get the output of total loan of two different sums as below:
Figure 2: Output 1
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

Figure 3: Output 2
Figure 4: Output 3
Figure 4: Output 3

Figure 5: Output 4
Testing the implementation:
Test the total loan amount of two sums with different interest rates and get the correct
output
Take two different sets from the user side as a different amount and get the correct
output
Testing the implementation:
Test the total loan amount of two sums with different interest rates and get the correct
output
Take two different sets from the user side as a different amount and get the correct
output
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide
1 out of 6
Related Documents

Your All-in-One AI-Powered Toolkit for Academic Success.
+13062052269
info@desklib.com
Available 24*7 on WhatsApp / Email
Unlock your academic potential
Copyright © 2020–2025 A2Z Services. All Rights Reserved. Developed and managed by ZUCOL.