Home Java Student Grade Calculation using Java

# Student Grade Calculation using Java

0
358

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

if the average is > 85 – A

if the average is > 75 – B

if the average is > 65 – C

if the average is > 55 – S

if the average is < 45 – F ## Paste the inside the Calc Button

```        double maths,science,engish,tot,avg;

maths = Integer.parseInt(txtMaths.getText());
science = Integer.parseInt(txtSci.getText());
engish = Integer.parseInt(txtEng.getText());

tot = maths + science + engish;

avg = tot/3;

if(avg >= 85)
{

}
else if(avg >= 75)
{

}
else if(avg >= 65)
{

}
else if(avg >= 45)
{

}
else
{
}

lbltot.setText(String.valueOf(tot));
lblAvg.setText(String.valueOf(avg));

```

• ### BeerShop Inventory Management System using Java

This tutorial will teach you how to make a Beer Shop Inventory Management System in Java s…
• ### How to Add the Records using Java Mysql

This tutorial will teach you GUI Application in java step by step. How to create the Butto…
• ### Electricity Billing System Using Java

This tutorials will teach Electricity Billing System using Java and Mysql step by step pro…
Load More Related Articles
• ### Angular Spring boot API Bootstrap Table load

This Angular and Spring boot tutorial will teach you how to view the records using Restful…
• ### How to add two numbers in ReactJS

In this tutorials will teach How to add two numbers in ReactJS. …
• ### How to do the student mark calculation in Angular

In this tutorials will teach How to do the student mark calculation in Angular. First you …
• ### Array counting the 0 in Java

Create a 10 element integer array and store some integer values display as the counting of…
• ### DataInputStream using Java

in this tutorials you will be learning  DataInputStream using Java.input the integer numbe…
• ### Math Function using Java

Assume that we have to compute and print the square root of the number. [crayon-63395efaf3…
Load More In Java

## Angular Spring boot API Bootstrap Table load

This Angular and Spring boot tutorial will teach you how to view the records using Restful…