Reference no: EM13757952
How do I set up a recursive function to output my first name to the console in a pyramid and then in a inverted pyramid and then my last name in a zigzag as follows
LAST NAME BEGINS WITH A-E
Name your method namePyramid
R
^o^
^^b^^
^^^e^^^
^^^^r^^^^
^^^^^t^^^^^
LAST NAME BEGINS WITH F-N
Name your method nameInvertedPyramid
<<<<>>>>
<<<>>>
<<>>
<>
t
LAST NAME BEGINS WITH O-Z
Name your method nameZigZag
+R+++++
++o++++
+++b+++
++++e++
+++++r+
++++++t
Need to create a pyramid with first name Robert inside of a method named namePyramid and the print out to the console should look like this: Disregard the periods: I needed them to move the pyramid over
.....R
....^o^
...^^b^^
..^^^e^^^
.^^^^r^^^^
^^^^^t^^^^^
Need to create an inverted pyramid with first name Robert inside of a method named nameInvertedPyramid and the print out to the console should look like this: Disregard the periods: I needed them to move the pyramid over
LAST NAME BEGINS WITH F-N
Name your method nameInvertedPyramid
<<<<R>>>>
...<<<o>>>
...<<<b>>>
......<<e>>
........<r>
..........t
Need to create a zigzag with last name Dowzer inside of a method named nameZigZag and the print out to the console should look like this: Disregard the periods: I needed them to move the pyramid over
LAST NAME BEGINS WITH O-Z
Name your method nameZigZag
...........+D+++++
..........++o++++
........+++w+++
......++++z++
....+++++e+
..++++++r