Java

Banking Deposit Amount Calculation in Java

In this tutorials will teach Banking Deposit Amount Calculation in Java following these conditions.

User shall be able to choose as 200days 0r 100days option.

  • if the user select 200days option includes 20% interest rate.
  • if the user select 100days option includes 10% interest rate.

Double amount = Double.parseDouble(txtAmount.getText());
String days = (String)cboDays.getSelectedItem();
Double tot,interest;
      
if(days.equals("200"))
   {
     interest = amount * 20/100 / 365 * 200;
     txtInterest.setText(String.valueOf(interest));
     tot = amount + interest;
     txtTot.setText(String.valueOf(tot));
  } 
else if(days.equals("100"))
     {
       interest = amount * 15/100 / 365 * 100;
       txtInterest.setText(String.valueOf(interest));
       tot = amount + interest;
       txtTot.setText(String.valueOf(tot));
     }
     else
     {
        JOptionPane.showMessageDialog(null, "Something Wrong");
     }

 

i have attached the video link below. which will do this tutorials step by step

 

admin

Recent Posts

Fish Inventory Shop Management System in Angular

This article explain how to make a Fish Inventory Management App in Angular.this app explain…

5 days ago

Fish Inventory Management with React

Introduction to Fish Inventory Management In the aquaculture industry, managing fish inventory is crucial for…

6 days ago

Java GUI CRUD for Beginners

Introduction to Java GUI CRUD Java is a powerful programming language widely used for building…

6 days ago

Creating Beautiful Login Form Design Using React

Introduction to Login Form Design Designing an effective and beautiful login form is crucial for…

2 weeks ago

Creating Responsive Login Form with React

Introduction In today creating a responsive login form is essential for providing a seamless user…

2 weeks ago

Master React Inventory Management System Development

Introduction to Inventory Management Systems In today's fast-paced digital environment, businesses require efficient inventory management…

2 weeks ago