subject
Computers and Technology, 15.10.2019 02:00 bward04

Write a method padstring that accepts two parameters: a string and an integer representing a length. the method should pad the parameter string with spaces until its length is the given length. for example, padstring("hello", 8) should return " hello". (this sort of method is useful when trying to print output that lines up horizontally.) if the string's length is already at least as long as the length parameter, your method should return the original string. for example, padstring("congratulations", 10) would return "congratulations".

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 19:30
You can apply several different worksheet themes from which tab?
Answers: 1
question
Computers and Technology, 24.06.2019 08:00
Java the manager of a football stadium wants you to write a program that calculates the total ticket sales after each game
Answers: 1
question
Computers and Technology, 24.06.2019 22:10
How many different ways are there to order the eight jobs in the queue so that job usu comes somewhere before cdp in the queue (although not necessarily immediately before) and cdp comes somewhere before bbd (again, not necessarily immediately before)?
Answers: 1
question
Computers and Technology, 25.06.2019 02:30
On the pie chart below, which “slice” represents 30% of the budget?
Answers: 2
You know the right answer?
Write a method padstring that accepts two parameters: a string and an integer representing a length...
Questions
question
Physics, 05.05.2020 08:04
Questions on the website: 13722363