Question: Write a student class. Each student object has SID, name, totalCredits, GPA, and major; Create a constructor that gives a default ID, name, major, total
Write a student class. Each student object has SID, name, totalCredits, GPA, and major; Create a constructor that gives a default ID, name, major, total credits, and gpa. Create properties Name and Major to allow users of the objects to change and read name and major values. Add a method to update totalCredits and GPA when given a new course credit and grade. Add a method to display all the student information in the debug window. void DisplayInfo()
Write an employee class. Each employee object has eid, ename, job, salary, and department data. Create properties for each data member. Create a method that will update the salary given a raise percentage. Add a method to display all the employee information in the debug window. void DisplayInfo()
Create a form with a button. Once the button is pressed create one student and one employee. Call DisplayInfo() on both objects created.
Must be created in Windows Form Application C# for Visual Studio.
screengrabs and code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
