Write a program to draw the following pattern based on the height given by the user....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program to draw the following pattern based on the height given by the user. The user will always enter a positive number. height = 5 h = input ('Enter the height of the pattern: "); Test Case 1: Enter the height of the pattern : 3 height = 8 Write a program to draw the following pattern based on the height given by the user. The user will always enter a positive number. height = 5 h = input ('Enter the height of the pattern: "); Test Case 1: Enter the height of the pattern : 3 height = 8
Expert Answer:
Answer rating: 100% (QA)
1 LD C JS 8 mainpy 1 h 1123 2 3 for i in range1 h 1 4 if i 2 1 5 For odd rows print ast... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Within the last year, Mr. Mueller has been fired by three different employers because they each discovered that he was stealing money or materials from their companies. Although he feels no remorse...
-
When you were doing the Ideathon, the group work planning assignment cited the different kinds of skills employers want from college graduates. What skills would apply to the activities of the...
-
Suppose that instead of wealth, the consumer starts with a bundle of goods z (not necessarily her optimal bundle), and can buy and sell goods at prices p. Suppose that all the goods are regular....
-
Use a calculator to express each number in Problems 39 and 40 as a decimal to the capacity of your calculator. Observe the repeating decimal representation of the rational numbers and the non...
-
Use the matrix and initial probability vector in Problem 12 and find the resulting ninth probability vector. 0.8 0.1 0.1 D = 0.2 0.6 0.2 0.4 0.3 0.3
-
MCI WorldCom, Inc. (later MCI), was known as a high-flying company, having had its roots in a small local company and rising to one of the worlds largest communications giants. The companys...
-
What is IV&V and how is it applied?
-
Depoole Company manufactures industrial products and employs a calendar year for financial reporting purposes. Items (a) through (e) present several of Depooles transactions during 2009. The total of...
-
calculate Interest Coverage (EBIT/ Interest expense) with the given information Net revenue Cost of goods sold Gross profit Operating expenses February 27, February 28, Note 2022 2021 17,20 $ 1,18...
-
Manitoba Exporters Inc. (MEI) sells Inuit carvings to countries throughout the world. On December 1, Year 5, MEI sold 10,000 carvings to a wholesaler in a foreign country at a total cost of 600,000...
-
Company B makes four components W, X, Y and Z for which costs in the forthcoming year are expected to be as follows: Production (units) Unit Marginal Costs: Direct Materials Direct Labour Variable...
-
One end of a 9. 00-m wire vibrates sinusoidally, creating a wave that travels in the positive \(x\) direction. The wave has a frequency of \(60.0 \mathrm{~Hz}\), a wavelength of \(3.00 \mathrm{~m}\),...
-
A square loop of wire \(1.00 \mathrm{~m}\) on a side is at rest and has a linear charge density of zero in the Earth reference frame. The loop lies in the \(x y\) plane of an \(x y z\) coordinate...
-
When you unplug a coffee maker that plugs into the utility outlet of your car, you notice a spark. Worried that the coffee maker might be broken, you take it apart and find that the heating element...
-
A uniform magnetic field exists in a cubic volume of space with a \(50-\mathrm{mm}\) side length. If the magnetic energy stored in this volume is \(12 \mathrm{~J}\), what is the magnetic field...
-
Graph the relative frequency. Use the following information to answer question. Suppose Weight Watchers has collected the following weight loss data, in pounds, for 30 of its clients. 15, 20, 10, 6,...
-
You plan to travel approximately 1824 miles from Tampa to Colorado Springs. How many miles per day do you need to travel to reach Colorado Springs in 3 days?
-
Calculate Total Contribution Margin for the same items. Total Revenue Total Variable Costs Total Contribution Margin $50.00 a. $116.00 $329.70 b. $275.00 $14,796.00 $7,440.00 c. $40,931.25 d....
-
a. Wilson filed his individual tax return on the original due date, but failed to pay $700 in taxes that were due with the return. If Wilson pays the taxes exactly 2 months late, calculate the amount...
-
Karim Depak received a Form 1099-B showing the following stock transactions and basis during 2012: None of the stock is qualified small business stock. Calculate Karim's net capital gain or loss...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-7. Ivan sold the following securities during the year and received a Form 1099-B that...
-
What is meant by the term "active listening"?
-
What does the term "unauthorized practice of law" mean, and how does it limit your relationship with a client?
-
Why is it important to pay attention to cultural differences when interviewing a client?
Study smarter with the SolutionInn App