Write a program that inputs the names of students of a class and displays them in ascending and descending order.
Write a program that inputs the names of students of a class and display them in ascending and descending order. So let’s Write Code: Let’s build logic First: Algorithm for code: Step 1: Start Step 2: Declare 2D array. Step 3: Take inputs from user. Step 4: Defining function for ascending order. Step 5: Defining…