Question: c++ Write a program (use functions of your choosing) that fills an array with 10 random numbers between 0 and 100 (Including 100) and prints

c++

Write a program (use functions of your choosing) that fills an array with 10 random numbers between 0 and 100 (Including 100) and prints it. Then the array of numbers will be sorted in such a way that initially only even numbers are sorted from small to large, and then odd numbers are sorted from small to large. The program then will print the sorted array.

example :

The array before sort: 99,44,5,20,33,12,11,7,61,30

The array after sort: 12,20,30,44,5,7,11,33,61,99

for the kind helper - please try to write as simple as you can so i can understand the code (beginner course). thank you!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!