RE: SLC21 Week3 - Strings in C

You are viewing a single comment's thread from:

SLC21 Week3 - Strings in C

in slc21w3sergeyk •  21 hours ago 
Task Comment Grade
Practically (i.e., with code examples) explain the theory from the first part of this lesson, where the concept of two sizes of an array is discussed. Demonstrate how to make it look like the array size can be increased/decreased. All loops should work with the array size stored in the size variable. Keep the physical, actual size in the constant N.
P
3/3
Declare a string variable (store any sentence in the array). Task: reverse the string, i.e., write it backward. For example: char s[]="ABCDEF";.....your code.....cout&lt&lts; => FEDCBA
E
1/1
Swap neighboring letters char s[]="ABCDEF";.....your code.....cout&lt&lts; => BADCFE
R
1/1
Shift the string cyclically to the left (it’s easier to start with this), then cyclically to the right. char s[]="ABCDEF", x[]="abrakadabra";.....your code.....cout&lt&lts&lt&lt"\n"&lt&ltx; => BCDEFA aabrakadabr
F
1.5/1.5
Remove all vowel letters char s[]="this is some text";...your code...cout&lt&lts; => ths s sm txt
E
1.5/1.5
Double each vowel letter char s[]="this is some text";...your code...cout&lt&lts; => thiis iis soomee teext
C
2/2
аAdditional task (1-2 points) - as a replacement for any of the tasks 2-6: Choose any number, preferably slightly larger than the length of the text. Increase the text length to the specified number by adding spaces between words. char s[]="this is some text";...your code...cout&lts&ltss; => (this is some text) len of s => 17 number =27
T
+
Total:                      I would like to add some comment - but I have nothing to say))) 10/10
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!