Question: Read the program and try to understand what it does. In the program, the function, boxOfStars , returns a string that, when printed, yields a
Read the program and try to understand what it does. In the program, the function, boxOfStars, returns a string that, when printed, yields a box of stars of width w and height h. The function lineOfStars, is a funciton that returns a string that when printed, yields a string containing a sequence of stars of length len, without a new line character.
Write a new definition of the funciton boxOfStars that does NOT contain an explicitly nested loop. Instead, it should have a call to the function definition of lineOfStars to accomplish the same goal as the original program.
The program is below:

Thank you!!
#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
