Write a recursive method writeBlock (char, int, int) that uses the recursive method writeLine

profileThehonest
 (Not rated)
 (Not rated)
Chat

a. Write a recursive method writeBlock (char, int, int) that uses the recursive method writeLine (char, int) to write m lines of n characters each. For example, writeBlock (‘ *’ , 5, 6) produces the following output:
*****
*****
*****
*****
*****
b. How would you modify the program to show the following output?
******
*****
****
***
**
*

 

 

    • 7 years ago
    A+ Work
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      hlo11.zip