Posts

ICT Model Papers for A/l - Tamil medium

model 1 model 2 model 3 model 4 FWC -2020

ICT Quizes

ICT Quiz

Digital Logic Gates - Online Exam

Exam 01 - MCQ

Git Online Exam - GIT

Image
GIT Pilot exam GIT Book Online Exam -01 - MCQ Online Exam - 02 - MCQ Online Exam -03 - MCQ   Spread Sheet practice  01 Spreadsheet Exercise 02 Spreadsheet Exercise 03 Spreadsheet 4 Word Processing Practice - 01 Word Processing Practrice - 02 Word Processing 02 DBMS Worksheet

A guessing game in java

  import java.util.Random; import java.util.Scanner; public class gussingGame { int min = 1 ; int max = 16 ; Random rand = new Random(); int num = rand .nextInt( max - min + 1 )+ min ; int gues ; public int read() { Scanner s= new Scanner(System. in ); System. out .println( "Enter your guesing number between 1-16 : " ); gues =s.nextInt(); return gues ; } public void check() { int i= 0 ; while (i< 16 ) { if ( num == gues ) { System. out .println( "your gues is correct" ); break ; } else if ( num < gues ) { System. out .println( "The number is less than your gues " ); } else { System. out .println( "The number is greater than your gues " ); } read(); i++; } } public static void main (String ...

Queue implementation in Java

public class queue { int num [] ; int i ; int top ; int maxSize ; public queue( int length) { this . maxSize =length; top =- 1 ; num = new int [ maxSize ]; } public boolean isEmpty() { return top ==- 1 ; } public boolean isFull() { return top == maxSize - 1 ; } public void push( int newElm) { if (!isFull()) { num [++ top ] = newElm; } else { System. out .println( "array is full" ); } } public void pop() { for ( i = 0 ; i < top ; i ++) { num [ i ]= num [ i + 1 ]; } top --; } public void print() { if (isEmpty()) { System. out .println( "array is Empty" ); } else { System. out .println( "numbers are:" ); for ( i = 0 ; i <= top ; i ++) { System. out .pri...

Stack implementation in Java

import java.util.Scanner; public class stack { int num [] ; int i ; int top ; int maxSize ; public stack( int length) { this . maxSize =length; top =- 1 ; num = new int [ maxSize ]; } public boolean isEmpty() { return top ==- 1 ; } public boolean isFull() { return top == maxSize - 1 ; } public void push( int newElm) { if (!isFull()) { num [++ top ] = newElm; } else { System. out .println( "array is full" ); } } public int pop() { return num [ top --]; } public void peek() { if (!isEmpty()) System. out .println( "top element is " + num [ top ]); else System. out .println( "array is Empty" ); } public void print() { if (isEmpty()) { System. out .println( "array is Empty" ); }...