Computers and Technology

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:

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 00:40, QueenKy6050
Consider the following statements: struct nametype{string first; string last; }; struct coursetype{string name; int callnum; int credits; char grade; }; struct studenttype{nametype name; double gpa; coursetype course; }; studenttype student; studenttype classlist[100]; coursetype course; nametype name; mark the following statements as valid or invalid. if a statement is invalid, explain why. a.) student. course. callnum = "csc230"; b.) cin > > student. name; c.) classlist[0] = name; d.) classlist[1].gpa = 3.45; e.) name = classlist[15].name; f.) student. name = name; g.) cout < < classlist[10] < < endl; h.) for (int j = 0; j < 100; j++)classlist[j].name = name; i.) classlist. course. credits = 3; j.) course = studenttype. course;
Answers: 1
image
Computers and Technology, 24.06.2019 00:40, dheydar3506
What is the error in the following pseudocode? module main() call raisetopower(2, 1.5) end module module raisetopower(real value, integer power) declare real result set result = value^power display result end module
Answers: 1
image
Computers and Technology, 24.06.2019 09:50, potatocow
Self contained sequences of actions to be performed are? a. expressions b. algorithms c. functions d. formulas
Answers: 1
image
Computers and Technology, 24.06.2019 17:40, michaelandtammytrice
Create a file called favorite_foods, and list your favorite foods, entering five or six or more. press enter after each favorite food so it appears on its own line (make certain you also press enter after the final food item). after the file is created, add two more foods you like that are not on the list (press enter after the final food item). view the list of foods to make certain the two items you added appear at the end of the list
Answers: 2
Do you know the correct answer?
7.7 lab: warm up: drawing a right triangle this program will output a right triangle based on user...

Questions in other subjects:

Konu
Mathematics, 09.07.2019 18:00