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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 00:30, angeline2004
At an open or uncontrolled intersection, yield if a. the cross road has more lanes than yours b. the cross road has fewer land than yours c. you’re on a state highway and the cross road is a secondary road d. do you have three or more passengers in your vehicle
Answers: 2
image
Computers and Technology, 24.06.2019 04:10, kris1920
Write a program that reads a set of floating-point values. ask the user to enter the values, then print • the average of the values. • the smallest of the values. • the largest of the values. • the range, that is the difference between the smallest and largest. of course, you may only prompt for the values once.
Answers: 3
image
Computers and Technology, 24.06.2019 04:30, littledudefromacross
Write and test a python program to find and print the largest number in a set of real (floating point) numbers. the program should first read a single positive integer number from the user, which will be how many numbers to read and search through. after reading in all of the numbers, the largest of the numbers input (not considering the count input) should be printed.
Answers: 1
image
Computers and Technology, 24.06.2019 05:30, lexie2751
How do i get rid of my member ship for
Answers: 2
You know the right answer?
Write a method padstring that accepts two parameters: a string and an integer representing a length...

Questions in other subjects:

Konu
Mathematics, 03.02.2021 03:20
Konu
Physics, 03.02.2021 03:20
Konu
Mathematics, 03.02.2021 03:20
Konu
Engineering, 03.02.2021 03:20