Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Done Week 4 #67

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

farisafiqnex
Copy link

No description provided.

public int MathScore { get; set; }
public int EnglishScore { get; set; }
public int ProgrammingScore { get; set; }
public int TotalScore => MathScore + EnglishScore + ProgrammingScore; //add all scores

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally we add a comment above the target code, and need a space between // and string.

{
var students = new List<Student>(); //declare student list

using (var StudentData = new StreamReader("Student.csv")) //read csv file

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to create different files for different classes, and define separate functions, then call these function from main.

@farisafiqnex
Copy link
Author

Alright, will refine my code and repush the updated one. Thank you for the comments and suggestions 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants