Question
I need help with one part of my code. The user input phrase that's less than 31 returns fine (It seems). I am having trouble
I need help with one part of my code. The user input phrase that's less than 31 returns fine (It seems). I am having trouble with the second part where the phrase imputed by the user is greater than 31. I know it has something to do with substring but I am having a hard time figuring out this simple mistake.
NOTES: Max # of characters per line of text (without the border) is thirty.
I need it to look like this:
This is what I get when I run my code (something is wrong):
Here is my code so far (I already put the user input code to scan for phrase and character):
Thank you in advance!
Enter a phrase: a bcdefghijklmnopqrstuvwxyz Enter a character: abcdefghijklm GAME OVER MAN ! Enter a phrase: abcdefghijkzmnopqrstuvwyz Enter a character: 1 a b c d f ghijk lmm pqqstuvwyz GAME OVER MANStep 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