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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started