Write a C++ program (with two arrays) to:
1. Read the student number (integer type) and the test scores (decimal number) from the keyboard and store the data in two separate arrays (provide a method to end the input); --- Your arrays should be able to provide a size of at least 50.
2. display the student numbers and scores in a two column format;
3. Sort the arrays according to test scores;
4. display the student numbers and scores in a two column format again but this time the data has been sorted.
Sample output:
Enter student’s number:
1
Enter student’s test score:
89
Do you have more students? (y/n)
y
Enter student’s number:
2
Enter student’s test score:
95
Do you have more students? (y/n)
y
Enter student’s number:
3
Enter student’s test score:
76
Do you have more students? (y/n)
n
You entered:
1 89
2 95
3 76
The list sorted by test scores:
3 76
1 89
2 95