Skip to content
  • Linkedin
  • Youtube
  • Pinterest
  • Home
  • Privacy Policy
  • About
  • Contact
Programmingoneonone

Programmingoneonone

Programmingoneonone is a website that publishes daily tutorials, methods, guides, and articles on IT, Education, and technology.

  • Home
  • Human Values
  • DSA
  • IoT Tutorials
  • Interview Questions and Answers
  • Toggle search form
java program to print student marksheets

Print Student Marksheet Program in Java Programming

Posted on 10 July 20198 April 2023 By YASH PAL No Comments on Print Student Marksheet Program in Java Programming

A simple java project to make a student mark sheet or print the result of the student: In this post, you will learn how to make a simple good java project or make a simple Marksheet using just java programming.

Introduction to Java [Marksheet] project

This is the simple print Result of [Marksheet] student project using just java programming language. and to fully understand this project you need to have at least some knowledge of Java programming language. this is a small Marksheet project which is very useful for the beginners who love to code in java programming. one can also use this project in their Java project. in this project, you will learn something new about java programming.

we use classes, variables, arrays, for loops and if statements to create this project. and I recommended you to first create this project on your own conditions and with your own mind of codes with the help of points given below.

if you stuck on any point of the code then you should seek into our course. you can also download this project from the download button given below at the post and also feel free to customize the code and recreate this project on your own conditions and use your own creative mind and also share this project’s link with me at the comment section give the bottom of the page.

Share your own project using my email id: yashpalsinghdeora9829421554@gmail.com

so, I can do create a post on your project and share it with the coders all over the world. 

The logic of the Project:

  • Scan the full name of the student.
  • Scan the father’s name of the student.
  • Scan the roll number of the student not an integer in the string in which you can enter the combination of characters and integer values. ex: 17CT3434
  • Scan the midterm marks of all the six subjects and remember then the marks should not be greater than 15.
  • Scan the marks of the final exam of all the six subjects and remember that the marks should not be greater than 60.
  • and then print out the result of the student as same as shown in the image.
  • Also, print the name of the college as shown in the image.
  • Also, print the Grand total of all marks of all subjects. 
  • Also, print the result pass and fail as shown in the image.
Print Student Marksheet Program Project in Java Programming
Print Student Marksheet Program Project in Java Programming
Print Student Marksheet Program Project in Java Programming

The logic of passing a student:

  • if the total of marks1 and marks2 is greater then 40 for all the subjects then the student is the pass as shown in the image.
Print Student Marksheet Program Project in Java Programming

The logic to fail a student:

  • if the total of marks1 and marks2 is less then 40 for anyone of the subjects then the result of the student fails as shown in the image. 
  • also, print the * symbol at the total of the marks as shown in the image.
Print Student Marksheet Program Project in Java Programming

Coding of Project:

import java.util.Scanner;

class Result
{

  public static void main(String arg[])
  {

    String name, fname,rollno;
    int i, Gtotal=0,count=0;
    String subject[] = { "Mathematics", "Human Value", "Physics","Computer Programming","Electrical & Electronics","Mechanical Engineering"};
    String subcode[]= { "MA-102","HU-103","PY-101","CS-103","EE-101","ME-101"};
    int midmarks[]= new int[6];
    int semmarks[]= new int[6];

    Scanner s = new Scanner(System.in);

    System.out.println("t Enter your Full Name: ");
    name = s.nextLine();

    System.out.println("t Enter your Father Name:");
    fname = s.nextLine();

    System.out.println("t Enter your Roll Number:");
    rollno = s.nextLine();

    for(i=0;i<6;i++)
    {
        System.out.println("t Enter Midterm Marks for: "+subject[i]+":");
        midmarks[i] = s.nextInt();
    }
  
    System.out.println("ntttOK NOW");

    for(i=0;i<6;i++)
    {
        System.out.println("t Enter Final Exam Marks for: "+subject[i]+":");
        semmarks[i] = s.nextInt();
    }

    System.out.println("\t\t\t\t\tYOUR RESULT\n");
    System.out.println("\t\t College:t"+"College of Engineering and technology, Bikaner");
    System.out.print("\n\t\t Name:" +name);
    System.out.println("\t\tFather Name: \t" +fname);
    System.out.println("\t\t Roll Number: \t" +rollno);
    System.out.println("\n\t\t "+"Subcode"+"\tmarks1"+"\tmarks2"+"\tTotal");

    for(i=0;i<6;i++)
    {
        if(((midmarks[i])+(semmarks[i])) >=40)
        { 
            System.out.println("tt "+subcode[i]+"tt "+midmarks[i]+"t"+semmarks[i]+"t"+((midmarks[i])+(semmarks[i])));
        }
        else
        {
            System.out.println("tt "+subcode[i]+"tt "+midmarks[i]+"t"+semmarks[i]+"t"+((midmarks[i])+(semmarks[i]))+"*");
            count++;
        }
        
        Gtotal = (Gtotal + ((midmarks[i])+(semmarks[i])));
    }

    if(count >0)
    {
        System.out.println("ntt Grand Total:t"+Gtotal+"tResult: tFAIL");
    }
    else
    {
        System.out.println("ntt Grand Total:t"+Gtotal+"tResult:tPASS");
    }
  }
}
Computer Science Tutorials, Java Tutorials, Projects Tags:computer science, java, Programs

