subject

Read the problem listed below. Formulate a Decomposition or Outline of the problem. Determine if you have seen this problem before and how it was solved. Start to write your Algorithm, making note of the inputs and outputs that will be required. Write your code, test and debug. Problem:
Create a program in Python that will draw a series of triangles. The program needs to ask the user for the number of triangles to draw and the size of the triangle.

The inputs for this program need to look like the following:

Enter the number of triangles:
Enter the size of the triangles:
Using these two inputs, your program will then draw a series of triangles in the size the user wishes.

For example if the user enters 3 triangles with a size of 5, the following will be the output:

*
**
***


*
**
***


*
**
***

The easiest way to solve this problem is with two loops. One loop draws the triangles and the other repeats the drawing.

When testing your program make sure you test with different sizes and different numbers of triangles as this will be how your code will be run by Codio.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Alcohol’s affects on the cornea and lens of the eye make it more difficult
Answers: 1
question
Computers and Technology, 24.06.2019 02:20
The first time a user launches the powerpoint program, which view is shown allowing the user to access recent presentations or create new presentations based on templates?
Answers: 1
You know the right answer?
Read the problem listed below. Formulate a Decomposition or Outline of the problem. Determine if you...
Questions
question
English, 11.06.2021 19:40
question
Social Studies, 11.06.2021 19:40
question
Mathematics, 11.06.2021 19:40
question
Spanish, 11.06.2021 19:40
question
Mathematics, 11.06.2021 19:40
question
History, 11.06.2021 19:40
question
Mathematics, 11.06.2021 19:40
Questions on the website: 13722361