WEBVTT

00:00.399 --> 00:02.919
hi friends welcome to Tor funny Channel

00:02.919 --> 00:05.920
today I'm going to teach there is a best

00:05.920 --> 00:09.200
AI tool for programmers to write the

00:09.200 --> 00:13.679
code so we have to go to the Google and

00:13.679 --> 00:15.680
type

00:15.680 --> 00:20.480
blackbox A this is which is a free tool

00:20.480 --> 00:22.960
this is which is a completely free tool

00:22.960 --> 00:26.000
you can have here click on this this

00:26.000 --> 00:29.519
tool is the code is very efficient code

00:29.519 --> 00:33.360
very NE code you will be able to uh do

00:33.360 --> 00:36.760
any programming so here this is very

00:36.760 --> 00:38.520
helpful tool I recommend it so this a

00:38.520 --> 00:41.399
black box AI so you can see here there

00:41.399 --> 00:43.480
is a message box you can ask anything

00:43.480 --> 00:46.199
else so I'm first I'm going to select as

00:46.199 --> 00:49.760
create as act as a Java

00:49.760 --> 00:52.399
developer you can give the FR correctly

00:52.399 --> 00:55.440
act as a Java uh developer so if you

00:55.440 --> 00:57.399
give the prompt correctly Java developer

00:57.399 --> 01:01.120
the AI is act as a Java it will be act

01:01.120 --> 01:04.400
as Java developer so I want to write I

01:04.400 --> 01:07.840
want to write

01:08.400 --> 01:12.720
a write a

01:12.720 --> 01:16.280
small calculator

01:16.280 --> 01:19.280
small

01:24.320 --> 01:27.360
calculator using

01:27.360 --> 01:31.840
Java Java consult

01:34.040 --> 01:36.960
here now I have click on this here you

01:36.960 --> 01:39.200
can see I'm going to open up

01:39.200 --> 01:43.719
my uh Eclipse

01:43.759 --> 01:50.200
idea Eclipse so it is int

01:51.799 --> 01:56.000
int okay so that here there here you

01:56.000 --> 01:58.119
will be able to

01:58.119 --> 02:00.680
see there is a comp compl calculate

02:00.680 --> 02:04.880
program it will be return from AI so

02:04.880 --> 02:06.600
this is a main method they implement the

02:06.600 --> 02:08.879
scanner class this is the scanner class

02:08.879 --> 02:11.920
we have input the whatever you can input

02:11.920 --> 02:15.000
the numbers okay so we have create the

02:15.000 --> 02:18.959
uh three variables double data type this

02:18.959 --> 02:21.280
is a Char which is operator because Char

02:21.280 --> 02:24.879
is a one character so we have put the CH

02:24.879 --> 02:26.280
the welcome to the simple calculator we

02:26.280 --> 02:28.920
have to write the heading after that

02:28.920 --> 02:31.680
while through Loop until the user decide

02:31.680 --> 02:33.239
exit okay it will

02:33.239 --> 02:35.599
be uh running the

02:35.599 --> 02:39.440
loop uh until the user get exit Okay so

02:39.440 --> 02:41.319
the loop is working so first

02:41.319 --> 02:43.920
number you can say first number you type

02:43.920 --> 02:47.040
first number so after that is next okay

02:47.040 --> 02:50.800
so here scan exit the second option so

02:50.800 --> 02:52.800
invalid output all things are here here

02:52.800 --> 02:55.040
you can see the operator plus minus

02:55.040 --> 02:57.480
subtraction division all things okay so

02:57.480 --> 03:00.400
you put the case if it is plus it will

03:00.400 --> 03:02.840
be adding two numbers if it is a minus

03:02.840 --> 03:04.680
it will be minus it if it is a

03:04.680 --> 03:06.640
subtraction it's a

03:06.640 --> 03:08.680
division what the operators you are

03:08.680 --> 03:11.319
selected based on the operator system

03:11.319 --> 03:13.400
the calculation will be calculated okay

03:13.400 --> 03:15.120
so that you will be able to see so here

03:15.120 --> 03:17.560
I'm going to open up the new

03:17.560 --> 03:20.200
window

03:20.200 --> 03:23.200
new

03:24.200 --> 03:26.799
project your name yes calculator

03:26.799 --> 03:29.799
calculator

03:38.080 --> 03:40.319
the

03:41.799 --> 03:43.959
main now here what I'm going to do this

03:43.959 --> 03:45.519
here I'm going

03:45.519 --> 03:47.959
to this code I'm going to get rid of

03:47.959 --> 03:50.760
this code so this get rid of this code

03:50.760 --> 03:52.400
so here I'm going to put this inser of

03:52.400 --> 03:54.760
this code what is a code you have return

03:54.760 --> 03:56.400
this code I am going to paste it the

03:56.400 --> 03:58.159
simple calculator this all

03:58.159 --> 04:01.720
things just copy

04:03.120 --> 04:04.519
paste on

04:04.519 --> 04:07.439
it there is no error you can see here

04:07.439 --> 04:09.959
there's no error so there is a button

04:09.959 --> 04:12.720
called so here this is not error this is

04:12.720 --> 04:14.599
the the already the main method is there

04:14.599 --> 04:16.199
so that we have to remove the main

04:16.199 --> 04:18.120
method okay so the main method is

04:18.120 --> 04:21.000
already there so that's there okay the

04:21.000 --> 04:22.639
scanner class we have to import the

04:22.639 --> 04:25.720
scanner class so the Press odd plus

04:25.720 --> 04:28.320
ENT inut the scanner class the scanner