Post navigation

Previous Post: How to Learn Algorithms And Data Structures
Next Post: Library Management System Program in C++

Related Tutorials

programming languages for machine learning and data science Top Programming Languages For Machine Learning Computer Science Tutorials
Introduction to Statistics for Data Science: Building a Solid Foundation Computer Science Tutorials
How to Become a Successful Data Engineer in the Data Science Field – Complete Guide Computer Science Tutorials
Is Python a good language for Machine Learning/AI? Computer Science Tutorials
basics of boolean algebra Its Operators, Laws, and Examples Basics of Boolean Algebra: Its Operators, Laws, and Examples Boolean Algebra
x winodws in linux X Windows system in Linux Computer Science Tutorials

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Pick your Subject

  • Internet of Things
  • Data Structures/Algorithms
  • Interview Preparation
  • Human Values
  • Java Interview Questions and Answers (2023)
    Thinking of becoming a Java developer? I must say it’s a good choice! Java is continuously named the most popular programming language. And the … Read more
  • Iot(Internet of things) in healthcare
    IoT in Healthcare
    IoMT (Internet of Medical Things) stands for devices that can collect and exchange data – either with users or other devices via the internet, … Read more
  • four stages of iot solution for industry
    IoT for Industry
    In this post, we are going to learn about use cases of IoT for Industry and four stages for providing IoT solutions. Machine Diagnosis … Read more
  • Iot for agricultural
    IoT in Agriculture
    IoT technology has realized smart wearables, connected devices, automated machines, and driverless cars. However, in agriculture, the IoT has brought the greatest impact. Amongst the challenges … Read more
  • Iot for logistics
    IoT in Logistics and Supply Chain
    IoT applications for smart logistics and supply chain systems:  Logistics Fleet Tracking  To track the locations of the vehicles in real time, the vehicle … Read more
  • Algorithms Tutorials
  • Basic Programming
  • Boolean Algebra
  • C Programming Tutorials
  • C++ Tutorials
  • Compiler Design Tutorials
  • Computer Networks Tutorials
  • Computer Organization Tutorials
  • Computer Science Tutorials
  • Data Structures Tutorials
  • DBMS Tutorials
  • Developer Guide
  • Digital Communication
  • Digital Logic Tutorials
  • Internet of Things Tutorials
  • Internet Tutorials
  • Interview questions answers
  • Java Tutorials
  • Javascript Tutorials
  • Linux
  • Machine Learning Tutorials
  • Operating Systems Tutorials
  • Programming Tutorials
  • Projects
  • Tips&Tricks
  • Tools
  • VBScript Tutorials
  • Java Interview Questions and Answers (2023)
    Thinking of becoming a Java developer? I must say it’s a good choice! Java is continuously named the most popular programming language. And the … Read more
  • Iot(Internet of things) in healthcare
    IoT in Healthcare
    IoMT (Internet of Medical Things) stands for devices that can collect and exchange data – either with users or other devices via the internet, … Read more
  • four stages of iot solution for industry
    IoT for Industry
    In this post, we are going to learn about use cases of IoT for Industry and four stages for providing IoT solutions. Machine Diagnosis … Read more
  • Iot for agricultural
    IoT in Agriculture
    IoT technology has realized smart wearables, connected devices, automated machines, and driverless cars. However, in agriculture, the IoT has brought the greatest impact. Amongst the challenges … Read more
  • Iot for logistics
    IoT in Logistics and Supply Chain
    IoT applications for smart logistics and supply chain systems:  Logistics Fleet Tracking  To track the locations of the vehicles in real time, the vehicle … Read more

Copyright © 2023 Programmingoneonone.

Powered by PressBook Blog WordPress theme