So at the end of the section that section has been pretty short.
But I hope that doesn't mean to you that's not important.
We'll be using everything we've learned into in this section in great detail in the Battleship game.
OK.
So we're going to do a lot of application of strikes and you know as in our Battleship game similar
to do one problem here again because we're going to be doing a ton of practice later.
So this problem says Creedon ENM called character case type ankar case type should have three values
CC uppercase lowercase and C C either using this you know modify the character function you wrote to
modify the input to one of these value these values depending on the value of the character.
So it says an example if it was CC lowercase all input would come out to lowercase for character.
So I'm actually going to change it in our utilities.
Hetter So I'm actually going to
fine our ina up here.
So in character case.
In it doesn't matter what use are but names matter keys.
Again I said Ciro starch doesn't matter really that much.
Case size either either either
and more you change the second one with the valid inputs for now you can change the other one on your
own time it should be exactly the same.
So Herter case.
Case is incorrectly
so know in utils p
here.
Do you include the character case.
K an Alice is really saying is instead of having it always be lower we can choose which one I want.
Hear
you will say if carry case is easy uppercase then something else if
character case is lower case
and we will do this k.
And to make it uppercase all we have to do is say
upper
this.
So this will cause the input to be uppercase if they put uppercase in and lowercase to be lowercase.
And no we don't need a third case here because if it's either then it doesn't matter and so it just
retains whatever the input was before and that's it and will be.
So reason why we did this is in our bad shape game will be needing this function quite a bit.
So you will see all the usage in the balance sheet.
So hang tight and in the next section we're going to talk more about some arrays in dynamic memory.