Making simple marksheet in java
First we have need to open Notepad, Notepad++ or other type of typing pad and then we write on this
program on notepad, notepad++ after then compile this program on command windows.
public class AssignmentMarksheet1st{
public static void main (String [] args){
System.out.println("|---------------------------------------------------------------------------|");
System.out.println("| |");
System.out.println("| UNIVERSITY OF SINDH |");
System.out.println("| Book No Certificate |");
System.out.println("| JAMSHORO,SINDH,PAKISTAN |");
System.out.println("| Marks Certificate |");
System.out.println("| ----------------- |");
System.out.println("| 3416 NO 875643 |");
System.out.println("| |");
System.out.println("| INSTITUTE OF MATHEMATICS & COMPUTER SCIENCE |");
System.out.println("| BS (COMPUTER SCIENCE) FINAL YEAR 2014 |");
System.out.println("| |");
System.out.println("| NAME: OMAR HAYAT BHUTTO ROLL NO: 2K12/ECSE/116|");
System.out.println("| FATHER'S NAME: IRSHAD AHMED EXAM. YEAR: 2014 |");
System.out.println("| SURNAME: BHUTTO |");
System.out.println("| FIRST SEMESTER |");
System.out.println("|---------------------------------------------------------------------------|");
System.out.println("||C.NO. SUBJECTS MX.MARKS. MN.MARKS. OB.MARKS. CR.MARKS. GRADE. Q.P||");
System.out.println("|---------------------------------------------------------------------------|");
System.out.println("||ENGL300 ENGLISH 100 40 60 3 B 9 ||");
System.out.println("||MATH300 C & A.G 100 40 40 3 D 3 ||");
System.out.println("||PKST300 PAK.STU 100 40 70 2 B 6 ||");
System.out.println("||COMP310 I.TO.CS 100 40 66 3 B 9 ||");
System.out.println("||COMP311 CP(C.L) 100 40 61 3 B 9 ||");
System.out.println("||COMP312 CP(C.L)(LAB) 100 40 55 1 C 2 ||");
System.out.println("||COMP313 B.ELEC 100 40 64 3 B 9 ||");
System.out.println("||-------------------------------------------------------------------------||");
System.out.println("||MARKS OBTAINED: 416 G.P.A: 2.61 RESULT:PASS ||");
System.out.println("||-------------------------------------------------------------------------||");
System.out.println("| SECOND SEMESTER |");
System.out.println("| |");
System.out.println("|---------------------------------------------------------------------------|");
System.out.println("||C.NO. SUBJECTS MX.MARKS. MN.MARKS. OB.MARKS. CR.MARKS. GRADE. Q.P||");
System.out.println("|---------------------------------------------------------------------------|");
System.out.println("||BUAD301 F.A & M 100 40 64 3 B 9 ||");
System.out.println("||ENGL301 ENGLISH 100 40 55 3 C 6 ||");
System.out.println("||ISST301 ISLM.ST 100 40 60 2 B 6 ||");
System.out.println("||MATH301 D.E&V.A 100 40 42 3 D 3 ||");
System.out.println("||COMP314 FUN.ALG 100 40 60 3 B 9 ||");
System.out.println("||COMP315 F.A(LAB) 100 40 50 1 C 2 ||");
System.out.println("||COMP316 ELEC.CR 100 40 68 3 B 9 ||");
System.out.println("||-------------------------------------------------------------------------||");
System.out.println("||MARKS OBTAINED: 399 G.P.A: 2.44 RESULT:PASS ||");
System.out.println("||-------------------------------------------------------------------------||");
System.out.println("| |");
System.out.println("| |");
System.out.println("| |");
System.out.println("| |");
System.out.println("| |");
System.out.println("| |");
System.out.println("| |");
System.out.println("| |");
System.out.println("|MARKS SECURED: 815/ 1400 C.G.P.A: 2.53/ 4.00 |");
System.out.println("|RESULT DECLARED: 02-APR-2015 PERCENTAGE: 58.21 |");
System.out.println("|RESULT:PASS |");
System.out.println("| |");
System.out.println("| |");
System.out.println("|The University reserves the right of issuing |");
System.out.println("|any correction in the result, if any mistake |");
System.out.println("|detected later. Controller of Examinations, |");
System.out.println("| 8 April 2015 University of Sindh, Jamshoro|");
System.out.println("|---------------------------------------------------------------------------|");
}
}
Now the save this program with class name (AssignmentMarksheet1st.java)
Now open the command after then set the directory this file.
For example :D:
cd programs
Compile on command: javac AssignmentMarksheet1st.java
Now Run this program : java AssignmentMarksheet1st
Out put
Simple Marksheet in java |
0 Comments