Question: - write a decrementing for loop method that start that prints number plus a star that is tabbed out one tab - write a


- write a decrementing for loop method that start that prints number plus a star that is tabbed out one tab - write a decrementing recursion method that does the same thing as the for loop write a java program called printStars - printStarsLoop(5) and printStars Recur(5) should both produce the following output 54321 4 2 * * . Both methods print n amount of Stars one per line Activa Go to recursion prints "print stars with iterate" (1 point) - calls printStarslterate with variable (2 points) - prints "print stars recursion (1 point) - calls printStarsRecursion with variable (2 points) 6 Points printStarsIterate iterate for loop uses reverse loop (2 points) - prints number and star for amount passed using tab (4 points) 6 Points printStars Recursion recursion has base case (3 points) - prints number and star for amount passed using tab (4 points) - calls itself until complete (4 points) 11 Points
Step by Step Solution
3.33 Rating (156 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