04:28.320 --> 04:30.440
class we have it is reside on the

04:30.440 --> 04:34.520
scanner package so here it is under the

04:34.520 --> 04:36.560
reside on the util package as scanner

04:36.560 --> 04:39.680
class okay so this everything are

04:39.680 --> 04:43.639
perfectly well now let's R run the

04:43.680 --> 04:46.039
program okay if you have any problem by

04:46.039 --> 04:48.479
the is getting error you will be able to

04:48.479 --> 04:50.960
see here the scanner class is

04:50.960 --> 04:53.680
import so you will get if you get the

04:53.680 --> 04:56.800
error you can noce here import so there

04:56.800 --> 04:57.960
is no

04:57.960 --> 05:01.160
errored here it is asking the number

05:01.160 --> 05:03.560
okay so first number I'm going to

05:03.560 --> 05:05.880
five here you have to select the

05:05.880 --> 05:07.960
operating system what you need so I want

05:07.960 --> 05:10.160
to add two numbers so I'm going to press

05:10.160 --> 05:14.000
plus symbol press enter key it has

05:14.000 --> 05:18.440
second number five PR key here your

05:18.440 --> 05:21.479
answer will be here your answer will be

05:21.479 --> 05:24.800
10 now here I'm going to

05:24.800 --> 05:26.400
80

05:26.400 --> 05:29.400
plus minus you I am going to choose

05:29.400 --> 05:31.280
minus

05:31.280 --> 05:35.800
plus I'm going to minus 50 answer will

05:35.800 --> 05:38.680
be 30 here very efficient calculator is

05:38.680 --> 05:39.759
will be

05:39.759 --> 05:42.120
display the very efficient calculator

05:42.120 --> 05:44.600
program will be display this one so it

05:44.600 --> 05:46.360
will be working here it's true mean what

05:46.360 --> 05:48.400
is the meaning of this true mean if the

05:48.400 --> 05:51.520
loop will be work until the uh until the

05:51.520 --> 05:55.800
user exist exit Okay and the user exit

05:55.800 --> 05:59.840
it will be working if you press here uh

05:59.840 --> 06:02.039
type exit or

06:02.039 --> 06:04.840
quit goodbye the program will

06:04.840 --> 06:09.160
be will be goodbye here this one if this

06:09.160 --> 06:11.120
okay here it be

06:11.120 --> 06:13.880
working okay it will be working if exit

06:13.880 --> 06:16.160
here goodbye it is

06:16.160 --> 06:20.280
break it's working okay if it is exit it

06:20.280 --> 06:23.280
will work it is

06:23.280 --> 06:26.319
break it it break mean it will be break

06:26.319 --> 06:29.120
up the program it not continue okay it's

06:29.120 --> 06:31.720
break up the program okay it is working

06:31.720 --> 06:33.599
it's true mean it is until working while

06:33.599 --> 06:36.560
true mean is working until the r get

06:36.560 --> 06:40.160
true it's cck exit it will be break R

06:40.160 --> 06:42.280
will be work okay so after that here

06:42.280 --> 06:43.880
condition so here the first you have to

06:43.880 --> 06:46.080
enter the first we enter the

06:46.080 --> 06:48.000
number you have to enter the first

06:48.000 --> 06:51.520
number after that you have to uh select

06:51.520 --> 06:54.280
the symbol but you need after that you

06:54.280 --> 06:56.440
have to uh after you have select the

06:56.440 --> 06:58.440
symbol after that you allow to enter the

06:58.440 --> 07:00.960
second number it should it would be fine

07:00.960 --> 07:03.440
after that here there will be the case

07:03.440 --> 07:05.960
if this match with plus it will be

07:05.960 --> 07:08.199
calculate two numbers and display the

07:08.199 --> 07:10.639
appropriate total if it is a minus it

07:10.639 --> 07:13.639
will go through this Loop this case if

07:13.639 --> 07:16.680
it is a subtraction it's go in this case

07:16.680 --> 07:18.599
if it's a division go this case okay it

07:18.599 --> 07:20.520
will be

07:20.520 --> 07:24.240
working the based on the symbol you are

07:24.240 --> 07:26.000
selected is working on the symbol you

07:26.000 --> 07:27.840
are selected according to the symbol it

07:27.840 --> 07:31.240
it has been produced outut very simple

07:31.240 --> 07:34.000
okay it's very simple program okay so

07:34.000 --> 07:36.000
here I hope you guys you can understand

07:36.000 --> 07:38.960
the things that code is very neat okay

07:38.960 --> 07:41.560
very neat code you will be able not this

07:41.560 --> 07:44.080
I am uh I have given the instruction

07:44.080 --> 07:47.919
only the uh calculator system whatever

07:47.919 --> 07:50.120
system you can get the help from the AI

07:50.120 --> 07:52.919
and you can uh done your code very

07:52.919 --> 07:54.520
perfect way first you have to understand

07:54.520 --> 07:57.520
what what he what is this line explain

07:57.520 --> 07:59.199
what is this line explain what is this

07:59.199 --> 08:01.159
first you read the code carefully after

08:01.159 --> 08:03.520
that you can get the decision okay if

08:03.520 --> 08:07.840
you are not uh ignore it you can't

08:07.840 --> 08:09.080
understand so first you have to

08:09.080 --> 08:10.680
understand what this line what this line

08:10.680 --> 08:12.479
but this line but all the lines you have

08:12.479 --> 08:13.960
first you have to understand the line

08:13.960 --> 08:19.080
and do it thank you for watching
