Java

Student Marks Calculation Java IntelliJ IDEA

This tutorial will teach you Student Marks Calculation Project Java in IntelliJ IDEA.This example help will you to study Java Gui application development step by step.

Design View

Paste the Following Code inside the Cal Button Event

    int m1,m2,m3,tot;
    double avg;

     m1 = Integer.parseInt(txtMarks1.getText());
     m2 = Integer.parseInt(txtMarks2.getText());
     m3 = Integer.parseInt(txtMarks3.getText());

     tot = m1 + m2 + m3;

     txtTotal.setText(String.valueOf(tot));

     avg = tot/3;

     txtAvg.setText(String.valueOf(avg));

     if(avg > 50)
       {
           txtGrade.setText("Pass");
       }
     else
       {
           txtGrade.setText("Fail");
       }
     }

I have attached the video tutorial below it will help you  to do this  step by step.

 

admin

Recent Posts

How to Laravel cache clear

Laravel cache clear , you can use the Artisan command-line tool that comes with Laravel.…

1 hour ago

Installing Vue.js in Laravel Project

Vue.js is a powerful JavaScript framework for creating dynamic user interfaces, while Laravel is a…

1 hour ago

Do I Return in Void Function in Java?

In Java, a void function (or method) does not return any value. However, you can use the return statement…

11 hours ago

Is Java Hard to Learn?

Is Java Hard to Learn is it True? Java is one of the most popular…

12 hours ago

How to generate random with weight java

Generating Random Numbers with Weights in Java Random number generation with weighted probabilities is a…

12 hours ago

Building JSP AJAX CRUD Application

Introduction to JSP AJAX CRUD Applications Building web applications has become more dynamic with the…

2 days ago