1
00:00:02,110 --> 00:00:04,030
Hey, guys, what's up?

2
00:00:04,420 --> 00:00:07,270
So today we are solving one more investing problem.

3
00:00:07,720 --> 00:00:11,620
So that probably one treatment is will be given an alphabet.

4
00:00:12,010 --> 00:00:12,290
OK.

5
00:00:12,670 --> 00:00:15,470
So we will be given an alphabet use.

6
00:00:15,540 --> 00:00:17,860
It will give us an alphabet.

7
00:00:17,980 --> 00:00:19,070
Or you can say use.

8
00:00:19,120 --> 00:00:21,220
It will give us a character.

9
00:00:21,760 --> 00:00:25,510
And we have to print where that character is uppercase.

10
00:00:27,340 --> 00:00:30,110
Whether that word is uppercase or lowercase.

11
00:00:31,890 --> 00:00:34,380
Otherwise, we have to print in reality, connecter.

12
00:00:36,900 --> 00:00:42,480
For example, if my input is, let's say, be so, our approach should be uppercase.

13
00:00:43,590 --> 00:00:51,750
If my input is let's say it's small C, my output should be lower keys and let's say if I give one as

14
00:00:51,750 --> 00:00:54,270
input, so output should be invalid.

15
00:00:54,570 --> 00:00:54,970
Correct.

16
00:00:55,790 --> 00:00:58,860
OK, so this is the task that we have to perform.

17
00:00:59,370 --> 00:01:00,900
And this is very easy.

18
00:01:01,900 --> 00:01:05,870
So what I'm going to do is I will take a character, C.H..

19
00:01:07,280 --> 00:01:11,600
GABSI h and I will take input from the user.

20
00:01:12,970 --> 00:01:15,730
Then I'm going to do is I will check for a parkis.

21
00:01:16,210 --> 00:01:26,620
So if my character is good, then Articles two Capital E and my character is less than Articles two,

22
00:01:27,630 --> 00:01:28,600
Capital Z.

23
00:01:31,030 --> 00:01:36,490
Then I can safely say that my correct dosage is up parkis.

24
00:01:39,520 --> 00:01:39,820
OK.

25
00:01:40,210 --> 00:01:52,630
Similarly elusive, if my character is a girl, then articles too small a and my character is less than

26
00:01:52,720 --> 00:02:00,240
articles too small Z, then I can safely say that my character is lowercase.

27
00:02:02,690 --> 00:02:07,370
And if both these conditions are false, if this is false, this is false.

28
00:02:07,820 --> 00:02:09,860
I will reach in as bloke.

29
00:02:10,310 --> 00:02:15,210
And here I will brained that my character is an invalid character.

30
00:02:16,830 --> 00:02:17,050
OK.

31
00:02:17,620 --> 00:02:20,380
So this is all that we have to do.

32
00:02:22,280 --> 00:02:25,620
OK, so landside called.

33
00:02:26,510 --> 00:02:30,070
So I have already made a file up, a lower dot CPB.

34
00:02:30,740 --> 00:02:37,220
And now what I'm gonna do is I will take a character, S.H. and the value of S.H. really be given by

35
00:02:37,460 --> 00:02:37,940
user.

36
00:02:40,490 --> 00:02:43,490
Now, I just know I have to just right a fence.

37
00:02:44,130 --> 00:02:51,930
So if my character is good, then capitally and.

38
00:02:56,230 --> 00:03:02,190
My character is less than or equal to Capital Z.

39
00:03:04,820 --> 00:03:06,110
Hey, it will be great.

40
00:03:06,310 --> 00:03:07,420
Then ordered close to.

41
00:03:08,940 --> 00:03:15,060
So if this is the condition I can see see out of Parkis.

42
00:03:20,490 --> 00:03:21,010
And Lane.

43
00:03:23,420 --> 00:03:24,070
I save.

44
00:03:29,850 --> 00:03:43,620
I will check if my character is a better than or equal to Smally and my character is less than or equal

45
00:03:43,650 --> 00:03:53,860
to small Z, then my character is a lower case, lower case alphabet.

46
00:03:54,650 --> 00:03:57,990
So C, I would lower case.

47
00:04:03,480 --> 00:04:11,140
As if both dubeau condition are false, that means the given character is not an alphabet and.

48
00:04:11,820 --> 00:04:13,910
It is an invalid correct bird.

49
00:04:15,310 --> 00:04:17,000
So invented character.

50
00:04:20,190 --> 00:04:22,380
So let us test our program.

51
00:04:24,480 --> 00:04:26,680
Nurses smaller, so lower case.

52
00:04:29,460 --> 00:04:31,410
Let's say, gee.

53
00:04:32,960 --> 00:04:33,540
Lowercase.

54
00:04:36,130 --> 00:04:37,630
Now, let's say Capital said.

55
00:04:41,160 --> 00:04:41,710
Parkis.

