Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

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 image text in transcribed
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

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

More Books

Students also viewed these Databases questions

Question

2. Record these without judgments, criticisms, or comments.

Answered: 1 week ago