Question: 18. Write a method called vertical that accepts a string as its parameter and prints each letter of the string on sepa- rate lines.

18. Write a method called vertical that accepts a string as its parameter and prints each letter of the string on sepa- rate lines. For example, a call of vertical ("hey now") should produce the following output: h e y D o 19. Write a method called printReverse that accepts a string as its parameter and prints the characters in opposite order. For example, a call of printReverse ("hello there!") should print "! ereht olleh". If the empty string is passed, the method should produce no output. 20. Write a method called inputBirthday that accepts a Scanner for the console as a parameter and prompts the user to enter a month, day, and year of birth, then prints the birthdate in a suitable format. Here is an example dia- logue with the user: On what day of the month were you born? 8 What is the name of the month in which you were born? May During what year were you born? 1981 You were born on May 8, 1981. You're mighty old!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
