0% found this document useful (0 votes)
21 views

SodaPDF Converted Project - 9

1. The document is a student project report submitted by Mahfuj Alam of Class IX-A at Don Bosco English Medium School. 2. The project involves creating different Java console applications, including programs to generate the Fibonacci series, check if a number is composite, create a menu-driven geometry calculator, determine if a number is odd, and calculate taxes on water usage. 3. Mahfuj thanks his computer teacher Mr. Soumitra Kalidaha and lab teacher Mr. Meghu Das for their guidance in completing the Java programming assignment. He concludes that the project helped expand his knowledge of Java.

Uploaded by

wrw wfgwgw
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

SodaPDF Converted Project - 9

1. The document is a student project report submitted by Mahfuj Alam of Class IX-A at Don Bosco English Medium School. 2. The project involves creating different Java console applications, including programs to generate the Fibonacci series, check if a number is composite, create a menu-driven geometry calculator, determine if a number is odd, and calculate taxes on water usage. 3. Mahfuj thanks his computer teacher Mr. Soumitra Kalidaha and lab teacher Mr. Meghu Das for their guidance in completing the Java programming assignment. He concludes that the project helped expand his knowledge of Java.

Uploaded by

wrw wfgwgw
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

PROFILE

Don Bosco English Medium


School
Name Mahfuj Alam

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.

This project has some Advantages:

1. This internal assessment of practical work


project we have learned create small console
based application through the java programming.

2. This console application very user friendly.


BIBLIOGRAPHY
Internal assessment contains of MENU DRIVEN ALL
ARITHMETIC OPERATION, CALCULATE SIMPLE
INTEREST, BILL DEPENDING ON NUMBER OF UNIT.
MENU DRIVEN: USER ENTER FIRST VALUE AFTER
CHOOSE OPERATOR AND ENTER SECOND NUMBER AFTER
GIVE THE VALUE PRESS ENTER KEY. ALL THE
ARITHMETIC OPERATION PERFORM LIKE ADD,
SUBTRACT, MULTIPLICATION, DIVISION AND MODULE.
SIMPLE INTERESET: USER ENTER BAISC OR PRINCIPAL
AMOUNT, RATE OF INTEREST AND TIME OR YEAR.
ELECTRICITY BILL: USER ENTER PREVIOUS UNIT AND
CUREENT UNIT.AFTER THE REMAING UNIT
AUTOMATICALLY CALCULATE. YOU CAN SEE NUMBER OF
UNIT WHICH WANT TO BE PAID BY THE USER. The
simple calculation that we have created, the use will be able
to do their own calculation. User will be able to do all their
simple interest calculation in the second project. Electricity
bill calculation can be done very easily in the third project.
We have got very good help from our text book in creating
this Simple java console application and our sir has guided us
for practical work.
1.Fibbonacci sereis
import java.util.*;

class Fibbonacci

int a=0,b=1,no,i,c=0;

public void fibo()

Scanner cr=new Scanner(System.in);

System.out.println("Enter the number of terms");

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;

public static void main(String[]args)

{
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;

System.out.println ("Invalid choice”);


}
}
}
4.ODD NUMBER
public class Odd_even
{

public static void Even(int L, int R)


{
if (R < L)
{
return;
}
if(R % 2 == 0 )
Even(L, R - 2);
else
Even(L, R - 1);
if (R % 2 == 0)
{
System.out.print(R + " ");
}
}
public static void Odd(int L, int R)
{
if (R < L)
{
return;
}

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;

public void set()

Scanner cr=new Scanner(System.in);

System.out.println("Enter the amount of water consumed in


gallon");

a=cr.nextDouble();

if(a<=60)

System.out.println("your tax is=0$");

else if(a>60 && a<=120)

System.out.println("your tax is=200$");

else if(a>120 && a<=200)

System.out.println("your tax is=400$");

else

System.out.println("your tax is=600$");


}

public static void main(String[]args)

triangle_test ob=new triangle_test();

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

You might also like