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

Build Simple Water System Calculator in Java Using Swing

If you're just beginning to learn Java GUI programming creating an Water System Calculator is a fantastic project for…

1 week ago

GitHub Copilot vs Microsoft Copilot Best AI Tool to Use in 2025

GitHub is a powerful tool used by teams and developers around the globe. This guide is…

2 weeks ago

Chat with Claude AI Free – Your Super-Smart AI Buddy

It's like having a super-smart buddy that is always there to help you write stories,…

2 weeks ago

Best Festivals UK 2025 [Free Guide Included]

The UK is known for its rich history, diverse culture, and most of all  its…

3 weeks ago

Bank Holidays 2025 UK – Plan Your Perfect Long Weekends

Do you have a plan for your next holiday? Being aware of the Bank Holidays within the…

3 weeks ago

Master Cursor AI Full Guide for Students & Creators

The world is rapidly changing of software development AI-assisted tools for coding have become the main focus. As…

3 weeks ago