0% found this document useful (0 votes)
9 views13 pages

Clock and Timer Project in Core 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)
9 views13 pages

Clock and Timer Project in Core 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

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. [Link]
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 [Link] Sir [Link] 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. [Link]
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
[Link];
import [Link]; import
[Link];

public class ClockAndTimer {


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

while (choice != 3) {
[Link]("Please select an option:");
[Link]("1. Show Time");
[Link]("2. Timer");
[Link]("3. Exit"); [Link]("Your choice:
");
choice = [Link](); switch
(choice)
{ case 1:
showTime(); break; case
2: showTimer(); break;
case 3:
[Link]("Exiting..."); break; default:
[Link]("Invalid choice. Please try again."); break;
}
}
[Link]();
}

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


SimpleDateFormat dateFormat = new SimpleDateFormat("hh:mm a"); Date
date = new Date();
String time = [Link](date);
[Link]("TIME : "+time);
Scanner scanner = new Scanner([Link]);
[Link]("Press enter to go back to the main screen."); [Link]();
clearScreen();
// [Link]();
}

public static void showTimer() throws Exception { Scanner scanner


= new Scanner([Link]);
int duration = 0; clearScreen();
[Link]("Enter the duration of the timer (in seconds): "); duration
= [Link](); clearScreen();
for (int i = duration; i >= 0; i--) {
[Link](i); [Link](1000); clearScreen();
}
[Link]("Timer ended..........");
[Link]("Press enter to go back to the main screen."); [Link]();
[Link](); clearScreen();
[Link]();
}

public static void clearScreen() { try


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

Common questions

Powered by AI

The functionalities of the ‘Clock And Timer’ project reflect principles of Object-Oriented Programming (OOP) through the use of classes and methods to encapsulate data and operations, such as the methods showTime() and showTimer(), to perform specific tasks. This approach exemplifies encapsulation and method abstraction, key OOP concepts, by organizing code into reusable and independent units .

The code for the "Clock And Timer" project demonstrates clean code principles through meaningful naming conventions, such as method names like showTime() and showTimer(), clarity in method functionality, and the use of comments to explain sections of code where necessary. It also uses encapsulation to separate concerns, providing distinct methods for different functionalities, thereby enhancing maintainability and readability .

The potential benefits of using open learning resources include access to a wide range of information, flexibility in learning at one's own pace, and the opportunity to incorporate diverse perspectives. However, challenges may include the need for critical evaluation skills to determine the credibility of sources, potential information overload, and the difficulty of finding resources that are directly relevant or comprehensive enough for specific project requirements .

The main function in the "Clock And Timer" Java code employs a command-line interface strategy using a loop to continuously prompt the user for input until a specified exit condition is met. It uses a switch-case structure to direct the flow of execution based on the user's choice, invoking specific methods for displaying the time or running a timer, encapsulating functionality and enhancing code readability and modularity .

The primary learning outcomes from the micro-project included enhanced teamwork skills, improved communication and leadership abilities, development of negotiation skills, motivation techniques, and the ability to efficiently search the internet and approach resources, all contributing to overall professional and personal development .

The students followed a systematic methodology: selecting a topic, conducting discussions amongst themselves and with their teacher to refine the project focus, reviewing internet resources and textbooks for information, and combining all gathered data to create the project. They then presented it to teachers for feedback before finalizing the submission .

The "Clock And Timer" project developed students' professional skills by enhancing their teamwork and communication capabilities, improving leadership qualities for task completion, and honing negotiation skills. Additionally, it improved their ability to motivate themselves and others, enhanced their information retrieval skills, and fostered effective resource management, which are critical in professional settings .

The project "Clock And Timer using core java" contributes to understanding Java programming concepts by enhancing knowledge of core Java programming and its packages, allowing the application of Object Oriented programming techniques, and implementing Exception Handling. These activities require the application of Java libraries in practical scenarios, thus deepening understanding of how to utilize Java's capabilities effectively .

The "Clock And Timer using core java" project applied exception handling principles by wrapping sections of code where errors could occur—such as reading user input and sleeping the thread with Thread.sleep()—in a try-catch block to gracefully handle potential exceptions like InterruptedException, enhancing the program's robustness and user experience .

The use of high-speed internet was integral to the successful completion of the "Clock And Timer" project as it enabled quick access to a wide array of Java programming resources and literature necessary for understanding the project requirements. It facilitated timely communication and collaboration among team members and teachers, ensuring that the gathered information was comprehensive and current, which are crucial for a detailed project execution .

You might also like