subject

Write a rotate() function that takes two parameters, a string intended to be one upper-case a-z letter and an integer, and returns a string. *the returned string should be the *input letter rotated by the number of positions specified by the integer argument*. (the romans of caesar's time only used what today we call upper-case letters.) so a call to rotate("c", 1) should return (return not print) the string "d" and a call to rotate("d", -1) should return the string "c". rotation should "wrap around" the end of the alphabet, so rotate("z", 3) should return "c".

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:00
Ahorse is how much percent more powerful than a pony
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
Rachel completed typing an official document with a word processing program. she wants to make sure that her document has no typographical errors. she also wants all headings to have the same font. which features in a word processing program should she use? rachel should use the feature in a word processing program to find typographical errors. she should apply to have uniform headings.
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
The "instance" relationship shows that something is an object of a
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Kto rozmawia z clamentain przez krótkofalówke w the walking dead w 4 epizodzie
Answers: 1
You know the right answer?
Write a rotate() function that takes two parameters, a string intended to be one upper-case a-z lett...
Questions
question
Mathematics, 26.11.2020 22:40
question
Mathematics, 26.11.2020 22:40
Questions on the website: 13722360