Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
37 views

Java Microproject Report

The document is a micro project report template for a stopwatch applet designed using Java. It includes sections for the project proposal, rationale, aim, methodology, and actual methodology followed. The methodology section includes a flowchart showing how the Applet class extends other classes like Component, Container and Panel. It also includes sample code for a Clock class that extends Applet and implements Runnable and ActionListener interfaces to create the stopwatch functionality.

Uploaded by

umairkhan1559
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views

Java Microproject Report

The document is a micro project report template for a stopwatch applet designed using Java. It includes sections for the project proposal, rationale, aim, methodology, and actual methodology followed. The methodology section includes a flowchart showing how the Applet class extends other classes like Component, Container and Panel. It also includes sample code for a Clock class that extends Applet and implements Runnable and ActionListener interfaces to create the stopwatch functionality.

Uploaded by

umairkhan1559
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 18

Programme: Computer Engineering Academic Year: 2023 – 2024

Course : Data Structures Using ‘C’ Course Code: DSU (22317)


Semester : Third

MICRO PROJECT REPORT


ON

______________________________________
Submitted by the group of ___ students,

Roll
Sr.
No Name Enrollment No Seat No
No

Under the Guidance of


Ms. Surekha H. Patil
in
Three Years Diploma Programme in Engineering and Technology of
Maharashtra State Board of Technical Education, Mumbai (Autonomous)
ISO 9001: 2008 (ISO/IEC-27001:2013)
at

Shri Shivaji Vidya Prasarak Sanstha’s


Bapusaheb Shivajirao Deore Polytechnic – 0059
Vidyanagari, Deopur, Dhule-424005
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION,
MUMBAI

Certificate
This is to certify that Mr. / Ms. _______________________________________

of Sixth Semester of Diploma Programme in Computer Engineering at Shri

Shivaji Vidya Prasarak Sanstha’s Bapusaheb Shivajirao Deore Polytechnic,

Dhule (Institute Code: 0059) has completed the Micro Project satisfactorily in

Subject Data Structures Using ‘C’ (22317) in the academic year 2023-2024 as

prescribed in the MSBTE curriculum of I Scheme.

Place: Dhule Enrollment No: ___________________

Date: / 11 / 2023 Exam. Seat No: ___________________

Project Guide Head of the Department Principal


MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION, MUMBAI

Certificate
This is to certify that,
Roll No Enrollment No Name Exam Seat No.

students of Sixth Semester Diploma Programme in Computer Engineering at


Shri Shivaji Vidya Prasarak Sanstha’s Bapusaheb Shivajirao Deore
Polytechnic, Dhule (Institute Code: 0059), have completed the Micro Project
satisfactorily in Subject Data Structures Using ‘C’ (22317) in the academic year
2023–2024 as prescribed in the MSBTE curriculum of I Scheme.

Place: Dhule Date: / 11 / 2023

Project Guide Head of the Department Principal

Part A: Micro-Project Proposal


Title: Stop Watch designing using Applet
1.0 Aim of the Micro -Project:
The aim of the course is to help the student to affiant following industry
identify compendancy through various teaching, learning experience.
2.0 Course Outcomes Addressed:

Develop a program using applet in java.

Apply the concept of interface in the program

Develop a program using ActionListener in java.

3.0 Proposed Methodology:

Java uses statements of control the flow of execution of program based on certain
conditions. This are used to cause the flow of execution to book conditions. Person
will able to use switch case to check multiple conditions .

4.0 Action plan:


Sr. Details of Planned Start Planned Finish Name of Responsible
No. Activity date date Team Members

1 Data Collection 04/09/2023 09/09/2023

2 Analysis 11/09/2023 16/09/2023

3 Design 18/10/2023 23/10/2023

3 Development 25/10/2023 21/10/2023

4 Report Writing 23/10/2023 4/11/2023


5.0 Resource Required:

Sr. no Name of resources Specification Quantity Remark

1 Computer system Processor: Intel(R) Pentium(R) Dual 1 -


CPU E2140@1.60GHz 1.60GHz
RAM: 512 MB

2 Operating System OS: Windows 7(32bit) 1 -

3 Software Turbo C IDE 1 -

Names of Team Members with Roll Nos.


Roll No Name
Part B: Micro-Project Report
Title:
1.0 Rationale:
Java is object-oriented, cross platform, multi-purpose artificial language
created by Sun Microsystem. 1st free in 1955, it had been developed to be a machine
freelance net technology. it had been supported C and C++ syntax to create it
straightforward for programmers from those communities to be told. Since then, it
had been attained a distinguished place within the world of programing. Java has
several characteristics that have contributed to its popularity:

Platform freelance – several languages area unit compatible with only 1 platform.
Java was specifically designed in order that it might run on any laptop, regardless if it
had been running Windows, Linux, Mac, UNIX operating system or any of the
opposite software package.

Simple and simple to use – Java’s creators tried to style it therefore code can be
written with efficiency and simply. Java doesn't have some drawbacks. Since it's
automatic trash collection, it will tend to use additional memory than alternative
similar languages. There area unit typically implementation variations on completely
different platforms, that have LED to Java being delineated as a “write once , check
everywhere” system. Lastly, since it uses associate degree abstract “virtual machine”,
a generic java program doesn’t have access to native API’s on a system directry.

