Question: 1. Use a random number generator, seeded with time, to generate three random numbers between I and 50 assigned to three different variables. Use a

 1. Use a random number generator, seeded with time, to generate

1. Use a random number generator, seeded with time, to generate three random numbers between I and 50 assigned to three different variables. Use a series of comparisons, determine the smallest value generated by the generator and use a pointer to an int to point to that value at the end of the program. Print the smallest number to the screen. 2. Write a single program that will use a nested for loop to create pattern 1 and pattern 2 shown below. In function main prompt the user for the height (number of rows) and width (number of characters per line) for the pattern to be created. You may use any number for height and width, just as long as the basic pattern is preserved. Before drawing pattern 1, ask the user to end a single value for the height and width of the triangle for pattern 2. (Note: the height and width for Pattern 2 should be the same value, so only one value should be requested from the user) For pattern 1, make use of an if structure inside a pair of nested loops to instruct the program what to print on the various lines and columns. The entire pattern can be made using equal signs), asterisks and spaces). For pattern 2, make use of an if structure inside a pair of nested loops to determine which character to print. The entire pattern can be made from spaces) and asterisks(). Pattern 1 Write C program Pattern 2: 20 2

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 Databases Questions!