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, 22.06.2019 10:40
Nims is applicable to all stakeholders with incident related responsibilities. true or false
Answers: 1
question
Computers and Technology, 22.06.2019 22:50
Which is the best minecraft server? a. mineplex b. worldonecraft c. 9b9t d. 2b2t
Answers: 2
question
Computers and Technology, 24.06.2019 00:30
Setting up a home network using wireless connections is creating a a. vpn b. lan c. wan d. mini-internet
Answers: 2
question
Computers and Technology, 24.06.2019 11:00
These statements describe lists in presentation programs: a. bullets can be turned off and on. b. bullets cannot be turned off. c. bullet styles, colors, and sizes can be changed. d. lists don't have to use bullets or numbers. e. numbering styles, colors, and sizes can be changed. f. numbers can be turned off and on. g. numbers cannot be turned off. select all that apply
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
Advanced Placement (AP), 26.10.2021 01:30