. In a statistical study you want to know the de of university of the students of engineering with the
facilities offered by satisfaction A sample of 50 students marked the following answers Describe
the statistical variable and obtain the frequency distribution. Then present the grouped data in the
bar and pie charts. Finally, develop a brief commentary.
This Is my code so far for the student class Need help .pdf
1. #### This Is my code so far for the student class Need help with rest in C# will Upvote########
namespace Midterm_Challenge;
enum Status
{
Freshman,
Sophomore,
Junior,
Senior
}
class Student
{
private string firstName;
private string lastName;
private string major;
private int creditHours;
private int score1;
private int score2;
private int score3;
private Status classStatus;
public Student(string firstName, string lastName, string major, int creditHours, int score1, int
score2, int score3)
{
this.firstName = firstName;
this.lastName = lastName;
this.major = major;
this.creditHours = creditHours;
this.score1 = score1;
this.score2 = score2;
this.score3 = score3;
SetClassStatus();
}
public string FirstName
{
get { return firstName; }
set { firstName = value; }
}
public string LastName
{
get { return lastName; }
set { lastName = value; }
}
public string Major
2. {
get { return major; }
set { major = value; }
}
public int CreditHours
{
get { return creditHours; }
set
{
creditHours = value;
SetClassStatus();
}
}
private void SetClassStatus()
{
if (creditHours < 30)
{
classStatus = Status.Freshman;
}
else if (creditHours < 60)
{
classStatus = Status.Sophomore;
}
else if (creditHours < 90)
{
classStatus = Status.Junior;
}
else
{
classStatus = Status.Senior;
}
}
public void AddCreditHours(int amount)
{
creditHours += amount;
SetClassStatus();
}
public string GetFullName()
{
return $"{firstName} {lastName}";
}
public double CalculateAverageScore()
3. {
return (score1 + score2 + score3) / 3.0;
}
public char GetLetterGrade()
{
double averageScore = CalculateAverageScore();
if (averageScore >= 90)
{
return 'A';
}
else if (averageScore >= 80)
{
return 'B';
}
else if (averageScore >= 70)
{
return 'C';
}
else if (averageScore >= 60)
{
return 'D';
}
else
{
return 'F';
}
}
public void PrintStudentInfo()
{
Console.WriteLine($"{GetFullName()}: {classStatus} ({major})");
Console.WriteLine($"Average Score: {CalculateAverageScore()}% - Grade: {GetLetterGrade()}");
}
}
Purpose: This project will test your knowledge of many the topics we have covered so for in the
course; specifically OOP, file streams, loops, lists. Requirements: Project Name: MidtermProject
Target Platform: .NET Core Console Application Programming Language: C# Data File Download
the student data.csv file and place it in your C# program. The structure of the data in the file is as
follows: first name,last name,credit hours,major,exam1_score,exam2_score,exam3_score The
Student Class The Student class should be created in a file called Student.cs. constructor. Hint:
you will have to create a method that sets the classStatus based on credithours, so you can call
that method in the constructor. The Student class should also have methods that: - Get methods
for - Set methods for firstName, lastName, major. The Student class should also contain the
4. following methods: (25+10). Because an increase in credithours can result in a change
classStatus, this method should also then update the classStatus property. - Hint: You can call the
method that sets the classstatus from the method after you update the - A method that returns the
students full name "firstname lastname" as one string. - A method that calculates the student's
average score of their three scores - A method that returns the letter grade based on the average
(A: 90-100, B: 8089,C:7079, D: 60 - 69, F: less than 60) - Hint: you can call the method that gets
the average score from this method - A method that prints the student's information in the
following format - [Student name]: [student class][[major]) - Average Score: [student average]% --
Grade: [letter grade]Workng on the Project The best way to complete this challenge is to first
create the Student class, get it working, and test it. Your project should: - read the data from the
student csv file and create a new student for each student in the file. Here is a link to resources for
files handling in C# - Add all the students to a list of students. You can create a list of type
Student. Example code below - List < Student > myList = new List < Student >(); - Print each
student's information to the console. It should look like the following sample output but for all of the
students: - Tyler Rees: Senior(Instrumental Music) Average Score: 86.74%-- Grade: B Liam Lowe:
Sophomore(Journalism) Average Score: 78.16%-- Grade: C George Wright: Senior(Biology)
Average Score: 61.39%-- Grade: D Naomi Williams: Junior(Journalism) Average Score: 82.23%--
Grade: B - Write a report where you also write each student's information to a text file named You
can test your code with the following code in the Program.cs file. You should leave this code in
your project at the bottom of the Main method in your Program.cs file //Miderm Test Code Student
teststudent = new Student("Truman", "Tiger", 87, "Journa1ism", 91.2, 82.5, 93.4);
teststudent.printstudentinfo( ) teststudent. addHours (10); teststudent setFirstName("Tracy");
teststudent. setlastNane("Turtle"); teststudent. setMajor("Comunications");
teststudent.printstudentinfo( ); Test Code Output Truman Tiger: Junior(Journalism) Average
Score: 89.03%.. Grade: B Tracy Turtle: Senior(Comunications) Average Score: 89.03%-. Grade: B