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

final java..

Uploaded by

niralerashi56
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)
13 views

final java..

Uploaded by

niralerashi56
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/ 13

MICRO PROJECT

“Clock And Timer using core java”

Submitted in partial Fulfillment of


the

Diploma in Computer Engineering


Submitted By
Kedar Butle
Shivani Kumdale
Vashnavi Kumdale

Guided By
Mr. A.D.Thete
2023-2024
Department of Computer Engineering
Government Polytechnic, Yavatmal

Certificate
2023-2024

This Is To Certify That the Micro Project Entitled

Clock And Timer using core java

Has been duly completed by the following group of students under my guidance,
in a satisfactory manner as partial fulfillment of the diploma
course in Computer Engineering MSBTE, Mumbai.

Mr A.D.Thete Sir Prof.S.S.Mete Mam

Subject Teacher HOD


Acknowledgement
It is an incident of great pleasure for us submitting this Micro Project. We take
this opportunity to express our deep sense of gratitude & great thanks to our guide
Mr. A.D. Thete Sir, and HOD. Mrs. S.S. Mete Mam, who has been a constant source of
guidance and inspiration of thoughts. We will always be grateful to them for the
encouragement & suggestion given by them from time
to time.
We would like to thank all the teaching members of Computer Engineering
Department & sincere Thanks to our Principal Dr. R.P.MogreSir
who always keeps on inspiring us.
We are also thankful to our friends & library staff members whose
encouragement & suggestion helped us to complete our micro project.
Last but not least we are thankful to our parents whose best wishes are
always are with us.

Submitted by-
Kedar Butle
Shivani Kumdale
Vashnavi Kumdale
Annexure I

PART-A Micro-project Proposal

-TITLE OF MICROPROJECT-

“Clock And Timer using core java”

1.0 Aims/benefits of the microproject

1. We get better knowledge about Core Java Programming and it’s Packages.
2. We know about different types of uses of Java libraries

2.0 Course Outcomes Addressed


a. Develop programs using Object Oriented methodology in Java.

b. Implement Exception Handling.

3.0 Proposed Methodology

In accordance with aim of the project and assure the proposed and desired outcome we are
committed to adopt the following methodologies:

First of all topic is selected then topic is discussed between the group member and their advice.
And also we had gone through some content available on internet regarding the project topic and
the textbooks.

Secondly we discuss with the teacher about the main topic to be highlighted in the project and
showed it to subject teacher and take their advice for any correction if required

Finally some of the information collected from the internet for this micro-project. By combining all
the data related to your topic we had created this micro-project. And last the project has been
ready and submit to the teachers
5.0 Resource Required

Sr. Name of Specification Quantity Remarks


No. Resources

1. Internet High speed - Helpful

2. Open - Needful
learning Videos and
resources websites

3. Computer - Useful
system Installed
JDK
,notepad.

 NAME OF TEAM MEMBERS WITH ROLL NO:

Kedar Butle (09)


Shivani Kumdale (30)
Vashnavi Kumdale (31)
Annexure II

Part B Micro Project Report

-TITLE OF MICROPROJECT-

“Clock And Timer using core java”

1.0 Rational:

A network service is a capability that facilitates a network operation. It typically is


provided by a server (which can be running one or more services), based on protocols
running at the application layer in the Open Systems Interconnection (OSI) model of the
network.

2.0 Aims/Benefits of the microproject:


1. We get better knowledge about Core Java Programming and it’s Packages.

2. We know about different types of uses of Java libraries.

3.0 Course Outcomes addressed:


1. Develop programs using Object Oriented methodology in Java.

2. Implement Exception Handling.

4.0 Literature Review:

We have collected the resources from various sites and also from our reference book. We read all
the information and collected the main information for fulfilment of the project. we also discussed
the information with our group members.
5.0 Actual methodology followed:
In accordance with aim of the project and assure the proposed and desired outcome we
are committed to adopt the following methodologies:
First of all topic is selected then topic is discussed between the group member and their
advice. And also we had gone through some content available on internet regarding the
project topic and the textbooks.
Secondly we discuss with the teacher about the main topic to be highlighted in the
project and showed it to subject teacher and take their advice for any correction if
required
Finally some of the information collected from the internet for this micro-project. By
combining all the data related to your topic we had created this micro-project. And last
the project has been ready and submit to the teacher.

6.0 Actual resources used:

Sr. Name of Specification Quantity Remarks


No. Resources

1. Internet High speed - Helpful

2. Open - Needful
learning Videos and
resources websites
7.0 Outputs of the Micro-project
8.0 Skills Developed/Learning outcomes of the microproject:
1. We learnt how to work actively in group

2. We improved communication skill by talking with each other.

3. Leadership quality developed and learnt to complete work in given time

4. Negotiation skills.

5. Motivation techniques.

6. Net suffering skill and resources approaching skill developed.

 NAME OF TEAM MEMBERS WITH ROLL NO:

Kedar Butle (09)


Shivani Kumdale (30)
Vashnavi Kumdale (31)
Code:
import
java.text.SimpleDateFormat;
import java.util.Date; import
java.util.Scanner;

public class ClockAndTimer {


public static void main(String[] args) throws Exception {
Scanner scanner = new Scanner(System.in); int choice
= 0;

while (choice != 3) {
System.out.println("Please select an option:");
System.out.println("1. Show Time");
System.out.println("2. Timer");
System.out.println("3. Exit"); System.out.print("Your choice:
");
choice = scanner.nextInt(); switch
(choice)
{ case 1:
showTime(); break; case
2: showTimer(); break;
case 3:
System.out.println("Exiting..."); break; default:
System.out.println("Invalid choice. Please try again."); break;
}
}
scanner.close();
}

public static void showTime() throws Exception { clearScreen();


SimpleDateFormat dateFormat = new SimpleDateFormat("hh:mm a"); Date
date = new Date();
String time = dateFormat.format(date);
System.out.println("TIME : "+time);
Scanner scanner = new Scanner(System.in);
System.out.print("Press enter to go back to the main screen."); scanner.nextLine();
clearScreen();
// scanner.close();
}

public static void showTimer() throws Exception { Scanner scanner


= new Scanner(System.in);
int duration = 0; clearScreen();
System.out.print("Enter the duration of the timer (in seconds): "); duration
= scanner.nextInt(); clearScreen();
for (int i = duration; i >= 0; i--) {
System.out.println(i); Thread.sleep(1000); clearScreen();
}
System.out.println("Timer ended..........");
System.out.print("Press enter to go back to the main screen."); scanner.nextLine();
scanner.nextLine(); clearScreen();
scanner.close();
}

public static void clearScreen() { try


{
if (System.getProperty("os.name").contains("Windows")) { new
ProcessBuilder("cmd", "/c", "cls").inheritIO().start().waitFor();
} else {
System.out.print("\033[H\033[2J");
System.out.flush();
}
} catch (Exception ex) {
// do nothing
}
}
}
Thank you…!!!

You might also like