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

Java MP

The document describes a micro project proposal for developing a stopwatch using an applet in Java. The student will design the stopwatch to integrate course outcomes like developing programs using applets and interfaces in Java. Over 12 weeks, the student will perform tasks like literature review, information collection, data analysis, and report preparation to complete the project. The final report will include the rationale, aims, methodology, resources used, and skills developed from the micro project.

Uploaded by

556-Harsh Tandel
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
97 views

Java MP

The document describes a micro project proposal for developing a stopwatch using an applet in Java. The student will design the stopwatch to integrate course outcomes like developing programs using applets and interfaces in Java. Over 12 weeks, the student will perform tasks like literature review, information collection, data analysis, and report preparation to complete the project. The final report will include the rationale, aims, methodology, resources used, and skills developed from the micro project.

Uploaded by

556-Harsh Tandel
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

VIDYAVARDHINI’S BHAUSAHEB VARTAK

POLYTECHNIC

MICRO PROJECT
Academic year: 2023-24

Title of Micro Project:


Stop Watch designing using Applet
Program/Code: Computer Engineering (CO) Semester: Fourth
Course/Code: Java Programming (22412)
Name of Student:

Roll No:
Enrolment No:

Name of Faculty: Prof. Kshipra Mokashi


MAHARASHTRA STATE BOARD OF TECHNICALEDUCATION

Certificate

This is to certify that

Roll No of Fourth Semester of Diploma in Computer Engineering (CO) of


Institute, B.V. POLYTECHNIC (Code: 0093) has completed the Micro Project
satisfactorily in Subject – Java Programming (22412) for the academic year 2023-
2024 as prescribed in the curriculum.

Place: Vasai Enrolment No:

Date: Exam. Seat No:

Subject Teacher Head of the Department Principal


Annexure - I

Part A: Micro Project Proposal

1.1 Aim/Benefits 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.1 Course Outcomes integrated:
 Develop programs using Object Oriented methodology in Java.
 Apply concept of inheritance for code reusability
 Develop programs using multithreading.
 Develop programs using graphics and applet

3.1 Proposed Methodology:


1. Literature survey.
2. Collect information through different sources
3. Analysis of data.
4. Compilation of collected data.

4.0 Action Plan

Sr. Planned Planned Name of


Details of the activity
No. Start date Finish date Members
1 Formation of Group & Topic Selection All members
2 Submission of Proposed Plan All members
3 Preparation of Report All members
4 Final valuation of a working Report All members
5 Presentation of Report All members
6 Submission of Final Report All members

5.0 Resource Required:


Sr.
Name of resources/Material Specifications Qty Remarks
No.
Processor: i3
1. Computer 1
RAM: 4.00GB
2. Microsoft Word Word -2016
3. Printer Hp LaserJet 1
Lab manual for software
4. Refer Book
engineering
www.bi-brain.com
5 Sites name
www.wikipedia.org
6.0 Name of Team Members

Roll No Individual
Sr. Process and Total
Name of Students Presentation
No. Product
assessment (06) (04) (10)

01 1246 Harsh Tandel

02 1247 Mufij Topinkati

03 1248 Rion tuscano

Name & Signature of Faculty: Prof. Kshipra Mokashi


Annexure- II

Final Micro Project Report

Title: Stop Watch designing using Applet

1.0 Rationale: This course develops necessary skills in students to apply object oriented programming
Techniques in java so that students will be able to develop complete applications using core
Java.
2.1 Aim/Benefits of the Micro-Project:
The Aim of Micro Project is to study development of Stop Watch designing using Applet
.1 Course Outcomes Integrated:
 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 Procedure Followed.


1 Discussion about topic with guide and among group members
2 Literature survey
3 Information collection
4 Compilation of content
5 Editing and revising content
6 Report Preparation
5.0: Actual Resources Required:
Sr.
Name of resources/Material Specifications Qty Remarks
No.
Processor: i3
1. Computer 1
RAM: 4.00 GB
2. Microsoft Word Word -2016
3. Printer Hp LaserJet 1
Lab manual for software
4 Refer Book
engineering
www.bi-brain.com
5 Sites name
www.wikipedia.org

7.0 Skill Developed/Learning outcomes of this Micro-Project


The following skills were developed:
1. Teamwork: Learned to work in a team and boost individual confidence.
2. Problem-Solving: Developed good problem-solving habits.
3. Technical Writing: Preparing the report of proposed plan and the final report.
Annexure - III

Rubrics for Assessment of Micro-Project


Institute Code: 0093 Academic year: 2023-24
Program: CO-I Course & Code: Java Programming (22412)

Name of Candidate: Roll No:

Semester: Fourth

Name of Faculty: Prof. Kshipra Mokashi

Sr. Poor Average Good Excellent


Characteristic to be Assessed
No. (Marks 1-3) (Marks 4-5) (Marks 6-8) (Marks 9-10)

1. Relevance to the Course


Literature Survey/Information
2.
Collection
3. Project Proposal
Completion of the Target as per
4.
Project Proposal
5. Analysis of Data and Representation
6. Quality of Prototype/Model
7. Report Preparation
8. Presentation
9. Viva
Marks Out Of 10

Name & Signature of Faculty: Prof. Kshipra Mokashi


Annexure- IV

Micro-Project Evaluation Sheet


Title: Stop Watch designing using Applet
Institute Code: 0093 Academic year: 2023-24
Program: CO-I Course & Code: 22413

Semester: Fourth

Name of Faculty: Prof. Kshipra Mokashi

Course Outcomes Achieved:


Create a Stopwatch using an applet
Evaluation as per Suggested Rubric for Assessment of Micro Project:
Sr. Characteristic to be Poor Average Marks Good Marks6- Excellent S
assessed Marks1-3 4-5 8 Marks 9-10 u
No.
b
T
ot
al
(A) Process and product assessment Out Of 6

