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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:10
Ihave a music player on my phone. i can buy songs, add them to playlists and play them. obviously it would be redundant to store each song in each playlist; each playlist is just a list of pointers to the songs. for this lab you will simulate this behavior. your program will need to have options to: add songs to the system library (you will store the text of the first line of the song, rather than the audio) add playlists add songs to a playlist list playlists play a playlist list all of the songs in the library with a count of how many times each song has been played remove a song from a playlist remove a playlist remove a song from the library (and thus from all playlists that contain it) note that we will not be checking many error cases. in real programming this would be bad, you should usually try to recognize and respond to as many types of errors as you can. in the context of class we are trying to acquaint you with as many concepts as possible, so for the sake of educational efficiency we will not be checking most errors in this lab, you may assume that your user provides correct input. you may add all appropriate error testing if you wish, but we will not be testing for it.
Answers: 2
question
Computers and Technology, 22.06.2019 09:50
17. implement the jvm dload instruction for the mic-2. it has a 1-byte index and pushes the local variable at this position onto the stack. then it pushes the next higher word onto the stack as well
Answers: 2
question
Computers and Technology, 23.06.2019 12:30
What is the difference between the internet and the world wide web?
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Guys do you know sh27 cause he hacked me : ( pidgegunderson my old user
Answers: 2
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
question
Arts, 28.03.2020 02:18