Question: IN C# Create a program which will create a class called Teacher. Each teacher has a name, age, height and weight. These variables should be
IN C#
Create a program which will create a class called Teacher. Each teacher 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 teachers. Input the data for the 5 teachers from a text file which already has information in it. Name the File "teachinfo.txt". 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). You should use Bubble Sort. Use of Array.Sort or any other sort will result in a zero..
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