1 Relevance to the course

2 Literature Survey .
Information Collection

3 Completion of the
Target as per project
proposal

4 Analysis of Data and


representation

5 Quality of
Prototype/Model/Content

6 Report Preparation

(B) Individual Presentation/Viva Out of 4

7 Presentation .

8 Viva

Name and designation of the Faculty Member:


Prof. Kshipra Mokashi
Weekly Activity Sheet
Topic: Stop Watch designing using Applet
Institute Code: 0093 Academic year: 2023-2024
Program: CO-I Course & Code: 22413
Semester: Fourth

Name of Faculty: Prof. Kshipra Mokashi

SR. NO WEEK ACTIVITY PERFORMED

1. 1st Week Discussion and Finalization of Topic


2. 2nd Week Literature Review
3. 3rd Week Submission of Proposed Plan
4 4th Week Information Collection
5. 5th Week Analysis of Data
6. 6th Week Compilation of content
7. 7th Week Editing and Revising the Content
8. 8th Week Report Presentation
9. 9th Week Report Presentation
10. 10th- 12th Week Presentation

Signature of Student Dated Signature of Faculty


INDEX

SR CONTENT PAGE
NO. NO.

1. Acknowledgement

2. Introduction

3. What is Applet?

4. Program Information

5. Program code

6. Program

7. Output

8. Conclusion & References


ACKNOWLEDGEMENT

This Micro project would not have been possible without considerable guidance

and support so, we would like to acknowledge those who have enable us to

complete this project. Firstly we would like to thank our project guide,

Mrs.Kshipra Mokashi (Lecturer in Bhausaheb Vartak Polytechnic) for providing

the guideline with continuous advice and feedback throughout the duration of

finishing the project; their opinion and suggestion have helped us in a realizing

this project. Also, not to be forgotten, we would like to thank all our friends

with the report valuable opinion and sharing ideas during the process of this

project. Finally, we would like to thank our families for their understanding,

encouragement and support towards the completion of project thank you so

much
Introduction

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 its 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 directory.
What is Applet?
An applications programme is dynamic and interactive java program
that run within the net page or applets are tiny java programs that are
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.
Following program shows the chain of categories genetic by applications
programme category in java:

java.lang.Object

java.awt.Component

java.awt.Container

java.awt.Panel

java.applet.Applet
Program Information
1. Once the beginning button is click, we tend to begin the timer. Whereas the
reset or stop button isn’t pressed the we tend to keep the timer running i.e we alter
the worth of the timer (HH:MM:SS:MS) each one time unit so update the screen.

2. Once button is clicked, then we have a tendency to stop the timer and set it to
its default worth (00:00:00:000). 3. Once the stop button is ironed, then we have
a tendency to stop the timer with the worth because it is. 4. Once the beginning
button is ironed and if no alternative button is placed the timer can continue and
can stop only if the applications programme program is closed.

Procedure:-

a) Importing all the specified packages within the program.

b) Declare a category that extends application and implements Runnable.ActionListener.

c) Develop a Panel to stay all the buttons and labels

d) Initialize all the specified variables of kind Button, int, String and mathematician

e) Declare a user-defined technique to initialize all the variables that are to be used

f) Then declare a perform to reset() the timer that contain the try-catch block to handle
exception.

g) Then declare the perform update() to line all the values consequently.

h) Develop a changeLabel() methodology to properly format the show of the timer in output.

i ) Then develop a run() methodology to handle the activation of timer

j) Then develop a ActionListener () to handle the button click event properly.


Program code
Import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;

public class Stopwatch extends Applet implements ActionListener, Runnable {


private Button startButton, stopButton, resetButton;
private Label timeLabel;
private Thread thread;
private long startTime;
private boolean running;

public void init() {


setSize(250, 100);

timeLabel = new Label("00:00:00", Label.CENTER);


timeLabel.setFont(new Font("Arial", Font.BOLD, 36));

startButton = new Button("Start");


stopButton = new Button("Stop");
resetButton = new Button("Reset");

startButton.addActionListener(this);
stopButton.addActionListener(this);
resetButton.addActionListener(this);

add(timeLabel);
add(startButton);
add(stopButton);
add(resetButton);
}

public void actionPerformed(ActionEvent e) {


if (e.getSource() == startButton) {
if (!running) {
startTime = System.currentTimeMillis();
thread = new Thread(this);
thread.start();
running = true;
}
} else if (e.getSource() == stopButton) {
if (running) {
thread.interrupt();
running = false;
}
} else if (e.getSource() == resetButton) {
running = false;
timeLabel.setText("00:00:00");
}
}

public void run() {


while (running) {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
break;
}
long elapsedTime = System.currentTimeMillis() - startTime;
int hours = (int) (elapsedTime / 3600000);
int minutes = (int) ((elapsedTime / 60000) % 60);
int seconds = (int) ((elapsedTime / 1000) % 60);
timeLabel.setText(String.format("%02d:%02d:%02d", hours, minutes,
seconds));
}
}
}

APPLET CODE:
<html>

<body>

<applet>

<applet code="Stopwatch.java" width=400 height=600>

</applet>

</body>

</html>
OUTPUT
Conclusion & References

Conclusion:
The popularity of Java applets means that a vastly increased number of
users will run untrusted software on a regular basis. Current security
strategies that focus on limiting applet access to dangerous system calls
are useful but insufficient; the ability of applets to freely manipulate
even a portion of the screen display, combined with the ability to send
information back to their source machines via the network, allows
applets to mount Trojan horse attacks by imitating the user interface
elements of trusted software

Reference:
 Geeeksforgeeks
 Techtarget
 w3schools

You might also like