Homework #23

Due Monday, March 27

In CodeHS Sanbox, make a new program called “reverse String”

Make a program that will reverse each word in a sentence.

“The cat ate dinner.”  becomes “eht tac eta rennid”

You can use just the myProgram file, but it should have two methods:

1) reverseWord

2) reverse Sentence

The second should call the first

 

Leave a comment