Skip to main content

Posts

Showing posts from March, 2012

Program for Simple interest in java

class SI{     public static void main(String args[]){         float Principal = 10000;         double Rate_of_interest = 4.5;         int No_of_year = 4;         double Si;         Si = Principal*Rate_of_interest*No_of_year;         Si= Si/100;         System.out.println("\n Simple interest on a Principal: "+Principal+" is "+Si+" at the rate of "+Rate_of_interest+" For time "+No_of_year+"");     } } OUTPUT  Simple interest on a Principal: 10000.0 is 1800.0 at the rate of 4.5 For time 4

Program for fibonacci series in java

class FibonacciSeries {     public static void main(String args[])     {         int N = 10;         long[] series = new long[N];         series[0] = 0;         series[1] = 1;         for(int i=2;i<N;i++)         {            series[i] = series[i-1] + series[i-2];         }         System.out.print(" Your Fibonecci series is: ");         for(int i=0;i<=N;i++)         {         System.out.print(series[i]+ " ");         }     } OUTPUT 0 1 1 2 3 5 8 13 21 44

Virtual file system......

Virtual File Systems  Virtual File Systems (VFS) provide an object-oriented way of implementing file systems.  VFS allows the same system call interface (the API) to be used for different types of file systems.  The API is to the VFS interface, rather than any specific type of file system.