Question: USING VISUAL STUDIO PLEASE PROVIDE THE CODE IN C# LANGUAGE. IT MUST BE A CONSOLE APPLICATION! You are to write a program which will create
USING VISUAL STUDIO PLEASE PROVIDE THE CODE IN C# LANGUAGE. IT MUST BE A CONSOLE APPLICATION!
You are to write a program which will create a class called Student.
Each student has a name, age, height and weight. These variables should be declared as private. Create the correct constructors accessors and functions.
In the main, you will create 5 students. You can either have the user input the data for the 5 students or have a file which already has information in it.
After setting up all the data, it is time to sort based on the user input. 1 to sort by name, 2 to sort by age, 3 to sort by height and 4 to sort by weight. (create a function for each one).
Display the data neatly on the screen.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
