Question: Problem Description Complete the given program to print out the character N characters past the given character. If you go past the last ASCII character,
Problem Description
Complete the given program to print out the character N characters past the given character. If you go past the last ASCII character, wrap back around to the beginning of the ASCII characters.
Hints
- You can do arithmetic with characters like you can with integers
- 'B' + 2 is 'D'
- 'F' - 'C' is 3
- You should be able to solve this problem with a single line of code
Examples
Example 1
Enter your letter: A
Enter how many characters you want to move: 1
1 characters past A is B
Example 2
Enter your letter: G
Enter how many characters you want to move: 3
3 characters past G is J
Example 3
Enter your letter: K
Enter how many characters you want to move: 100
100 characters past K is 0
Example 4
Enter your letter: 2
Enter how many characters you want to move: 134
134 characters past 2 is 9
#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
