Write a QBasic program to sort aphetically the number of student names, each
student name has first and last name like “Ahmed Yousef”. The program should
print the names before and after sorting. Also, the program should use “eod” as the
last record in the file. The program should consider the upper and lower case for the
names.
1. The first sorting should be based on the first name “Ahmed”. Note that, the first
names of two students may have the same first character and in this case, the sorting
should be considered based on the second character of the first names of two
students.
2. The second sorting should be based on the last name “Yousef”. Note that, the last
names of two students may have the same first character and in this case, the sorting
should be considered based on the second character of the last names of two students.
Answers
Answered by
4
Answer:
The first sorting should be based on the first name “Ahmed”. Note that, the first
names of two students may have the same first character and in this case, the sorting
should be considered based on the second character of the first names of two
students.
2. The second sorting should be based on the last name “Yousef”. Note that, the last
names of two students may have the same first character and in this case, the sorting
should be considered based on the second character of the last names of two students.
Similar questions