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.
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");
}
Inventory Management POS systems are now an essential part of modern businesses such as bookshops,…
If you're just beginning to learn Java GUI programming creating an Water System Calculator is a fantastic project for…
GitHub is a powerful tool used by teams and developers around the globe. This guide is…
It's like having a super-smart buddy that is always there to help you write stories,…
The UK is known for its rich history, diverse culture, and most of all its…
Do you have a plan for your next holiday? Being aware of the Bank Holidays within the…