Question: Write a method named GetUserResponse to get a response of type string from the user. The method receives nothing through the parameter list. The method
Write a method named GetUserResponse to get a response of type string from the user. The method receives nothing through the parameter list. The method should then return the string entered by the user to the calling method.
b Write a method named RepeatPhrase that accepts a phrase and a number. The purpose of the method is to output the phrase however many times indicated. Show the entire method including the header. If the number that indicates the number of times the phrase should be printed is a nonpositive number, the program should print Invalid input
c Write a method named FillThatArray that will accept an array of type STRING and the size of the array through the parameter list. The method will then ask the user for their response for each element in the array. Once the job is done, the method should return to the calling method.
d Write a method named InitializeThatArray that will accept an array of type NUMERIC and an integer representing the size of the array. The method will initialize the array to It will return nothing to the calling method
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
