WEBVTT

00:00.910 --> 00:05.820
So at the end of the section that section has been pretty short.

00:06.160 --> 00:11.080
But I hope that doesn't mean to you that's not important.

00:11.080 --> 00:20.230
We'll be using everything we've learned into in this section in great detail in the Battleship game.

00:20.570 --> 00:21.110
OK.

00:21.220 --> 00:28.990
So we're going to do a lot of application of strikes and you know as in our Battleship game similar

00:29.010 --> 00:37.090
to do one problem here again because we're going to be doing a ton of practice later.

00:37.090 --> 00:46.120
So this problem says Creedon ENM called character case type ankar case type should have three values

00:46.350 --> 00:55.660
CC uppercase lowercase and C C either using this you know modify the character function you wrote to

00:56.110 --> 01:03.020
modify the input to one of these value these values depending on the value of the character.

01:03.070 --> 01:13.070
So it says an example if it was CC lowercase all input would come out to lowercase for character.

01:13.840 --> 01:20.830
So I'm actually going to change it in our utilities.

01:21.830 --> 01:25.570
Hetter So I'm actually going to

01:27.990 --> 01:32.810
fine our ina up here.

01:32.820 --> 01:38.990
So in character case.

01:41.040 --> 01:47.900
In it doesn't matter what use are but names matter keys.

01:47.950 --> 01:55.350
Again I said Ciro starch doesn't matter really that much.

01:55.460 --> 02:01.730
Case size either either either

02:04.420 --> 02:14.580
and more you change the second one with the valid inputs for now you can change the other one on your

02:14.580 --> 02:16.740
own time it should be exactly the same.

02:16.760 --> 02:21.220
So Herter case.

02:26.430 --> 02:30.470
Case is incorrectly

02:33.260 --> 02:37.370
so know in utils p

02:39.790 --> 02:40.640
here.

02:40.700 --> 02:57.020
Do you include the character case.

02:57.330 --> 03:05.570
K an Alice is really saying is instead of having it always be lower we can choose which one I want.

03:11.820 --> 03:12.540
Hear

03:15.330 --> 03:28.360
you will say if carry case is easy uppercase then something else if

03:31.020 --> 03:36.600
character case is lower case

03:39.340 --> 03:43.530
and we will do this k.

03:43.990 --> 03:46.860
And to make it uppercase all we have to do is say

03:49.630 --> 03:50.230
upper

03:53.250 --> 03:54.570
this.

03:54.880 --> 04:03.520
So this will cause the input to be uppercase if they put uppercase in and lowercase to be lowercase.

04:03.520 --> 04:14.260
And no we don't need a third case here because if it's either then it doesn't matter and so it just

04:14.290 --> 04:21.230
retains whatever the input was before and that's it and will be.

04:21.250 --> 04:29.100
So reason why we did this is in our bad shape game will be needing this function quite a bit.

04:29.230 --> 04:35.130
So you will see all the usage in the balance sheet.

04:35.210 --> 04:44.910
So hang tight and in the next section we're going to talk more about some arrays in dynamic memory.
