Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program to determine which numbers in an array are inside a particular range.The limits of the range are inclusive. You have to write

Write a program to determine which numbers in an array are inside a particular range.The limits of the range are inclusive.

You have to write a complete "C" Program that compiles and runs in Codeblocks. (main.c)

1. Declare an array that can contain 10 integer numbers.Use as the name of the array your LastName (Perez).

2. Use a for loop to generate 10 random numbers between 1 and 100 and fill up the array using those numbers.

3. Ask the user for the lower limit of the range.

4. Ask the user for the upper limit of the range.

5. Use a for loop to check all the numbers in the array and print the numbers inside the range.

The following is an example of how your program should look when you execute it:

The numbers in the array are:

19790148194236799100

Enter the lower limit of the range: 90

Enter the upper limit of the range: 99

The numbers in the range are: 90, 94, 97, 99

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

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions