Menu

[Solved]Get Code Could Get Half Use Previous Already Done Q37080511

Can I get the code for this I only could get half when I use theprevious which was already done.Thu 1:21 PM Activities Google Chrome zy 11.3. LAB: Convert String x С https:/leamzybooks.com/zybook/UCDENVERCSCI 1 4 11 Sprin

Thu 1:21 PM Activities Google Chrome zy 11.3. LAB: Convert String x С https:/leamzybooks.com/zybook/UCDENVERCSCI 1 4 11 Spring201 9/chapter/11/section/3 Hex,Decimal,。② O LFCE: Installing e chris chateau Brookzerker-Tv Coding Gamesa ¥ The Software F : Apps The Must Know power manager Coding Games and Programming Challenges to Code Be… https://www.codingame.com zyBooks My library>CSCI 1411: Fundamentals of Computing home 11.3 LAB: Convert String to Cyphertext cstring 11.3 LAB: Convert String to Cyphertext cstring Implement the following (Called a Ceasar Cypher, since it was used in Ceasars time) using this function prototype in the same file char cypher (string str, int rotate); The idea is that you will declare a variable of type string and give it a value in main. Then pass it into the cypher function. Cypher will create a cstring by copying the str to a new char* of size str size0. Remember that you can covert with strcstr) Then you will rotate ever letter by an amount passed into the function. If you look at the ascii table You wil see that A 65 and zis 122 We want to keep every character between these ascii codes. So, you will probably need an if statement noting: If after adding the rotate value and taking the moduļus of one after z (123), te value is between 65 and 123, then set the character to that value. Otherwise, because you did a mod of 123, you know the number is no larger than 122 (then goes back to zero) so in that case you would want to add 65 to take it to A Don’t forget to return the char. Then print out the cstring with puts.eg char * cstr puts(cstr) = new char [size]; For output, set the string to ABC” and call cypher(ABC’,0) #include <cstring» for test purpose result ACTVITY 11.3.1: LAB: Convert String to Cyphertext cstring 6/12 main.cpp Load defaut template… 4 uning nanespace atd Show transcribed image text Thu 1:21 PM Activities Google Chrome zy 11.3. LAB: Convert String x С https:/leamzybooks.com/zybook/UCDENVERCSCI 1 4 11 Spring201 9/chapter/11/section/3 Hex,Decimal,。② O LFCE: Installing e chris chateau Brookzerker-Tv Coding Gamesa ¥ The Software F : Apps The Must Know power manager Coding Games and Programming Challenges to Code Be… https://www.codingame.com zyBooks My library>CSCI 1411: Fundamentals of Computing home 11.3 LAB: Convert String to Cyphertext cstring 11.3 LAB: Convert String to Cyphertext cstring Implement the following (Called a Ceasar Cypher, since it was used in Ceasars time) using this function prototype in the same file char cypher (string str, int rotate); The idea is that you will declare a variable of type string and give it a value in main. Then pass it into the cypher function. Cypher will create a cstring by copying the str to a new char* of size str size0. Remember that you can covert with strcstr) Then you will rotate ever letter by an amount passed into the function. If you look at the ascii table You wil see that A 65 and zis 122 We want to keep every character between these ascii codes. So, you will probably need an if statement noting: If after adding the rotate value and taking the moduļus of one after z (123), te value is between 65 and 123, then set the character to that value. Otherwise, because you did a mod of 123, you know the number is no larger than 122 (then goes back to zero) so in that case you would want to add 65 to take it to A Don’t forget to return the char. Then print out the cstring with puts.eg char * cstr puts(cstr) = new char [size]; For output, set the string to ABC” and call cypher(ABC’,0) #include

Expert Answer


Answer to Can I get the code for this I only could get half when I use the previous which was already done…. . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *