Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a rotate ( ) function that takes two parameters, a string intended to be one upper - case A - Z letter and an
Write a rotate function that takes two parameters, a string intended to be one uppercase AZ 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 uppercase letters.
So a call to rotateC should return return not print the string D and a call to rotateD should return the string C Rotation should "wrap around" the end of the alphabet, so rotateZ should return C
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started