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
kondaur [170]
4 years ago
9

This program will output a right triangle based on user specified height 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)
Computers and Technology
1 answer:
Arturiano [62]4 years ago
4 0

Answer:

See explaination

Explanation:

triangle_char = input('Enter a character:\n')

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

print('')

for i in range(triangle_height):

for j in range(i+1):

print(triangle_char, end = " ")

print()

You might be interested in
write a pay-raise program that requests a person's first name, last name, and current annual salary, and then displays the perso
belka [17]

Without more information for what the programming language is I cannot give a full answer, so I listed a potential method for calculating salary.

To calculate the salary (Java):

public static double getSalary(double salary) {

   if (salary < 40000) {

        return salary + (salary * 0.05);

   }

   return 2000 + ((0.02 * salary) + salary);

}

To calculate the salary (VB .Net):

Function getSalary(ByVal salary As Double) As Double

   If salary < 40000 Then

       salary = salary + (salary * 0.05)

   Else

       salary = 2000 + ((0.02 * salary) + salary)

   End If

   Return salary

End Function

7 0
3 years ago
Fear and superstition were swept away as scientists began to understand natural phenomena, leading to a shift in content for gra
Hitman42 [59]

Answer:

Calendarium

Explanation:

Fear and superstition were swept away as scientists began to understand natural phenomena, leading to a shift in content for graphic design. In Erhard Ratdolt's Calendarium, sixty diagrams printed in black and yellow were used to scientifically explain solar and lunar eclipses. The understanding of eclipses moved from black magic to predictable fact, and the book contains a three-part mathematical wheel for calculating solar cycles.

3 0
3 years ago
Joshe is a project leader in Tiran technologies. 75 developers and analysts work under his supervision on several projects. Thes
Ivahew [28]

Answer:

Option (b) Presence Information.

Explanation:

Presence Information as the name suggests it includes the report of the employees present in the office at the moment. So, option (b) Presence Information  is the best option available for Joshe as a Project Leader to keep track of the developers and analysts about their presence in the office. This can also be used weather the employees are busy, available or in a meeting or out of office and their availability on working on the project. Option (a) Desktop Sharing doesn't solves the purpose as different employee can share the desktop of a different employee. Option (c) Web Conferencing is not a correct option as it doesn't solves the purpose. Option (d) instant messaging doesn't solves the purpose as if they are busy in a project they might not be able to message instantly and it might be understood as Out Of Office and its not correct option available.  

3 0
3 years ago
1. Import it into Eclipse. Open the file in Eclipse 2. Edit the file to add comments to identify the instance variables, constru
natita [175]

Answer:

/

Explanation:

3 0
3 years ago
A local firewall adds protection to a hardware firewall by protecting a device _______. Select all that apply. WILL GIVE BRAINLI
Dmitry_Shevchenko [17]
Answer is c. have a good day
6 0
3 years ago
Read 2 more answers
Other questions:
  • Local television news networks cover only
    8·2 answers
  • Which resource do programmers sometimes have to refer to and use during planning the logical steps of the solution?
    10·2 answers
  • __________ has the highest conviction rate of any vehicle-related offense.
    11·1 answer
  • Who designed analatic engine in the 1930's?​
    10·1 answer
  • Which of the following protocols help IP in multicast service?
    9·2 answers
  • By what other name can the folders in Windows 7 be called?
    5·1 answer
  • . Aisha’s supervisor asks her to create an aspect of a program that will hold data and make it easy to access. What does Aisha n
    5·1 answer
  • The number of binary digits required to count 10010 is called _________​
    10·1 answer
  • The different languages that follow specific RULES. These languages use commands
    9·1 answer
  • Pictures in the _____ gallery give the appearance of a physical object, such as water drops or sand, that can give your presenta
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!