Hey, guys I have an assignment due tomorrow and I am really lost, if anyone can give me some example code or explain to me how to this I would be greatful, I could do it probably if I could set the words, but the user input is where I get lost, in the sense of java counting the letters and matching it with the indexes, this is what it is:
It has to display like:Quote:
Write a program that lets you enter any word and prints it out in various ways. The design and analysis of this problem should include techniques learned in class such as the flowchart and pseudocode. The algorithm must include repetition structures and use String methods deemed necessary such as charAt(), indexOf(), length(), substring(). Your input
Sample output:
Canada
Canad
Cana
Can
Ca
C
C-a-n-a-d-a
C-a-n-a-d
C-a-n-a
C-a-n
C-a
C
Canada
anada
nada
ada
da
a
