Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started