Hello therei I am a robot that was made to read and analyze numbers of all sorts. Ive been doing simple operations for a while now and I think Im ready to handle more difficult ones. I want you to program me to be able to analyze an array of integers and a value of x and y, that for each element in the array, I woud print YES if the integer is within bounds of the given x and y (inclusive) and NO if the integer isn't. a Pun Tests Test Cases O Test Case 1 Your Output Input No Output 1. Size of the array Expected Output 2. Values of the elements in the array 3. Value of x and y Enter the size of the array: 4 Element 1: 2421 Output Element 2 3245 Element 3: 1324 The first line wil contain a message prompt to input the size of the array. The succeeding lines will contain prompts to input the elements of the array. Element 4: 2443 Enter x and y: 2000 3000 Element 1- YES The next line after that contains the value of x and y. The succeeding lines contain either "YES" or "NO". Element 2- NO Element 3- NO Element 4- YES Enter the size of the array 4 Element 1: 2421 Element 2I 3245 Element 3: 1324 Element 4: 244 O Test Case 2 Enter x and y: 2000 3o00 O Test Case 3 Element 1 YES Element 2- NO Element - NO Element 4- YES O Test Cen .
Hello therei I am a robot that was made to read and analyze numbers of all sorts. Ive been doing simple operations for a while now and I think Im ready to handle more difficult ones. I want you to program me to be able to analyze an array of integers and a value of x and y, that for each element in the array, I woud print YES if the integer is within bounds of the given x and y (inclusive) and NO if the integer isn't. a Pun Tests Test Cases O Test Case 1 Your Output Input No Output 1. Size of the array Expected Output 2. Values of the elements in the array 3. Value of x and y Enter the size of the array: 4 Element 1: 2421 Output Element 2 3245 Element 3: 1324 The first line wil contain a message prompt to input the size of the array. The succeeding lines will contain prompts to input the elements of the array. Element 4: 2443 Enter x and y: 2000 3000 Element 1- YES The next line after that contains the value of x and y. The succeeding lines contain either "YES" or "NO". Element 2- NO Element 3- NO Element 4- YES Enter the size of the array 4 Element 1: 2421 Element 2I 3245 Element 3: 1324 Element 4: 244 O Test Case 2 Enter x and y: 2000 3o00 O Test Case 3 Element 1 YES Element 2- NO Element - NO Element 4- YES O Test Cen .
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
In Between
Code in C language

Transcribed Image Text:main.c
Hello there! I am a robot that was made to read and
analyze numbers of all sorts. I've been doing simple
operations for a while now and I think I'm ready to handle
more difficult ones. I want you to program me to be able to
analyze an array of integers and a value of x and y, that for
each element in the array, I would print YES if the integer is
within bounds of the given x and y (inclusive) and NO if the
integer isn't.
CE Run Tests
Test Cases
O Test Case 1
Your Output
Input
No Output
1. Size of the array
Expected Output
2. Values of the elements in the array
3. Value of x and y
Enter the size of the array: 4
Element #1: 2421
Output
Element #2: 3245
Element #3: 1324
The first line will contain a message prompt to input the
size of the array.
Element #4: 2443
Enter x and y: 2000 3000
The succeeding lines will contain prompts to input the
elements of the array.
The next line after that contains the value of x and y.
Element #1 = YES
Element #2 = NO
The succeeding lines contain either "YES" or "NO".
Element #3 = NO
Element #4 = YES
Enter the size of the array: 4
Element #1: 2421
Element #2: 3245
Element #3: 1324
O Test Case 2
Element #4: 2443
Enter x and y: 2000 3000
Element #1 = YES
O Test Case 3
Element #2-= NO
Element #3 = NO
Element #4 = YES
O Test Case /
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education