Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Language needs to be in C++ link to input file: https://learn-us-east-1-prod-fleet01-xythos.s3.us-east-1.amazonaws.com/5b5739b6d55fd/3835305?response-content-disposition=inline%3B%20filename%2A%3DUTF-8%27%27input.txt&response-content-type=text%2Fplain&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20190309T193720Z&X-Amz-SignedHeaders=host&X-Amz-Expires=21600&X-Amz-Credential=AKIAIBGJ7RCS23L3LEJQ%2F20190309%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=7f23ba3d6009b98b9127855c08d7c1fceb43fd502393866c118e778add7c820a Construct an array of 1000 random integers within range [0, 100] An input file

image text in transcribed

Language needs to be in C++

link to input file: https://learn-us-east-1-prod-fleet01-xythos.s3.us-east-1.amazonaws.com/5b5739b6d55fd/3835305?response-content-disposition=inline%3B%20filename%2A%3DUTF-8%27%27input.txt&response-content-type=text%2Fplain&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20190309T193720Z&X-Amz-SignedHeaders=host&X-Amz-Expires=21600&X-Amz-Credential=AKIAIBGJ7RCS23L3LEJQ%2F20190309%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=7f23ba3d6009b98b9127855c08d7c1fceb43fd502393866c118e778add7c820a

Construct an array of 1000 random integers within range [0, 100] An input file input.txt is provide. Each line of input.txt is a query integer that you need to check how many of that number is in your random integer array. For each query integer, fork a new child proces:s to do the counting. The output is for each input query, output the count and child process id. For example: S>query: 13 count: 5 pid: 13342 S>query: 22 count: 3 pid: 13357

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

Step: 3

blur-text-image

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

The Database Experts Guide To SQL

Authors: Frank Lusardi

1st Edition

0070390029, 978-0070390027

More Books

Students also viewed these Databases questions

Question

What will you do or say to Anthony about this issue?

Answered: 1 week ago