subject

7.7 lab: warm up: drawing a right triangle this program will output a right triangle based on user specified height triangleheight and symbol trianglechar. (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 trianglechar character. (1 pt) (2) modify the program to use a nested loop to output a right triangle of height triangleheight. 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 triangleheight. output a space after each user-specified character, including after the line's last user-specified character. (2 pts) example output for trianglechar = % and triangleheight = 5:

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 17:30, arri05
What is force? what are the types of force ? explain all with suitable examples
Answers: 1
image
Computers and Technology, 23.06.2019 09:10, djs1671
(328 inc. 448 ind. 480 in25. john has a collection of toy cars. he has 2 red cars, 4 blue cars, 4 black cars, and 6 yellowcars. what is the ratio of red cars to yellow cars? a. 1: 2b. 1: 3c. 1: 626. the net of a right triangular prism is shown below.
Answers: 2
image
Computers and Technology, 23.06.2019 10:20, chonawilson4
Suppose there is a relation r(a, b, c) with a b+-tree index with search keys (a, b).1. what is the worst-case cost of finding records satisfying 10 < a < 50 using this index, in terms of the number of records n1, retrieved and the height h of the tree? 2. what is the worst-case cost of finding records satisfying 10 < a < 50 and 5 < b < 10 using this index, in terms of the number of records n2 that satisfy this selection, as well as n1 and h defined above? 3. under what conditions on n1 and n2, would the index be an efficient way of finding records satisfying the condition from part (2)?
Answers: 1
image
Computers and Technology, 23.06.2019 21:30, maddietomlinson113
Examine the list below. which factors positively affect lifetime income? check all that apply.
Answers: 1
You know the right answer?
7.7 lab: warm up: drawing a right triangle this program will output a right triangle based on user...

Questions in other subjects: