Program
Program
CV
package abdul.khalique.s.cv;
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println(" Typing");
System.out.println("");
System.out.println(" 03173857306");
System.out.println("");
}
Program: 02
MARKSHEET OF 10 SUUBJECTS
package abdul.khalique.s.marksheet;
import java.util.Scanner;
System.out.println(" ------------------");
System.out.println(" MARKSHEET");
System.out.println(" ------------------\n");
System.out.println("ROLL NO : 03\n");
if (per >= 90 ) {
System.out.println("GRADE : A+");
System.out.println("GRADE : A");
} else if (per >= 70 ) {
System.out.println("GRADE : B");
System.out.println("GRADE : C");
System.out.println("GRADE : D");
} else {
System.out.println("FAIL");
}
Program: 03
package swapprogramwith3rdvariable;
int a = 10;
int b = 20;
int c = 30;
}
Program: 04
package swap.program.without.pkg3rd.variable;
// Intailizing Variables
int a = 10 ;
int b = 20 ;
a = a + b; // a now becomes 30
// System.out.println(" After Swaping : a = " + a + ", b = " + b ); you may program write like
this or also like given below !!!
}
Program: 05
package bubble.sortinng.ascending;
System.out.println(a[i]);
int temp;
if (a [ j ] > a [ j+1 ] ) {
temp = a [ j ] ;
a [ j ] = a [ j+1 ] ;
a [ j+1 ] = temp
System.out.println ( a [ i ] ) ;
}
Program: 06
package bubble.sorting.decending ;
System.out.println(a[i]);
int temp;
if (a [ j ] < a [ j+1 ] ) {
temp = a [ j ] ;
a [ j ] = a [ j+1 ] ;
a [ j+1 ] = temp ;
System.out.println ( a [ i ] ) ;
}
Program: 07
package statically.loop.table;
}
Program: 08
package dynamical.loop.table;
import java.util.Scanner;
int tab, s , e;
tab = inp.nextInt();
s = inp.nextInt();
e = inp.nextInt();
}
Program: 09
SALARIES INCREAMENT
package salaries.increament.program;
}else{
}
Program: 10
LINEAR SEARCH
package linear.search.program;
if ( arr [ i ] == key ) {
break;
}
Program: 11
AGE CALCULATOR
package age.calculator;
import java.util.Scanner;
import java.time.*;
}
Program: 12
DYNAMIC CALCULATOR
package dynamic.caculator;
System.out.println("--------------------");
System.out.println("CALCULATOR");
System.out.println("--------------------");
int result = 0;
System.out.println( " 1. Addition \n2. Subtraction \n3. Multiplication \n4. Division \n5.
Module " );
opratore = sc . nextInt ( );
n1 = sc . nextInt ( );
n2 = sc . nextInt ( );
switch ( opratore ) {
case 1 :
result = n1 + n2;
break;
case 2 :
result = n1 - n2;
break;
case 3 :
result = n1 * n2;
break;
case 4 :
result = n1 / n2;
break;
case 5 :
result = n1 % n2;
break;
default :
}
Program: 13
package quize.of.pkg5.quetions;
import java.util.Scanner;
int score = 0;
int answer;
// QUESTION NO 1
switch (answer) {
case 1 :
score ++;
break;
default:
break;
// QUESTION NO 2
switch (answer) {
case 2 :
score ++;
break;
default:
break;
// QUESTION NO 3
switch (answer) {
case 3 :
score ++;
break;
default:
break;
// QUESTION NO 4
System.out.println(" QUESTION NO 4 : WHICH LANGUAGE IS KNOWN FOR ITS COMPILED NATURE AND
ITS WIIDELY USED FOR OPERATING SYSTEM AND EMBEDDED SYSTEMS ? ?");
switch (answer) {
case 4 :
score ++;
break;
default:
break;
// QUESTION NO 5
switch (answer) {
case 5 :
score ++;
break;
default:
break;
} }
}
Program: 14
ZODICS SYMBOLS
package zodics.symbols;
import java.util.Scanner;
System.out.println("\nAQUARIES");
System.out.println("\nPISCES");
System.out.println("\nARIES");
System.out.println("\nGEMINI");
System.out.println("\nCANCER");
} else if (( month == 7 && day >= 23) || ( month == 8 && day <= 22)){
System.out.println("\nLEO");
System.out.println("\nVIRGO");
System.out.println("\nLIBRA");
System.out.println("\nSCORPIO");
System.out.println("\nSAGITTARIUS");
System.out.println("\nCAPRICON");
} else {
} }
Program: 15
NESTED SWITCH
int Category = 1 ;
int Item = 2 ;
switch(Category) {
case 1:
switch(Item){
case 1:
System.out.println("Item : Laptop");
break;
case 2:
break;
default:
break;
case 2:
break;
// inner switch Baased on Item
switch(Item){
case 1:
System.out.println("Item : Shirt");
break;
case 2:
System.out.println("Item: Jeans");
break;
default:
System.out.println("Unknown Category");
}
Program: 16
package even.odd.checker;
import java.util.Scanner;
If ( number % 2 == 0 ) {
} else {
}
Program: 17
LARGEST OF THREE
package largest.of.three;
import java.util.Scanner;
int largest;
largest = num1;
largest = num2;
} else {
largest = num3;
} }
Program: 18