What is Applet?
An applications programme is dynamic and interactive java program that run
within the net page or applets ar tiny java programs that ar primarily utilized in net
computing. The java application programs run on prompt exploitation java interpreter
whereas the java applets will be transported over the web from one laptop to a
different and run exploitation the Appletviewer or any application program that
support java. AN applications programme is like program which may perform
arithmetic operations, show graphics, play sounds settle for user input, produce
animation and play interactive games. To run AN applications programme, it should
be enclosed in hypertext markup language tags for online page. application program
may be a program to look at online page. Java has enabled sites to make and use
absolutely hypermedia system net documents. an internet page will currently contain
not solely a straightforward text or a static image however additionally a Java
applications programme that, when run, will manufacture graphics, sounds and
moving pictures. thus java applications programme has created vital impact on World
Wide net. AN applications programme category extends from AWT Panel category,
that extend AWT instrumentation category, that extend AWT part category. AN
applications programme is largely a specialised panel that's embedded in an
exceedingly.

specialized element instrumentality referred to as as applications programme Context


which might be an online browser to show associate applications programme. From
element category associate applications programme inherits the flexibility to draw
and handle event. From instrumentality, associate applications programme inherits
the flexibility to incorporate alternative elements and to own layout manager to
manage the dimensions and position of these elements. associate applications
programme implements no. of strategies that the applications programme context
calls once it need to initialize, start, stop or destroy the applications programme.
2.0 Aim of the Micro-Project:
The aim of the course is to help the student to affiant following industry
identify compendancy through various teaching, learning experience.

3.0 Course Outcomes Achieved:

Develop a program using applet in java.


Apply the concept of interface in the program

Develop a program using ActionListener in java.

4.0 Actual Methodology Followed:


A. Flowchart

java.lang.Object

java.awt.Component

java.awt.Container

java.awt.Panel

java.applet.Applet

B. Program code
import java.applet.*;

import java.awt.*;

import java.awt.event.ActionEvent;

import java.awt.event.ActionListener;

public class Clock extends Applet implements Runnable,ActionListener

//Panel to keep all the buttons and label

Panel p;

Label display;

//Button

Button start, stop, reset;

//Time

int hour, minute,second,millisecond;

//String to be displayed on the label

String disp;

//State of stopwatch on/off

boolean on;

//Initialization

public void init()


{

//Initially off

on=false;

p=new Panel();

//Setting layout of the panel

p.setLayout(new GridLayout(4,1,6,10));

//Initial time 00:00:00:000

hour=minute=second=millisecond=0;

//Label

display =new Label();

disp="00:00:00:000";

display.setText(disp);

p.add(display);

//Start Button

start=new Button("Start");

start.addActionListener((ActionListener)this);

p.add(start);

//Reset Button

reset = new Button("Reset");


reset.addActionListener((ActionListener)this);

p.add(reset);

//Stop Button

stop=new Button("Stop");

stop.addActionListener((ActionListener)this);

p.add(stop);

add(p);

//Starting Thread

new Thread(this,"StopWatch").start();

//Reset Function

//Reset to default value

public void reset()

try{

Thread.sleep(1);

catch(Exception e){

System.out.println(e);
}

hour=minute=second=millisecond=0;

//Update function

//Update the timer

public void update()

millisecond++;

if(millisecond==1000) {

millisecond=0;

second++;

if(second==60)

second=0;

minute++;

if(minute==60)

minute=0;

hour++;
}

//Changing Label

public void changeLabel()

//Properly formatting the display of the timer

if(hour<10)

disp="0"+hour+" : ";

else

disp=hour+" : ";

if(minute<10)

disp+="0"+minute+" : ";

else

disp+=minute+" : ";

if(second<10)

disp+="0"+second+" : ";

else

disp+=second+" : ";
if(millisecond<10)

disp+="00"+millisecond;

else if (millisecond<100)

disp+="0"+millisecond;

else

disp+=millisecond;

display.setText(disp);

//thread.run function

public void run()

//while the strength is on

while(on)

try{

//pause 1 millisecond

Thread.sleep(1);

//update the timer

update();
//changeLabel

changeLabel();

catch(InterruptedException e){

System.out.println(e);

//actionPerformed

//To listen to the actions on the buttons

public void actionPerformed(ActionEvent e)

//start a thread when start button is clicked

if(e.getSource()==start)

//stopwatch is on

on=true;

new Thread(this,"StopWatch").start();

}
//reset

if(e.getSource()==reset)

//stopwatch off

on=false;

reset();

changeLabel();

if(e.getSource()==stop)

//stopwatch off

on=false;}

5.0 Actual Resources Used:-

Sr. no Name of resources Specification Quantit Remark


y

1 Computer system Processor: Intel(R) Pentium(R) Dual 1 -


CPU E2140@1.60GHz1.60GHz
RAM: 512 MB

2 Operating System OS: Windows 7 (32bit) 1 -

3 Software Turbo C IDE 1 -

6.0 Outputs of the Micro-Project:

7.0 Skill Developed/Learning outcome of this Micro-Project:


8.0 Application of the Micro-Project:

You might also like