1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Vedmedyk [2.9K]
3 years ago
10

3.17 (LAB) Ch 5 Warm up: Drawing a right triangle (Python 3) This program will output a right triangle based on user specified h

eight triangle_height and symbol triangle_char. (1) The given program outputs a fixed-height triangle using a * character. Modify the given program to output a right triangle that instead uses the user-specified triangle_char character. (1 pt) (2) Modify the program to use a loop to output a right triangle of height triangle_height. The first line will have one user-specified character, such as % or *. Each subsequent line will have one additional user-specified character until the number in the triangle's base reaches triangle_height. Output a space after each user-specified character, including a line's last user-specified character. (2 pts) Example output for triangle_char = % and triangle_height = 5: Enter a character: % Enter triangle height: 5 % % % % % % % % % % % % % % %
Computers and Technology
1 answer:
andre [41]3 years ago
3 0

Answer:

Find answers below

Explanation:

triangle_char = input('Enter a character: ')

triangle_height = int(input('Enter triangle height: '))

print('')

for j in range (triangle_height):

   print((triangle_char) * (j + 1))

#below are sample output that can be gotten with predefined values

$ ./triangles.py  

Enter characters: jk

Enter height: 8

j

jj

jjj

jjjj

jjjjj

jjjjjj

jjjjjjj

jjjjjjjj

k

kk

kkk

kkkk

kkkkk

kkkkkk

kkkkkkk

kkkkkkkk

You might be interested in
A(n) _______ is a distributed networking architecture, residing on one or more computers, where one program requests a resource
vova2212 [387]

Answer: Client-Server model

Explanation:

The Client-server model is a distributed network application configuration, that partitions task or where one program requests a resource or service from another program, between the providers of a resource or service, called servers, and service requesters called clients. In the client-server architecture, when the client computer sends a request for data to the server through the internet, the server accepts the requested process and deliver the data packets requested back to the client.

4 0
3 years ago
Communication between a computer and a keyboard involves ______________ transmission.
4vir4ik [10]

Answer:

Simplex transmission

Explanation:

Communication between computer and keyboard involves which transmission? Answer: Simplex transmission requires communicating between a computer and a keyboard. The simple transmission & communication channel allows data from only one direction.

8 0
2 years ago
If you were at the front of a long line of people, stepped onto a chair and took a
WINSTONCH [101]
They are closer to the people and they work than a senior management
7 0
3 years ago
Don is creating a very long document, and he would like to create an introductory page that contains the title of the document a
prohojiy [21]

Answer:

The answer is "Title page".

Explanation:

Don uses the title page to create it's designed because this page contains basic information like names, dates, titles, and the names of the author.  On this heading tab, it does not have a paper summary, and wrong choices can be described as follows:

  • The Blank Page is the wrong choice because it doesn't contain any layout.
  • The Bibliography is also a wrong choice because it describes the source of the information.
  • The Cover Page is also a wrong choice because it is also known as the main page it describes the name, the title of the document but it can't contain the date.  
8 0
3 years ago
Read 2 more answers
A/an ________________ is a type of java class that runs on a server and does the processing for the dynamic web pages of a web a
Nataly [62]

Answer:

The answer to this question is "Servlet".

Explanation:

In the above question, the correct answer is servlet because In java a set of pages that are generated by the response of the user is required the web application. In java programming language we did the backed coding like (Desktop GUI Applications, Embedded Systems, Web Applications, Web Server and Applications Server).

3 0
3 years ago
Other questions:
  • Which word most likely means "a timepiece fitted with a recording device that marks down exact intervals of time"? chronograph c
    9·2 answers
  • "Create a Python program named detect_column_level_data_entry_errors. When complete, you will run this program to produce a diag
    11·1 answer
  • Explain the term DNS(Domain Name System) and why it is used.
    9·1 answer
  • Karen is learning about searching the Internet and collaborating with other people online. ​ ​ Karen has found and removed all W
    7·1 answer
  • A DBMS makes the: a. relational database available for different analytical views. b. physical database available for different
    12·1 answer
  • Which platform is the best? (X-box, PC, Playstation, Nintendo Switch, Wii)
    10·1 answer
  • A vital step in maintaining an operating system is to regularly do what? Replace the hard drive. Organize the computer’s data. R
    11·2 answers
  • From a database point of view, the collection of data becomes meaningful only when it reflect
    8·1 answer
  • What’s your tiktok? if u have one
    10·2 answers
  • To input lenth in meter and convert in to centimeter​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!