A Micro-Project Report "Simple Calculator Application Using Java Applet and Electricity Bill Calculator of A Person Using Inheritance of Java"
A Micro-Project Report "Simple Calculator Application Using Java Applet and Electricity Bill Calculator of A Person Using Inheritance of Java"
A Micro-Project Report "Simple Calculator Application Using Java Applet and Electricity Bill Calculator of A Person Using Inheritance of Java"
Micro-Project Report
On
Submitted By:-
Name of Student Enrollment No.
1. Vishal S. Kesharwani 1812420115
2. Shardaprasad S. Kawle 1812420114
3. Pravin S. Thakre 1812420117
4. Shital R. Lilhare 1812420112
Mrs. R R Meshram
Lecturer
Department of Computer Engineering
1
Certificate
This is to certify that the Micro Project titled
“Simple Calculator Application using Java Applet
and Electricity Bill Calculator Of A Person using
Inheritance of Java.
”
Carried out under guidance of Mrs. R R Meshram mam, Lecturer,
Computer department and submitted to the department of computer
engineering
Submitted By:-
INDEX
2
Sr
Title Page no.
No.
1 Rationale 4
2 Aim/Benefit of the micro-project 4
3 Course Outcomes Addressed 4
4 Literature Review 5-9
5 Actual Methodology Followed 10-12
6 Actual Resources Used 13
7 Outputs of the Micro-Project 13-17
8 Skill Developed / learning out of this Micro-Project 18
9 Applications of this Micro-Project 18
Micro-Project Report
3
Title of Micro-Project : Simple Calculator Application using Java Applet and
Electricity Bill Calculator Of A Person using Inheritance of Java.
1.0 Rationale
Programmable Calculators : Programmable calculators are calculators that
can automatically carry out a sequence of operations under control of a
stored program, much like a computer. The first programmable calculators such as
the IBM CPC used punched cards or other media for program storage. Hand-held
electronic calculators store programs on magnetic strips, removable read-only
memory cartridges, flash memory, or in battery-backed read/write memory.
Java: Java is a general-purpose programming language that is class-
based, object-oriented, and designed to have as few
implementation dependencies as possible. It is intended to let application
developers write once, run anywhere (WORA), meaning that compiled Java code
can run on all platforms that support Java without the need for recompilation. Java
applications are typically compiled to bytecode that can run on any Java virtual
machine (JVM) regardless of the underlying computer architecture.
The syntax of Java is similar to C and C++, but it has fewer low-level facilities
than either of them. As of 2019, Java was one of the most popular programming
languages in use according to GitHub, particularly for client-server web
applications, with a reported 9 million developers.
4
Why Do We Have Used Java Runtime Environment for Application
Development?
Java technology allows you to work and play in a secure computing environment.
Upgrading to the latest Java version improves the security of your system, as older
versions do not include the latest security updates.
Java allows you to play online games, chat with people around the world, calculate your
mortgage interest, and view images in 3D, just to name a few.
Fig. Java Program Execution Steps Fig. Java Applet Life Cycle
5
2. Using an applet viewer, such as the standard tool, applet-viewer. An applet viewer
executes your applet in a window. This is generally the fastest and easiest way to test
your applet.
3. appletviewer RunHelloWorld.html
COMPUTER SYSTEM :
We have used DELL INSPIRON , 8th generation WITH INBUILT WINDOWS 10
Operating system of 3.20 GHz INTEL Pentium Core processor with i7technology
computer ( PC ).
Dell Inspiron desktops and all-in-one PCs are designed with innovative
technology and latest features .
6
OFFICE SOFTWARE PACKAGES :
We have used MS word 2013 for creating our report to show about how we
created this website . For performing of this project we have used MICROSOFT
WORD OFFICE OF 2013 version. Microsoft Office 2013 is a version
of Microsoft Office, a productivity suite for Microsoft Windows. It is the
successor to Microsoft Office 2010 and the predecessor to Microsoft Office 2016.
{
s2=t1.getText();
8
Electricity Bill Calculator using Inheritance Source Code
System.out.println("Units Consumed :
import java.util.*; " + units);
class CalculateBill System.out.println("Bill to pay : " +
{ b.billpay);
double billpay; }
}
void Bill(long units)
{
if(units<100)
billpay=units*1.20; }
else if(units<=300)
billpay=100*1.20+(units-
100)*2;
else if(units>300)
billpay=100*1.20+200 *2+
(units-300)*3;
}
}
class ComputeElectricityBill extends
CalculateBill
{
public static void main(String args[])
{
String name;
int no;
Scanner sc=new
Scanner(System.in);
System.out.println("ENTER NAME
OF CUSTOMER");
name=sc.nextString();
long units;
Scanner sc=new Scanner(System.in);
System.out.println("enter number
of units");
units=sc.nextLong();
ComputeElectricityBill b=new
ComputeElectricityBill();
b.Bill(units);
System.out.println("Customer Number : "
+ customerNo);
System.out.println("Customer
Number : " + name);
Reference Websites:
9
https://tutorialspoint.Java appletsprograming.co.in: this website we have used to
collect information about the java applet concepts and syntax.
http://w3schools.java.tutorials.com : this website we have used to collect information
about Java Inheritance,
http://JavaTutorials.co.in : Collected All Information About Java Program Execution.
http://w3schools.java.tutorials.com
http://JavaTutorials.co.in :
10
Fig. Output Of Electricity Bill Calculator Using Inheritance
**************
11