C Programming Make a program that will accept an integer and loop for the same number of times as that of the inputted integer and input random integers and add it to the array/list one by one, per line. Afterwards, make your program accept another random integer.   Using that final integer, compare from your array/list if the final integer's value is also present in your current array/list. If so, print "Present"; otherwise, print "None".     Start coding now! Input 1. Size of the array 2. Elements of the array 3. Integer to be searched   Output   The first line will contain a message prompt to input the size of the array. The succeeding lines will contain message prompts to input the elements of the array. The next line will contain a message prompt to input the integer to be searched. The last line contains the appropriate message.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

C Programming

Make a program that will accept an integer and loop for the same number of times as that of the inputted integer and input random integers and add it to the array/list one by one, per line. Afterwards, make your program accept another random integer.

 

Using that final integer, compare from your array/list if the final integer's value is also present in your current array/list. If so, print "Present"; otherwise, print "None".

 

 

Start coding now!

Input

1. Size of the array

2. Elements of the array

3. Integer to be searched

 

Output

 

The first line will contain a message prompt to input the size of the array. The succeeding lines will contain message prompts to input the elements of the array. The next line will contain a message prompt to input the integer to be searched. The last line contains the appropriate message.

+ Back to Home
Time Left: 6:05:58:41
Overall Score: 20/70
Current Rank: 1st
Layout: Side-by-Side
Save
main.c
Test Cases
Executions
3. Search and Rescue
by CodeChum Admin
E Run Tests
Make a program that will accept an
integer and loop for the same number of
times as that of the inputted integer and
input random integers and add it to the
array/list one by one, per line. Afterwards,
O Test Case 1
Your Output
make your program accept another
random integer.
No Output
Using that final integer, compare from
your array/list if the final integer's value is
also present in your current array/list. If
so, print "Present"; otherwise,
Expected Output
Enter the size: 5
print "None".
Element #1: 3
Element #2: 21
Start coding now!
Elenent #3: 2
Elenent #4: 5
Element #5: 23
Input
1. Size of the array
Enter the integer to be searched:
Present
2. Elements of the array
3. Integer to be searched
O Test Case 2
Score: 0/10
Activate Windows
erting
= Overview
3/7
Execute Code
H P Type here to search
28°C Light rain
A O 40 D ENG
N-VISION
PONERALITS
五
Transcribed Image Text:+ Back to Home Time Left: 6:05:58:41 Overall Score: 20/70 Current Rank: 1st Layout: Side-by-Side Save main.c Test Cases Executions 3. Search and Rescue by CodeChum Admin E Run Tests Make a program that will accept an integer and loop for the same number of times as that of the inputted integer and input random integers and add it to the array/list one by one, per line. Afterwards, O Test Case 1 Your Output make your program accept another random integer. No Output Using that final integer, compare from your array/list if the final integer's value is also present in your current array/list. If so, print "Present"; otherwise, Expected Output Enter the size: 5 print "None". Element #1: 3 Element #2: 21 Start coding now! Elenent #3: 2 Elenent #4: 5 Element #5: 23 Input 1. Size of the array Enter the integer to be searched: Present 2. Elements of the array 3. Integer to be searched O Test Case 2 Score: 0/10 Activate Windows erting = Overview 3/7 Execute Code H P Type here to search 28°C Light rain A O 40 D ENG N-VISION PONERALITS 五
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY