Java

Banking Application FD Rate Calculation using Java

In this tutorials i am to teach Banking Application FD Rate Calculation using Java.

Input your FD Rates
FD Rate must be grater than 100,000.
below 100,000 no interest rates included.

if the FD Rate more than 100,000 include
following condition

1. if the FD Rate more than 100,000
include 4.75 interest rate

2. if the FD Rate more than 500,000
include 6.75 interest rate

3. if the FD Rate more than 1000,000
include 8 interest rate

 

Here is code 

public class FirstApp {

    public static void main(String[] args) {
        
    {
        double fdrate,interest_rate,accountbal;
        
        fdrate = 1500000;
        interest_rate = 0;
        accountbal =0;

        
        if(fdrate < 100000)
        {
            System.out.println("FDrate not below 100000");
        }
        else
        {
            
            if(fdrate >= 100000 && fdrate < 500000)
            {
                interest_rate = fdrate * 4.75/100;
            }
            else if(fdrate >= 500000 && fdrate < 1000000)
            {
                interest_rate = fdrate * 6.75/100;
            }
            else
            {
                interest_rate = fdrate * 8/100;
            }
            
            System.out.println("Your Interest rate is " + interest_rate);
            
            
            accountbal = fdrate + interest_rate;
            
            System.out.println("Your Total Amount  is " + accountbal);
            
        }
    
    }

   }
}

 

 

 

admin

Recent Posts

Flexbox: Build Responsive Navigation Bar with HTML & CSS

Introduction to Flexbox When it comes to building responsive layouts, Flexbox offers a powerful and…

5 days ago

Creating Stunning Image Gallery Using CSS Grid

Introduction to CSS Grid The CSS Grid Layout is a powerful tool for creating responsive…

5 days ago

Create Professional Login & Registration Form using HTML & CSS

In this tutorils we are going to teach how to make a attractive Login &…

4 weeks ago

Form Repeater using HTML CSS JQuery

In this tutorial we are going to teach Form Repeater using HTML CSS JQuery.step by…

1 month ago

AJAX CRUD Application in Laravel 11

Introduction to AJAX and Laravel 11 AJAX, which stands for Asynchronous JavaScript and XML which…

1 month ago

C#.net Banking Project: Accurate FD Rate Calculation Tutorial

Introduction to FD Rate Calculation In any banking project, accurately calculating Fixed Deposit (FD) rates…

1 month ago