Question: With nested loops, we can draw 2D images with text. There are many very impressive ASCII Art examples out there. We'll start with something
With nested loops, we can "draw" 2D images with text. There are many very impressive ASCII Art examples out there. We'll start with something simple - drawing a plus sign +. Prompt the user to enter a font size (width and height of the plus sign ASCII Art) and font weight (the thickness of the plus sign ASCII Art). Then use FOR loop(s) to draw the plus sign ASCII art based on those parameters. Use the character for vertical parts and - for the horizontal parts of the plus sign. You MUST use FOR loop(s) for this assignment. Sample Output #1: [Plus Sign ASCII Art] Font-size: 1 Font-weight: 1 Drawing with text... C -1- Sample Output #2: [Plus Sign ASCII Art] Font-size: 2 Font-weight: 1 Drawing with text... Sample Output #3: [Plus Sign ASCII Art] Font-size: 4 Font-weight: 2 Drawing with text...
Step by Step Solution
3.40 Rating (156 Votes )
There are 3 Steps involved in it
You can create a simple plus sign ASCII art using nested for loops based on the users input for font ... View full answer
Get step-by-step solutions from verified subject matter experts
