0:00
Hi friends, welcome to Tuti channel.
0:02
Today I'm going to teach banking uh FTMO
0:06
interest calculation programming. This
0:09
is very important stuff. When you have a
0:11
FDMO, you can deposit for amount for 1
0:15
year include 12 uh percentage interest
0:19
rate. If it is if you are deposit for
0:25
1 and a half years, it mean 12.5
0:28
interest rate. it include 12.5 interest
0:31
rate. If you deposit for 2 years, the
0:36
bank interest rate will be include
0:39
uh 13%. Okay. Upon the percentage we are
0:44
going to calculate the
0:48
uh amount. So how to do the things? So
0:51
first what I'm going to I'm going to
0:52
open the net inside here.
0:56
Go to that Java and Java application.
0:59
Click next. If this check main and check
1:02
it here, check it here. Java loan
1:15
fixed deposit calculation.
1:24
This is the proof. You have to give the
1:26
respective name for so that that's a
1:28
master. Okay. Select the default packet.
1:30
Right click frame form. You have to fix
1:39
Okay. For fix deposit you can write the
1:41
class name fix deposit. Don't don't
1:43
leave the space. Okay. It's not good if
1:47
you if you can leave the space along
1:49
with the underscore. Okay. So we have to
1:53
arrange the form. So here you have to
1:59
This panel select this one properties.
2:02
You have to select the background color
2:08
Okay. So you have to drag one label.
2:11
Okay. You have to name it as
2:27
Okay. So now what I'm going to do is I'm
2:39
this one. Click okay.
2:43
Now let's with ball along with B. Click
2:52
Now let's what I'm going to do is I'm
2:53
going to go to the thing as
2:57
label. I'm going to label fix deposit
3:05
So I make it as deposit
3:16
After that copy C copy paste it. This
3:19
one should be the amount.
3:25
Okay. Now here I'm going to drag one
3:42
Select edit text. Backstage to remove
3:44
the existing text. Select this one
3:46
again. Ctrl C to copy. Control V to
3:47
paste again. Here I'm going to sect this
3:55
txt balance uh balance balance.
3:59
That's it. So I need one button
4:23
Now here what I'm going to do is double
4:24
click on it. Here what I'm going to do
4:26
is here I'm going to do the thing is
4:28
like this. Uh first I'm going to type
4:40
to write the variable principle
4:45
equal to write double
4:56
you have to write this set this.
5:00
Copy this. Paste it over here.
5:12
After that we have write it here.
5:23
this double. Double. Press it over here.
5:28
Here doubt write it here. Here you have
5:31
to write the year. Here also we have to
5:34
add year as. So you have to write here
5:36
you have to write additionally.
5:44
Copy this and paste it over here.
5:56
control box from the control
6:05
name it as this one as a
6:17
this here we have to change that
6:20
properties that go to select here as 1
6:41
Very simple. So that's the thing we have
6:43
to do. After that, what I'm going to
6:45
erase you done the stuff correctly for
6:48
the name is this one. Name it this one.
6:50
It name click on it. Go over here. You
6:53
paste this name dot this one should be
6:55
there. Get selected item. Get selected
7:11
You can write like this or you can write
7:13
here also. You can write this string.
7:18
Okay. You can write like this. Okay. So
7:20
you have to write something like that
7:28
instead of writing you can write like
7:42
equal rate you have write if
7:48
this one here if Here you can write F
7:56
double equ= 1. If it is one mean it is
8:01
can calculate as rate
8:11
okay by zero if it is else
8:37
final condition it must be
8:44
okay that is the condition after that
8:46
what I'm going to do is I'm going to
8:48
calculate the interest rate so you
8:52
rate interest rate interest
8:56
equal double interest equal
9:00
okay the principle this one
9:03
this is the main amount deposit
9:07
of the principal amount deposit
9:24
Yes. After that you have to write double
9:45
Okay. Principle plus interest. Look at
9:51
This after that the final total will be
10:03
We have to write it over here as
10:06
uh we have to write uh the amount final
10:10
amount write like this get amount dot
10:16
amount this amount you have to display
10:23
we write it here as a sorry string
10:30
you can provide amount
10:33
That's how we have calculate the ammo.
10:36
Okay. So here you have to write like
10:51
the efficient way to write it here.
11:05
efficient way to do the program. Now
11:14
something error. What is the error? here
11:25
okay now what I'm going to see interest
11:34
this one for 1 and a half years
11:38
deposit one and a half years so click
11:40
calculate so this is our completely I
11:44
will get uh 1 and a half years along
11:46
with the interest rate as well.
11:50
Okay. So that's why this it is uh
11:52
principle plus interest rate. Okay. So
11:54
we have to get the interest rate. If you
11:56
want to plus interest rate only if you
11:58
need interest rate as well. Get this one
12:01
interest rate as well. Get another one.
12:08
Copy and paste it out here. Here also
13:04
will be the TXT rate. This isn't DXT
13:27
Now let's run let's run it again.
13:31
Deposit you can write it over here
13:41
1 and a half years. Click on it. So that
13:45
uh problem is here occur that interest
13:47
rate the interest is there you have to
13:49
put the interest rate over here now
13:54
now can say can put 1 million 10 million
14:01
interest rate click on it here this one
14:03
should be the interest rate this is the
14:08
okay so upon that it will be calculated
14:11
if it is a two two years based on the
14:13
interest rate is displayed Okay.
14:16
What's the interest rate you are uh
14:19
providing here? Okay. If it is if you
14:22
are change it as like this something
14:30
Now let's check on it.
14:33
Okay. This is the interest rate.
14:39
Okay. The two years there is interest
14:40
rate. So this is the amount
14:44
all together it is all together it will
14:47
be coming this what 59 lakhs 40 uh 40 40
14:55
okay 59 lakhs and 40 lakhs here this one
14:59
should be the two crores and 79 lakhs
15:07
okay this is the at the end we will be
15:09
receive this kind of amount
15:12
Thank you for watching. Okay, this is a
15:13
simple logic you have to write. Thank