The Language is Python 3 4. ASCII Art [20 points] Write a function cross (n, m) that
Fantastic news! We've Found the answer you've been seeking!
Question:
The Language is Python 3
Transcribed Image Text:
4. ASCII Art [20 points] Write a function cross (n, m) that prints a picture of an n x m cross as pictured below. The cross should consist of a horizontal line made of minus signs (''), a vertical middle line made of pipes ('|') and a plus sign ('+') at center. *It is OK if the center is off for an even n or m because you use n//2 or m//2. Python 3.8.5 Shell File Edit Shell Debug Options Window Help >>> cross (5,5) >>> cross (5,9) >>> cross (6,10) >>> | X Ln: 474 Col: 4 4. ASCII Art [20 points] Write a function cross (n, m) that prints a picture of an n x m cross as pictured below. The cross should consist of a horizontal line made of minus signs (''), a vertical middle line made of pipes ('|') and a plus sign ('+') at center. *It is OK if the center is off for an even n or m because you use n//2 or m//2. Python 3.8.5 Shell File Edit Shell Debug Options Window Help >>> cross (5,5) >>> cross (5,9) >>> cross (6,10) >>> | X Ln: 474 Col: 4
Expert Answer:
Answer rating: 100% (QA)
Python version 36 Python program to create and test the function cross def crossn m Function that ta... View the full answer
Related Book For
Posted Date:
Students also viewed these electrical engineering questions
-
2. (10 points) Write a program named hw2_2. cpp that asks the user to enter the number of seconds as an integer value and that then displays the equivalent time in days, hours, minutes, and seconds....
-
Develop a console application using Python programming language (and obviously Linux UBUNTU machine provided) with the following specifications: This application is mainly to determine the fuel...
-
Python 3 Write a python program that generates 1,000 random integers between 0 and 9 and displays the count for each number (Hint: Use a list of ten integers, say counts, to store the counts for the...
-
List three common situations that suggest that relations be denormalized before database implementation.
-
How might an investors tax situation affect his or her decision to purchase stocks of companies in the early stages of their lives, when they are growing rapidly and paying little or no dividends,...
-
A softball of mass 0.220kg that is moving with a speed of 8.5m/s collides head-on and elastically with another ball initially at rest. Afterward the incoming soft-ball bounces backward with a speed...
-
On April 23, 2014, Calvin Loyer admitted his wife, Edeltrud Loyer, to a nursing home administered by Signature Healthcare. During the admissions process, Calvin signed an arbitration agreement...
-
The Sanding Department of Richards Furniture Company has the following production and manufacturing cost data for March 2012, the first month of operation. Production: 9,000 units finished and...
-
8) You own San Antonio's top rated food truck that sells the best carne asada tacos (good A) but the burger food truck (good B) next door just started a promotional sale: The burger truck...
-
The Porsche Club of America sponsors driver education events that provide high-performance driving instruction on actual racetracks. Because safety is a primary consideration at such events, many...
-
1. A 14-year, $1000 face value bond makes annual payments and has a coupon rate of 9.6 percent.If the current yield on the bond is 10.6 percent, what is the bonds price? Answer: 905.66 2. Suppose...
-
What type of costing considers all costs of owning a product over its life, such as purchase price, operating costs, maintenance and repairs and dispostion costs? 1. Life-cycle costing 2. Variable...
-
How does Amazon ensure they are being innovative teachers to the associates? With Amazon's current challenges from the external environment due to increased competition from other e-commerce giants...
-
Describe arithmetic and geometric returns, and explain the difference between both. Calculate the investment below with both geometric and arithmetic returns (Show answers to 2 decimal places). ...
-
Review the Meyer, Becker, and Vandenberghe article, what is an optimal combination using those components and the various subparts provided in the model that would result in the maximum amount of...
-
Q1. What is Dynamic Programming (DP) technique? Explain the 4 generic steps to solve a given problem using DP technique. Explain the Optimal Substructure and Overlapping Subproblems properties of DP....
-
(a) State any one difference between pollination and fertilization. (b) A man with blood group A marries a woman with blood group O and their daughter has blood group O. Is this information enough to...
-
Arlington Merchants reported the following on its income statement for the fiscal years ending December 31, 2016 and 2015. 2016 2015 Sales $4,857,500 $4,752,900 Cost of goods sold 3,258,950 3,207,000...
-
Let V denote the set of positive real numbers. Define the operation of scalar multiplication, denoted , by x = x for each x R+ and for any real number a. Define the operation of addition, denoted...
-
Show that the product of two orthogonal matrices is also an orthogonal matrix. Is the product of two permutation matrices a permutation matrix? Explain.
-
Let S be an m n matrix and let b Rm. Show that b R(A) if and only if b =AA+b
-
When facilitating the methylation or pseudouridylation of an rRNA, a snoRNA functions as a. a decoy. b. a scaffold. c. a guide. d. both b and c.
-
Suppose that the overexpression of a particular miRNA was associated with pancreatic cancer. Which of the following agents might be effective in treating this type of cancer? a. Enoxacin b. A DNA...
-
When an ncRNA functions as a decoy, it a. contains binding sites for many different proteins, thereby promoting the formation of a large complex. b. recognizes other ncRNAs and sequesters them,...
Study smarter with the SolutionInn App