In this article, we will be learning how to convert all the small letters in the string to capital letters without a built-in programming function. We will draw a flowchart, write an algorithm and Simple Program in C for performing Case Conversion to Lower to Upper Case.
So Let's Start.
In this pseudocode, we declare an array of string str and a variable i. We read the string and then we run for loop to get each character of the string. We will check if each ASCII value of each character is between the value of a and z. If yes, then subtract 32 from each character to convert them into capital letters. For example, let us take string "tall" it will enter the loop as well as if statement now the 't'(ASCII value=116) will be subtracted with 32 to get 106 which is "T" now 'a'(97) will go inside the loop, it will convert to 65 which is "A". The same will happen with 'l' and at last, we will get "TALL" .
Our Quiz prepared by Experts Helps you identify your knowledge in Algorithms. Everyone should atleast attempt this Quiz Once.