Create a C program, that reads in a string from the keyboard. The string only contains letters of the English alphabet. It is 49 characters long at max. Replace all occurrences of the first letter of your name (written above with no regard on upper or lowercase) with a '*' character. Print out the modified string into a file that has a name similar as your neptun code (.txt). Close the file and after that also add a random word to the end of the file. This word has to be the one you see if you now visit the link below: http://watchout4snakes.com/Random/RandomWord Example run for Kocsis Gergely, neptune code (d9254u): Give a string please... I know a King who I like In the file d92s4u. txt: I *now a *ing who Ili*e demolishing
Create a C program, that reads in a string from the keyboard. The string only
contains letters of the English alphabet. It is 49 characters long at max.
Replace all occurrences of the first letter of your name (written above with no
regard on upper or lowercase) with a '*' character. Print out the modified string
into a file that has a name similar as your neptun code (.txt).
Close the file and after that also add a random word to the end of the file. This
word has to be the one you see if you now visit the link below:
http://watchout4snakes.com/Random/RandomWord
Example run for Kocsis Gergely, neptune code (d9254u):
Give a string please... I know a King who I like
In the file d92s4u. txt:
I *now a *ing who Ili*e
demolishing
Step by step
Solved in 2 steps with 2 images