Home C#.net Student Grade Calculation using C#.net

# Student Grade Calculation using C#.net

1 min read
0
2,702

This tutorial will teach how to make a  Student Grade Calculation in C#.net. Input the studentname and avg marks to calcuate the grade.

if the average is > 75 – A

if the average is > 65 – B

if the average is > 55 – C

if the average is > 45 – S

if the average is < 45 – F

## Paste the inside the Calc Button

```
double maths, science, english, tot, avg;
string grade;

maths = double.Parse(txtMaths.Text);
science = double.Parse(txtSci.Text);
english = double.Parse(txtEng.Text);

tot = maths + science + english;

txtTot.Text = tot.ToString();

avg = tot / 3;

txtAvg.Text = avg.ToString();

&nbsp;

if(avg >= 75)
{
grade = "A";
}
else if (avg >= 65)
{
grade = "B";
}
else if (avg >= 55)
{
grade = "C";
}
else if (avg >= 45)
{
grade = "S";
}
else
{
grade = "F";
}

txtGrade.Text = grade;

```

• ### Registration form using C#.net and Sqlserver

This tutorial will teach you c#.net employee registration form with datagridview validatio…
• ### Times table in C#.net

In this tutorials will  teach you how to make a times table in C#.net step by step. T…
• ### Book Inverntory Mangement System using C#.net Mysql

This tutorial will teach you how to make the Book inventory Mangement System Project step …
Load More Related Articles
• ### Laravel 11 CRUD Application

In this tutorial will teach Laravel 11 CRUD Application step by step. Laravel  11 CRU…
• ### How to make a Times Table in React

in this tutorials we will be talk about how to make a times table in react. This is the co…
• ### Laravel Tutorial: How to Add Numbers Easily Laravel 10

In this tutorials will teach How to add two numbers in Laravel 10. …
Load More By admin
• ### Currency Converter App WPF in C#.NET

This tutorial will teach how to make a Currency Converter in WPF C#.net. …
• ### Student Marks Calculation WPF in C#.NET

This tutorial will teach how to make a  Student Grade Calculation in WPF C#.net appli…
• ### Simple Calculator WPF in C#.Net

In this tutorial will teach how to make a calculator WPF simple design using c# step by st…
Load More In C#.net

## Laravel 11 CRUD Application

In this tutorial will teach Laravel 11 CRUD Application step by step. Laravel  11 CRUD App…