Generate Random Numbers and Assign to Days of Week
Can anyone help me with my assign...I need to create a C++ program that will generate 7 random numbers and will assign each number to a day of week...Example...
The random numbers are 89, 50, 90, 23, 10, 6, 19. The program must assign 89 to Monday, 50 to Tuesday and so on..then the program must arrange the numbers in descending order together with the day. Thanks...please help.
So far I'm ok with generating the numbers, I am just having problems on how to assign the days of week to the numbers...
Here's what I've done so far ,
I need the part that will assign these numbers to the number of days...thanks
for (i=0; i<LIMIT; i++)
NbrCars[i]=rand() % 101;