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]
3 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]3 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
Find the maker(s) of the PC(s) with the fastest processor among all the PCs that have the smallest amount of RAM.
aleksley [76]

Answer:

the makers of PC is Charles's babbage.analog is has small amount of ram

3 0
2 years ago
A website can contain a web form to collect registration details of a member who sign up to the website.
Vaselesa [24]

Answer

What you are needing here is a Point of entry system for website.

You can do this with Wordpress - where users can register to access. They sign up using wordpress and it's many plug ins.

They would have to choose a email and password to register and that would give them requirements to log back in.

WIth a password to their email you would be able to tell exactly how many times the came in and out of the website.  

Explanation:

5 0
3 years ago
Susan's monthly goal to open five new customer
SSSSS [86.1K]

Answer:

2. Measurable Goal

Explanation:

If she works hard, she can open 5 more customer accounts in time. I tried my best to answer this question, hope it helps!

4 0
3 years ago
Write any five difference between second generation and fourth generation of computer<br><br>​
katrin [286]

Second Generation Computer

1.It was established in 1956-1964.

2.The main component is Transistor.

3.ex=CDC 3600

Fourth Generation Computer

1.It was established from 1917-2010

2.The main component is VLSI

3.ex=Star 1000.

If you refer to Computer Book then you will be getting more information please Generation of Computer.

8 0
2 years ago
Write a program that projects sales goals for a salesperson for the next several years.The user should be prompted for a first y
iragen [17]

Answer:

// program in C++.

#include <iostream>

using namespace std;

// main function

int main() {

// variables

int y, count=1;

double s_amt;

// interest rate

const double rate = 0.08 ;

// ask to enter first year amount

cout << "Enter the first year's sale amount: ";

// read amount

cin >> s_amt;

// ask to enter years

cout << "Enter the number of years to project the goals: ";

// read years

cin >> y;

// find goal amount of each years

do{

// print year and goal for that year

cout <<"Goal for year "<<count<<" is "<<s_amt<<endl;

// increase the count

count +=1;

// find new Goal amount

s_amt += s_amt*rate;

} while(count <= y);

  return 0;

}

Explanation:

Read the first years sale amount from user and assign it to variable "s_amt". Read the years from user and assign it to variable "y".Initialize interest rate "i=0.08".Then with the help of do while loop find goal amount of each year.

Output:

Enter the first year's sale amount: 25000                                                                                  

Enter the number of years to project the goals: 4                                                                          

Goal for year 1 is 25000                                                                                                  

Goal for year 2 is 27000                                                                                                  

Goal for year 3 is 29160                                                                                                  

Goal for year 4 is 31492.8

5 0
3 years ago
Other questions:
  • The columns of a spreadsheet data source are A. form letters. B. the mailing list. C. data points. D. fields.
    12·1 answer
  • Which form of investigation aims at checking whether or not a target system is subject to attack based on a database of tests, s
    15·1 answer
  • Matt goes to an Internet café and tries to access his emails. The email client asks Matt to enter his email address along with t
    15·1 answer
  • (Python question)
    9·2 answers
  • What would you have to know about the pivot columns in an augmented matrix in order to know that the linear system is consistent
    13·1 answer
  • How does technology help teach twenty-first century skills?
    5·1 answer
  • Rapid va rog!!!!!!! Am 30 minute la dispozitie!! PLSSS !!!!!
    7·1 answer
  • You should move around and take a rest for 30 minutes every 5 minutes.<br><br>True Or False​
    9·1 answer
  • Three healthcare firms jointly own and share the same cloud resources to meet their computing needs. Which cloud model does this
    15·1 answer
  • In cell b12 create a formula using max f7nction to calculate maximum value in B4:B9
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!