RE: SLC21 Week3 - Strings in C

You are viewing a single comment's thread from:

SLC21 Week3 - Strings in C

in slc21w3sergeyk •  12 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. 'A function that checks if the logic size is less than the physical size (`N`) is created using `addElement`. If true, it adds an element at the current logical size position and the increments' here you describe a function that you do not use and it is not even in the program. If the task has a high score, it should be described more, not so briefly 0.6/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 It is not obvious to many that it is necessary to process half of the array - there is no explanation why. In addition, strings should be treated as arrays 0.8/1
Swap neighboring letters char s[]="ABCDEF";.....your code.....cout&lt&lts; => BADCFE An interesting explanation of the string of odd length...) 0.9/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 this task is skipped 0/1.5
Remove all vowel letters char s[]="this is some text";...your code...cout&lt&lts; => ths s sm txt you're using the string function, even though I asked you not to, and it's a very simple function, you could have written it yourself 1.2/1.5
Double each vowel letter char s[]="this is some text";...your code...cout&lt&lts; => thiis iis soomee teext 1.6/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 I understand that you completed this task by the end of the fourth? In this task, the code is bigger than the text)) 1.2
Total: The program should not have used functions to work with strings. But do pain better description of your task 6.3/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!