Write a program and fill a queue with random numbers between 0 and 100. The size of the
queue is assumed to be 15. After filling the array with random numbers, display the elements
in the queue and remove the elements of the queue and store these numbers according to the
following criteria.

Recommended Answers

All 3 Replies

Generating random numbers is a common question here. Try searching the forum.

i tried but my problem is about randoms in queue

>i tried but my problem is about randoms in queue
You have two problems:

  1. Writing a queue
  2. Generating random numbers in a specified range

Solve them separately. Conveniently enough, searching the forum for either (but not both) of those problems will give you previously asked questions that you can use to complete your homework.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.