C++ program   This assignment is about array operations. Create an array with 1000 items and fill it with random numbers from the range of -100, 100 (including -100 and 100). Then, your program asks user to enter a number. The program keeps running until user enters a out-of-range (-100,100) number. An example run is given below. Enter a number: -4Frequency of -4: 54Enter a number: 4Frequency of 4: 15Enter a number: 35Frequency of 35: 8Enter a number: 43Frequency of 43: 2Enter a number: 101Bye...

Question

C++ program

 

This assignment is about array operations.

Create an array with 1000 items and fill it with random numbers from the range of -100, 100 (including -100 and 100). Then, your program asks user to enter a number. The program keeps running until user enters a out-of-range (-100,100) number. An example run is given below.

Enter a number: -4
Frequency of -4: 54

Enter a number: 4
Frequency of 4: 15

Enter a number: 35
Frequency of 35: 8

Enter a number: 43
Frequency of 43: 2

Enter a number: 101
Bye...

Expert Answer

Want to see the step-by-step answer?

See Answer

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

See Answer
*Response times vary by subject and question complexity. Median response time is 34 minutes and may be longer for new subjects.
Tagged in
EngineeringComputer Science

Programing Language

Related Computer Science Q&A

Find answers to questions asked by student like you

Q: Create a class of type student .Members will include: name, gpa, rank (year) Make sure all data is p...

A: The name of the class is Student.All data is a private member of the class.All function is a public ...

Q: 3) Write friend function for the following class to overload the << and >> operators. Th...

A: Create a class called Math.Declare the prototype of the input friend function with input stream(istr...

Q: The code you will need for this assignment is here (in C file)   /* YOUR NAME HERE* CSCI 4100* Progr...

A: C shell is a type of command processor which enables user to write and modify commands .It can also ...

Q: Prompt the user for the year they were born// b. Declare a constant for the current year.// c. Calcu...

A: Writing a coding window:To prompt the user to enter the birth year.To declare a constant for current...

Q: Please explain how you solve the follwing problem:

A: The context free grammar is given below. To convert it into Chomsky normal form, some rules must be ...

Q: In C++ I need to compose a function that accepts an array of integer values as an argument and retur...

A: Program Instructions:Pass array to the function getSum().Use the reference of the array to get the s...

Q: Please explain how you solve the follwing problem:

A: Since you have posted multiple questions and have not specified which question needs to be solved, w...

Q: in python 2.2Write a program that prompts the user for two inputs: the unit cost of an item and the ...

A: round() function is used to round the number.Syntax of round function:round(number [, ndigit])number...

Q: Vectors Write three statements to print the first three elements of vector runTimes. Follow each wit...

A: Program DescriptionThe program prompts the user to input 5 numbers to populate the vectorIt tests th...