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

Employee Working Hours Calculation System using C#.net

Initialize the employee number, Hourswork,and Hoursrate to calculate a grosswage use the following condition. if…

4 days ago

Java Payroll System Calculate Employee Overtime

Act as a Java developer to create a program that calculates the gross wage for…

6 days ago

Employee Working Hours Calculation System using Java

Initialize the employee number, Hourswork,and Hoursrate to calculate a grosswage use the following condition. if…

7 days ago

Laravel 11 School Management System

In this tutorial, we will teach you how to create a simple school management system…

2 weeks ago

How to Make Admin Panel Using React MUI

I have design the Admin Basic templete using React MUI Design Admin Dashboard and Login.Here…

3 weeks ago

Install Laravel Breeze for Authentication Using Laravel 11

In this tutorial ,i am to going teach the Laravel Breeze.Laravel Breeze provides a simple…

4 weeks ago