56
00:04:42,750 --> 00:04:46,870
And now let does give an invalid character lives here, too.

57
00:04:47,640 --> 00:04:49,770
So it is an invalid character.

58
00:04:51,080 --> 00:04:54,680
Now, the obvious thing that you may be thinking is.

59
00:04:56,880 --> 00:04:59,610
So what is the thing that you should think?

60
00:05:01,460 --> 00:05:03,590
How we can compare it to correctors.

61
00:05:05,240 --> 00:05:05,560
OK.

62
00:05:06,130 --> 00:05:09,970
We can compare two numbers to Gordon three, Tager, then five.

63
00:05:10,260 --> 00:05:16,330
But how we can compare two numbers that Eger then be how we can compare.

64
00:05:16,360 --> 00:05:17,130
This is a character.

65
00:05:17,140 --> 00:05:17,980
This is a character.

66
00:05:18,490 --> 00:05:22,030
There is no way in which we can compare two characters.

67
00:05:22,690 --> 00:05:24,850
So how this logic is working.

68
00:05:25,660 --> 00:05:26,800
So the idea is very simple.

69
00:05:28,350 --> 00:05:33,180
This operator is defying phone numbers and floating, floating in the mud and in beaches.

70
00:05:34,440 --> 00:05:38,950
And these are characters, so implicit typecasting is taking place here.

71
00:05:39,950 --> 00:05:47,250
OK, so this so this variable sea, it is containing a character and that character's converted into

72
00:05:47,250 --> 00:05:48,250
its Sky-Blue.

73
00:05:48,720 --> 00:05:53,680
Similarly, Smally is converted to its eye skyway, which is 97, similarly.

74
00:05:54,280 --> 00:05:55,920
There that is 122.

75
00:05:56,310 --> 00:06:01,230
So all the characters and variables, for example, S.H. is a variable and this is a character.

76
00:06:01,710 --> 00:06:06,300
So the of variable containing the character is converted includes Wickwire value.

77
00:06:07,080 --> 00:06:09,610
Similarly, Z will be converted and ask you.

78
00:06:10,050 --> 00:06:12,570
And we are comparing those oskay values.

79
00:06:13,080 --> 00:06:13,350
OK.

80
00:06:13,770 --> 00:06:15,200
So we are comparing those Wickwire.

81
00:06:15,960 --> 00:06:23,820
So some of the civil order you must remember is capitalises and 65 beas 66 and so on.

82
00:06:24,180 --> 00:06:25,890
Similarly I think Z will be.

83
00:06:27,630 --> 00:06:29,480
Sixty five plus twenty five.

84
00:06:29,870 --> 00:06:35,920
So five and five, ten, six plus two is 1890, so Z will be 90.

85
00:06:36,500 --> 00:06:38,620
Similarly small 97.

86
00:06:39,190 --> 00:06:40,970
B is 98.

87
00:06:41,420 --> 00:06:42,080
And so on.

88
00:06:42,560 --> 00:06:44,600
And Z will be 97.

89
00:06:44,720 --> 00:06:45,920
Plus strong five.

90
00:06:46,760 --> 00:06:49,250
So 122.

91
00:06:50,480 --> 00:06:51,590
So these are Scavullo.

92
00:06:51,710 --> 00:06:54,600
You should remember they're used in many cushions.

93
00:06:55,430 --> 00:06:57,550
So it is better to remember these values.

94
00:06:58,370 --> 00:06:59,680
So where you can also do here.

95
00:07:00,710 --> 00:07:08,090
Instead of I capitally, you can ride, it's asked, will you also 65, similarly, instead of riding

96
00:07:08,090 --> 00:07:14,270
Capital Z, what you can do here is you can write ask Amy, Lou and Sam for this.

97
00:07:16,380 --> 00:07:17,120
97.

98
00:07:20,160 --> 00:07:26,760
And went on to do because ultimately typecasting was taking place and this girl is also typecasting,

99
00:07:26,760 --> 00:07:28,350
will take implicit typecasting.

100
00:07:28,380 --> 00:07:30,120
OK, so this is implicit typecasting.

101
00:07:30,510 --> 00:07:33,240
We are not converting characters, doing features.

102
00:07:33,360 --> 00:07:35,310
It is done automatically by the compiler.

103
00:07:36,470 --> 00:07:38,050
OK, so this is in blizzard type casting.

104
00:07:38,780 --> 00:07:43,580
So you can check out Prado's going going to be seeing, for example, capital G.

105
00:07:44,840 --> 00:07:45,340
Parraguez.

106
00:07:47,330 --> 00:07:48,110
Similarly.

107
00:07:49,230 --> 00:07:51,150
Let's say small G.

108
00:07:52,030 --> 00:07:56,240
Lower case and same for invalid characters.

109
00:07:57,230 --> 00:07:57,440
OK.

110
00:07:58,540 --> 00:07:59,830
So this is it for this video.

111
00:08:00,430 --> 00:08:01,510
Thank you for watching.
