Home / Expert Answers / Computer Science / 34-1337-sp3-k-34-or-34-leet-speak-34-is-an-online-trend-in-which-people-replace-letters-with-numbers-pa550

(Solved): "1337 sp3@k", or "leet speak", is an online trend in which people replace letters with numbers or ...



1337 sp3@k, or leet speak, is an online trend in which people replace letters with numbers or symbols as they type, to shmain.c
Load default template...
\#include <stdio.h>
\#include <string.h>
void ConvertEntireWord(char string [] );
int main(voInput
\begin{tabular}{l|l}
\multirow{3}{*}{ Your output } & Please enter a word. \\
The word is normal \\
Converted Word: R4c

"1337 sp3@k", or "leet speak", is an online trend in which people replace letters with numbers or symbols as they type, to show how cool they are. If a word doesn't have any numbers in it, it is considered normal; but if it does have any numbers in it, then it is considered Sometimes it is difficult to understand a sentence when it is written in 1337... We need a way to convert words back and forth between "1337" and "normal" speak! Write a program that lets the user enter a word that is 15 characters or less. Tell the user if the word is 1337 or if it is normal, using the rules below. Then, if the word was originally normal, convert it to 1337; if it was originally 1337 , convert it to normal. Finally, print out the converted word. Assume a word is "1337" if at least 1 character in the word is "1337"; i.e., the word "le3t" is still considered "1337". When converting to 1337, convert both lower and upper case letters. When converting to normal, simply write a lower-case character. Only check for the below numbers when determining if the word is 1337. You must implement the ConvertEntireWord function to receive full credit; the string must be manipulated in the function to receive full credit - do not make a copy. main.c Load default template... \#include \#include void ConvertEntireWord(char string [] ); int main(void) \{ char string[15]; printf("Please enter a word. ); scanf("\%s", string); ConvertEntireWord(string); return 0 ; \} void ConvertEntireWord(char string [] ) \{ int //iterate each character and check string is '1337' or not for (int ; string if (string ') \{ string ' '; flag \} else if (string string 'e'; flag ; \} else if (string string ' '; flag \} \} //if flag is 1 that means string is 1337 else normal if(flag printf("The word is nConverted Word: \%s", string); \} else \{ //iterate each character and check string is 'normal' or not for(int ; string ' if (string ' ' || string ' ') string '; else if (string 'B' || string ' ') string ' else if (string 'E' || string ') string ' 3 '; else if (string ' ' || string ' ') string '; else if (string[i] = ' ' || string ' ') string '7'; \} printf("The word is normal nConverted Word: \%s", string); Input \begin{tabular}{l|l} \multirow{3}{*}{ Your output } & Please enter a word. \\ The word is normal \\ Converted Word: R4c3c4r \end{tabular} Compare output Input \begin{tabular}{|l|l|} \hline Your output & Please enter a word. \\ The word is 1337 \\ Converted Word: elite \end{tabular} Unit test Test the ConvertEntireWord function Your output Testing the function with the word "macaroni" Your function generated: m4c4roni. This is correct! Unit test Test the ConvertEntireWord function Your output


We have an Answer from Expert

View Expert Answer

Expert Answer


The code that you provided didn't give the output for:1)If the give
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe