Java

Student Grade Calculate using Java

this tutorial will teach you write the java program to calculate and display student grade system.i have written the simple example .
Input the Student name,marks for 3 subjects,calculate the avg,grade. In order to calculate the grade using following conditions.

if the average is greater than 50 awarded as “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 > 50)
        {
            System.out.println("Pass");
        }
        else
        {
            System.out.println("Fail");
        }
    }

}

 

 

admin

Recent Posts

Chat with Claude AI Free – Your Super-Smart AI Buddy

It's like having a super-smart buddy that is always there to help you write stories,…

4 days ago

Best Festivals UK 2025 [Free Guide Included]

The UK is known for its rich history, diverse culture, and most of all  its…

7 days ago

Bank Holidays 2025 UK – Plan Your Perfect Long Weekends

Do you have a plan for your next holiday? Being aware of the Bank Holidays within the…

7 days ago

Master Cursor AI Full Guide for Students & Creators

The world is rapidly changing of software development AI-assisted tools for coding have become the main focus. As…

1 week ago

Google Gemini AI Free AI Tool for Students & Creators

Google Gemini AI is among the top talked about developments. What exactly is it? What…

1 week ago

Top 5 Reasons You Should Use Grubby AI Humanizer in 2025

As the need for AI content undetectable humanization software skyrockets with more and more AI…

2 weeks ago