With nested loops, we can draw 2D images with text. There are many very impressive ASCII...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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... 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...
Expert Answer:
Answer rating: 100% (QA)
You can create a simple plus sign ASCII art using nested for loops based on the users input for font ... View the full answer
Related Book For
Systems Analysis And Design
ISBN: 978-1119496489
7th Edition
Authors: Alan Dennis, Barbara Wixom, Roberta M. Roth
Posted Date:
Students also viewed these programming questions
-
please use JUnit test for switching player class and explain SwitchPlayer.class public class SwitchingPlayer extends Player { public SwitchingPlayer(List doors, GameshowHost monty) { super(doors,...
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Solve the following general system by inverting the coefficient matrix and using Theorem 1.6.2. x1 + 2x2 + 3x3 = b1 x1 - x2 + x3 = b2 x1 + x2 = b3 (a) b1= - 1, b2 = 3, b3 = 4 (b) b1 = - 1, b2 = -1,...
-
Two positive charges ql and q2 are located at the points with radius vectors r1 and r2. Find a negative charge q3 and a radius vector r3 of the point at which it has to be placed for the force acting...
-
Refer to Domino s . One new pay method Domino s implemented to combat its problems is a store - profitability bonus. On average, the store - profitability bonuses add 3 0 percent, or about $ 1 0 ,...
-
Who is often recognized as being the first hospital administrator and what major contributions did she make to nursing and the improvement of patient care?
-
When one company buys another company, it is not unusual that some workers are terminated. The severance benefits offered to the laid-off workers are often the subject of dispute. Suppose that the...
-
A manufacturing company reports the following Information for the month of May. Note: Assume all raw materials were used as direct materials. Activities for May Activities for May Advertising expense...
-
From the slide titled "Enhanced Processor w/PC Tester Circuit" from the lecture segment titled Programming a CPU with Machine Language - The Execution, implement the following division algorithm:...
-
Describe the voltage clamp by using a sketch. What is voltage clamping and why is it done? How is it used to investigate voltage-dependent phenomena like the action potential of a neuron? What are...
-
Vivaan wants to protect her valuables against damage and theft. If there is a \(25 \%\) probability of burglary and she wishes to purchase insurance that would fully reimburse her for a loss of up to...
-
The European Food Safety Authority provides scientific advice on questions related to food and feed safety, animal health and welfare, plant health, nutrition, and related environmental issues, and...
-
Suppose that the fine for illegally parking a car is \( 3,200\) and that a fine amount of 1,760 is sufficient for discouraging most people from parking their cars illegally. How high must the...
-
While there are many types of mutual funds, they all pool money provided by individual investors to purchase and manage securities. Investors are charged a management fee to pay for the time and...
-
The Government of India introduced a crop insurance scheme in February 2016 to provide financial support to farmers in the event of crop failure due to natural calamities, pests, and disease....
-
Refer to the figure. Calculate the dead weight loss caused by the monopoly. * Price and cost per unit 8.80- 8.00- 7.20 6.40- 5.60- 4.80 4.00- 3.20 2.40 1.60- 0.80 MC O $8 O $16 O $9.6 O $2.4 ATC D MR...
-
QUESTION 9 HC-O-C-R R-C-O-CH HC-O-P-O-CH-CH-NH3* O || O a. Phosphatidic acid, Serine O b. Lysophosphatidic acid, Serine, Free FA O c. Lysophosphatidylserine, Free FA O d. 2 Free FAs, Serine, Glycerol...
-
Compare and contrast the online help resources at two different Web sites that enable you to perform the same function (e.g., make travel reservations, order books).
-
Which phase in the SDLC is the most important?
-
Assume that you are developing a new system for a local real estate agency. The agency wants to keep a database of its own property listings and also wants to have access to the citywide multiple...
-
For Example 9.12, is an orthogonal solution possible? Compute \(\mathbf{E}^{-1}(z)\) for the proof. Example 9.12. Show the two-band lapped-transform structure that realizes the filter bank with...
-
Propose an alternative and simpler structure to that of Figure 9.46 in Example 9.12. The simplified structure should be based on Equation (9.267). Example 9.12. Show the two-band lapped-transform...
-
In Example 9.12, we could attempt to generalize the orthogonal realization of the LOT by allowing the matrix \(\mathbf{L}_{1}\) of Figure 9.45 to be a full matrix and design a simple biorthogonal...
Study smarter with the SolutionInn App