Sample Report XII IT
Sample Report XII IT
A Project Report
Submitted To
Submitted By:
Aditya Bhawsar
Roll No -___________________
Aditya Bhawsar
TABLE OF CONTENTS
Introduction
Java Details
Preliminary Design
Implementation
Bibliography
INTRODUCTION
What is java?
Java is a general purpose object oriented programming
language. It is the first programming language that is not tied
to any particular hardware or operating system .The language
is based on the concept of an object. Java is highly derived
from C++. Most striking feature of the language is that it is
platform neutral language.
There were five primary goals in the creation of the Java
language:
Java tools
In order to write java application or applets ,one need more
than a language . The tools that lets one to write , test , debug
programs.
Java features
● Compiler and Interpreted
● Platform independent
● Simple
● Secure
● Familiar
● Portable
● Object-Oriented
● Robust
● Multithreaded
● High performance
● Distributed
● Dynamic
Compiler and Interpreted -There is a java compiler, named
javac. The java compiler takes input source code files (these
files typically have the ext.java) and converts them into
compiled bytecode files. The java Interpreter known as javac
can be used to execute java application .The interpreter
translates bytecode directly into program actions.
Driver
Database
Database
class BankAccount {
int balance;
int previousTransaction;
String customerName;
String customerID;
void getPreviousTransaction() {
if (previousTransaction > 0) {
System.out.println("Deposited: " + previousTransaction);
} else if (previousTransaction < 0) {
System.out.println("Withdrawn: " +
Math.abs(previousTransaction));
} else {
System.out.println("No transaction occurred.");
}
}
void showMenu() {
char option;
Scanner scanner = new Scanner(System.in);
do {
System.out.println("==================================
=======");
System.out.println("A: Check your balance");
System.out.println("B: Deposit");
System.out.println("C: Withdraw");
System.out.println("D: Previous Transaction");
System.out.println("E: Exit");
System.out.println("==================================
=======");
System.out.print("Enter your option: ");
option = scanner.next().toUpperCase().charAt(0);
System.out.println("\n");
switch (option) {
case 'A':
System.out.println("------------------------------------------------")
;
System.out.println("Balance = " + balance);
System.out.println("------------------------------------------------")
;
break;
case 'B':
System.out.println("------------------------------------------------")
;
System.out.print("Enter an amount to deposit: ");
int depositAmount = scanner.nextInt();
deposit(depositAmount);
break;
case 'C':
System.out.println("------------------------------------------------")
;
System.out.print("Enter an amount to withdraw: ");
int withdrawAmount = scanner.nextInt();
withdraw(withdrawAmount);
break;
case 'D':
System.out.println("------------------------------------------------")
;
getPreviousTransaction();
System.out.println("------------------------------------------------")
;
break;
case 'E':
System.out.println("******************************
*****************");
System.out.println("Thank you for using our services!");
System.out.println("******************************
*****************");
break;
default:
System.out.println("Invalid option! Please enter a valid
option.");
break;
}
} while (option != 'E');
scanner.close();
}
}
IMPLEMENTATION
BIBILOGRAPHY