this tutorial on java we are going to teach the advanced student grading system using following condition
Avg > 80 -> Distinction
Avg > 70 -> Credit
Avg > 60 -> Simple Pass
Other wise Fail
public class JavaEx {
public static void main(String args[])
{
String name ="John";
int maths = 100;
int science = 78;
int english = 68;
int tot = maths + science + english;
System.out.println(tot);
int avg = tot/3;
System.out.println(avg);
if(avg > 80)
{
System.out.println("Distinction");
}
else if(avg > 70)
{
System.out.println("Credit");
}
else if(avg > 60)
{
System.out.println("Credit");
}
else if(avg > 40)
{
System.out.println("Simple Pass");
}
else
{
System.out.println("Fail");
}
}
}
What Is the Tesla Pi Phone? Imagine if Tesla, the company that makes famous…
Inventory Management POS systems are now an essential part of modern businesses such as bookshops,…
If you're just beginning to learn Java GUI programming creating an Water System Calculator is a fantastic project for…
GitHub is a powerful tool used by teams and developers around the globe. This guide is…
It's like having a super-smart buddy that is always there to help you write stories,…
The UK is known for its rich history, diverse culture, and most of all its…