Question: How i solve the two Q in c++? Quick please To analyze problems and write algorithms/programs. To use arrays. To use strings. - - Lab

How i solve the two Q in c++? Quick please  How i solve the two Q in c++? Quick please To

To analyze problems and write algorithms/programs. To use arrays. To use strings. - - Lab Exc. Mark Score 2 Exercise#1: Random Numbers Write a program that generates and prints n random numbers in the range (15, 2131 inclusive. The program then reads a number in the range [15, 213] and checks whether that number is one of the generated numbers or not. Print 7 numbers per line, see sample input/output. Sample Input/Output: Enter hou many numbers:20 The 20 generated numbers are 141 39 48 194 73 69 67 89 188 112 82 183 106 128 31 174 34 189 Enter a number in the range [15, 213]: 73 73 is one of the generated numbers Exercise#2: C-string Write a program that prompts the user to enter a line of text. The program counts and prints h many times is appeared in the text. Sample input /output: nter a line of text This is test to count s appeard 3 times in This is test to count is

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!