Computers and Technology

Assume the availability of a method named makeline that can be passed a non-negative integer n and a character c and return a string consisting of n identical characters that are all equal to c. write a method named printtriangle that receives two integer parameters n and k. if n is negative the method does nothing. if n happens to be an even number, its value is raised to the next odd number (e. g. 4--> 5). then, when k has the value zero, the method prints a symmetric triangle of o's (the capital letter o) as follows: first a line of n o, followed by a line of n-2 o's (indented by one space), and then a line of n-4 o's (indented by two spaces), and so on. for example, if the method received 5,0 (or 4,0) it would print:

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 08:00, jcastronakaya
Apex q: what does a low employment rate indicate? a. not many people are earning high salaries b. not many people are going to college c. not many people are renting their homes d. not many people have jobs
Answers: 2
image
Computers and Technology, 22.06.2019 22:30, studybug2306
Jason needs to learn a new web tool. he went through his books to understand more about it. now he wants hands-on experience with using that tool. what would him? jason can use websites where workspace is provided to test the results of your code.
Answers: 2
image
Computers and Technology, 23.06.2019 06:00, ashleyd198308
Respond to the following in three to five sentences. select the workplace skill, habit, or attitude described in this chapter that you believe is most important for being a successful employee.
Answers: 1
image
Computers and Technology, 23.06.2019 10:00, lamanihill
Now, open this passage to read about fafsa requirements. describe the information you will need to provide in order to complete a fafsa. list at least three of the required documents you must include.
Answers: 3
Do you know the correct answer?
Assume the availability of a method named makeline that can be passed a non-negative integer n and a...

Questions in other subjects: