Question: 5 . Write a program that creates a void function to display a given message. Implement the code to test the function. a ) message

5. Write a program that creates a void function to display a given message. Implement the code to test the function. a) message(p1, p2) uses a loop to print the text stored in p1, p2 times to the console. b) Define a main() function to do the following: 1) Request and print an input text from the console and print the text. 2) Get a random integer number, n, in the range (1,10) and print n.3) Call message() function with arguments, text and n.4) Handle all input and output. c) Call main() function to initiate the tasks to be performed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!