SodaPDF Converted Project - 9
SodaPDF Converted Project - 9
Class IX-A
Roll No -13
COMPUTER PROJECT
JAVA PROMMING LANGUAGE
J-Just
A-Another
V-Virtual
A-Acceletor
PROJECT CATEGORY
Internal Assessment java project a programming
environment social category is assigned to an
investment project after appraisal and before
public disclosure during create different type of
console application project. This project require a
minimum 5 days disclosure period. INTERNAL
ESSESSMENT JAVA project expected to have
significant adverse use own computer. This project
to create using BLUEJ , NOTPAD and MS WORD.
This project base console application,. This console
program you can easy to use and see the output.
ACKNOWLEDGEMENT
I, Mahfuj Alam reading in class ix of Don Bosco
eng med school want to express my special thanks
of gratitude to my computer teacher Mr.Soumitra
Kalidaha who gave us this golden opportunity to do
this project on java. I would also like to thank our
respected principal Fr.Yaccub Ekka .My parents
and once again Soumitra sir with whose able
guidance I am able to complete this project on
java
Introduction
This is a project on java programming language it
will help us to expand more our knowledge in java
the topics related to the project are:-
Fibbonacci series
Menu driven program
Odd number
Composite number
Tax counter
It will help us in reasoning and give our brain a
boost .In first program we will create Fibbonacci
series, in second program we will make a menu
driven program in which we will calculate the area
of rectangle, square and circle. In, the third
program we will calculate the amount of tax on the
basis of the given conditions. In the fourth
program we will check composite number with a
given number and in the last we will check a
number whether it is odd or not. So let’s begin.
Objective
Java project is complete exercise and examined
the every part of the project. You should be well
–versed in the BLUEJ. I am learn how to create a
class and write code of java program by using
BLUEJ or NOTEPAD++ or NetB eans. I
understand many of the of the java code this is
very valuable.
class Fibbonacci
int a=0,b=1,no,i,c=0;
no=cr.nextInt();
System.out.print(a+" "+b);
for(i=3;i<=no;i++)
c=a+b;
System.out.println(" "+c);
a=b;
b=c;
{
Fibbonacci ob=new Fibbonacci();
ob.fibo();
}}
2.Composite number
class Composite_number
{
public static void main(String[] args)
{
Scanner cr=new Scanner(System.in);
System.out.println("Enter a number to verify composite or
not:");
int num =cr.nextInt();
int i = 1;
int count = 0;
while(num>= i )
{
if(num % i == 0)
count++;
i++;
}
if(count > 2)
System.out.println("It is a composite number");
else
System.out.println ("It is not a composite number");
}
}
3.Menu Driven Program
import java.util.*;
class Menu_Driven
{
public static void main(String[] args)
{
int sq,r;
double c;
Scanner cr=new Scanner(System.in);
System.out.println ("Press 1 for rectangle");
System.out.println ("Press 2 for Square");
System.out.println ("Press 3 for Circle");
System.out.println ("Enter your choice");
Int choice=cr.nextInt();
switch(choice)
{
Case 1:
System.out.println ("Enter the length");
Int l=cr.nextInt();
System.out.println ("Enter the breath");
Int b=cr.nextInt();
R=l*b;
System.out.println ("The area of rectangle is"+R);
Break;
Case 2:
System.out.println ("Enter the length of side");
Int a=cr.nextInt();
sq=a*a;
System.out.println ("The area of square is"+R);
Break;
Case 3:
System.out.println ("Enter the radius of circle");
Double t=cr.nextDouble();
c=22/7*t*t;
System.out.println ("The area of circle is"+c);
Break;
Default;
if(R % 2 == 1 )
Odd(L, R - 2);
else
Odd(L, R - 1);
if (R % 2 == 1)
{
System.out.print(R + " ");
}
}
public static void main(String[] args)
{
int L = 1, R = 10;
System.out.print("Even numbers:");
Even(L, R);
System.out.println();
System.out.print("Odd numbers:");
Odd(L, R);
}
}
5.Tax of water
import java.util.*;
class triangle_test
double a,b,c;
a=cr.nextDouble();
if(a<=60)
else
ob.set();
}
CONCLUSION
I am once again very grateful to our computer
teacher Mr.Soumitra Kalidaha and our lab teacher
Mr.Meghu Das for their guidance and support.
After completing this assignment I conclude that it
is very helpful to know something more about java.
Thanking you.
Yours faithfully
Mahfuj Alam