0% found this document useful (0 votes)
64 views28 pages

Countdownclock PWP

This document describes a student's micro project on creating a countdown clock. It includes an introduction explaining what a countdown clock is and its uses. It then outlines the steps to create the countdown clock program: 1) Import the time module, 2) Ask the user to input the countdown length in seconds, 3) Send the input as a parameter to the countdown function, 4) Use a while loop that runs until time reaches 0, 5) Use divmod() to calculate minutes and seconds from the time. The document provides code for the countdown clock and displays the output. It concludes that the project goal of creating a basic countdown timer was achieved.

Uploaded by

Bhushan Bhoye
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views28 pages

Countdownclock PWP

This document describes a student's micro project on creating a countdown clock. It includes an introduction explaining what a countdown clock is and its uses. It then outlines the steps to create the countdown clock program: 1) Import the time module, 2) Ask the user to input the countdown length in seconds, 3) Send the input as a parameter to the countdown function, 4) Use a while loop that runs until time reaches 0, 5) Use divmod() to calculate minutes and seconds from the time. The document provides code for the countdown clock and displays the output. It concludes that the project goal of creating a basic countdown timer was achieved.

Uploaded by

Bhushan Bhoye
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 28

Matoshri Education Society’s

MATOSHRI INSTITUTE OF TECHNOLOGY


A/P : Dhanore, Tal-Yeola , Dist.-Nasik, 423401

Micro Project Report


Academic year: 2022-23

Title of Project
“COUNTDOWN CLOCK”

Name of Student: SONAWANE SAGAR SANJAY


Class : TYCO

Semester : SIXTH
Roll No : 31
Enrollment No : 2111710337
Seat No :

Program : COMPUTER ENGINEERING


Course : PWP
Course code : 22616
Name of Teacher: MS.Ghodake R.B .
Matoshri Education Society’s
MATOSHRI INSTITUTE OF TECHNOLOGY
A/P: Dhanore, Tal-Yeola , Dist.-Nasik, 423401

CERTIFICATE
This is to certify that Mr./Ms Sonawane Sagar Sanjay
roll no 31 of Sixth semester of Diploma in Computer Engineering
has successfully completed the Micro Project in “CountDown Clock”
for the Academic year 2022 -2023 as prescribed in MSBTE
curriculum under the guidance of subject teacher.

Place: Yeola Enrollment No: 2111710337

Date: Seat No :

MS.Ghodake R.B. MR. Ghorpade M. S MR. Gujrathi G.S.


Course Teacher HOD Principal
Micro Project Report Index
Academic Year- 2022-23 Program: COMPUTER ENGINEERING
Class: TYCO Corse: PWP
Code: 22616 Roll No: 31
Enrollment No: 2111710337 Exam Seat no:
Title Of Micro Project: “COUNTDOWN CLOCK”

Sr. No. Contents Page No.


1 Introduction 1

2 Step 2

3 Source Code 3

4 Output 5
5 Conclusion 6

6 Reference 7

Signature Of Student MS.Ghodake R.B.


Name of Teacher & Sign
ANNEXURE I
Rubric for Evaluation of Micro Project

Academic Year: 2022-23 Program: COMPUTER ENGINEERING


Class: TYCO Course: PWP
Course Code: 22509 Roll No: 31
Enrollment No: 2111710337 Exam Seat No:

Title of Micro Project:”COUNTDOWN CLOCK”


Group Member:

Sr. No. Roll No. Name of Candidates


1 31 Sonawane Sagar Sanjay

CO coverage:
1. Apply principle of Production and management in all activities

Indicators for different level of Performance


Marks (Evaluation Scale 0 to 2)
Sr. No Criteria Obtained (
Out of 2) Poor (0) Average (1) Good (2)

Submission of Not Submitted proposal or project Project proposal &


1 Project anything in report submitted in project report
proposal/Report time time submitted ij time
CO/PRO Not attained any Attained some Attained
2
attainment CO/PRO CO/PRO maximum
Contains
Content of Not contains
Contains some relevant maximum
3 project/Formatted relevant relevant
information
ng information information
Total Marks
4
(06)
Question/
5
Answers (04)
Total (10):

Additional Comments (if any):

MS.Ghodake R.B.
Name of Teacher & Sign
Micro Project Proposal

Academic Year: 2022-23 Program: COMPUTER ENGINEERING


Class: - TYCO Course: PWP
Course Code: 22616 Roll No: 31
Enrollment No: 2111710337 Exam Seat No:
Title of Micro Project: “COUNTDOWN CLOCK”
Group Members:

Sr. No. Roll No. Name of Candidates

1 31 Sonawane Sagar Sanjay

References:
https://www.sciencedirect.com/topics/engineering/countdown-timer

Comments by guide:

MS.Ghodake R.B.
Course Teacher
Micro Project Log Book

Semester: 2022-23 Program: COMPUTER ENGINEERING


Course: PWP Class: TYCO
Title of Micro Project:” COUNTDOWN CLOCK”

Group member:
Sign
Sr. No. Roll No. Name of group member

1 31 Sonawane Sagar Sanjay

Week No. Discussion & Details Teacher’s Comment Teacher’s Sign.

1 General discussion about micro project activity.


2 Guidelines for micro project

Discussion on different industry/application/study-


3 oriented topics
Group member are finalized and the topic is
4 decided, as
Work distribution to collect the information
5 regarding topic by each member.
Gathered information through the various
6 sources, such as internet, book, magazine,
journal and newspaper.

Discussed the difficulty faced during the collection


7 of necessary information among the group
member.
Discussion with the guide to sort out difficulty
8 faced while collecting the information.

9 Prepared a rough draft & shown it to the guide.


Necessary instructions are given by the guide for
10 its better presentation & Finalized project.
Presentation is given on the topic; Report is
11 prepared on the topic & final submission of micro
project and Report

MS.Ghodake R.B.. MR. Ghorpade M.S.


Name & Signature of project Guide Name & Signature of HOD
1.INTRODUCATION
A countdown timer is a device which is designed to count down to a particular event. They range in design
from simple mechanical devices like those used in the kitchen to electronic versions designed to be
downloaded and installed on a desktop. Numerous websites also use a countdown timer to mark the days,
hours, minutes, and seconds until a major event, and some websites also generate countdown timer codes for
installation on personal websites.
A basic mechanical countdown timer is usually very easy to use. The user manually sets the countdown timer
to indicate the amount of time that needs to be counted down and turns it on. These types of timers are very
useful for baking, when some dishes require timing so that you can keep track of them. Simple electronic
countdown timers are designed to be used again and again in the same way: the user opens the program that
runs the countdown timer, enters the necessary information, and starts it running. In both cases, when the
countdown timer reaches the designated time, it usually makes some sort of signal such as a sound or light to
indicate that the countdown is over.
Many fan websites use countdown timers to show the amount of time left before the release of a major movie
or book. Some people also use them to mark personal landmarks, like trips to foreign countries, days until the
expected birth date of a child, or days until a wedding. These types of countdown timer are single use, and
often have decorative banners which unfurl when the end of the countdown is reached.

1
2.STEP

 Step 1: Import the time module.

 Step 2: Then ask the user to input the length of the countdown in seconds.

 Step 3: This value is sent as a parameter ‘t’ to the user-defined function countdown().

 Any variable read using the input function is a string. So, convert this parameter to ‘int’
as it is of string type.

 Step 4: In this function, a while loop runs until time becomes 0.

 Step 5: Use divmod() to calculate the number of minutes and seconds. You can read more
about it here.

 Step 6: Now print the minutes and seconds on the screen using the variable time format.

 Step 7: Using end = ‘\r’ we force the cursor to go back to the start of the screen (carriage
return) so that the next line printed will overwrite the previous one.

 Step 8: The time. sleep() is used to make the code wait for one sec.

 Step 9: Now decrement time so that the while loop can converge.

 Step 10: After the completion of the loop, we will print “Fire in the hole” to signify the
end of the countdown.

2
3.SOURCE CODE

import time
from tkinter import *
from tkinter import messagebox
root = Tk()
root.geometry("400x300")

# define title
root.title("Countdown timer")

# set background color


root.config(bg='sky blue')
hour = StringVar()
minute = StringVar()
second = StringVar()
hour.set("00")
minute.set("00")
second.set("00")
hour_box = Entry(
root,
width=3,
font=("Arial", 18, ""),
textvariable=hour
)

hour_box.place(x=80, y=20)

mins_box = Entry(
root,
width=3,
font=("Arial", 18, ""),
textvariable=minute)

mins_box.place(x=130, y=20)

sec_box = Entry(
root,
width=3,
font=("Arial", 18, ""),
textvariable=second)

sec_box.place(x=180, y=20)

def countdowntimer():
try:
user_input = int(hour.get()) * 3600 + int(minute.get()) * 60 + int(second.get())
except:
messagebox.showwarning('', 'Invalid Input!')
while user_input > -1:
3
mins, secs = divmod(user_input, 60)

hours = 0
if mins > 60:
hours, mins = divmod(mins, 60)
hour.set("{0:2d}".format(hours))
minute.set("{0:2d}".format(mins))
second.set("{0:2d}".format(secs))

root.update()
time.sleep(1)

if (user_input == 0):
messagebox.showinfo("Time Countdown", "Time Over")

user_input -= 1

btn = Button(root, text='Set Time Countdown', bd='5',


command=countdowntimer)
btn.place(x=80, y=120)

root.mainloop()

4
4. OUTPUT

Step 1: Enter a 60 Second

Step 2: Click to start Button

5
5. CONCLUSION

We want to create a
countdown timer that
has a very
interesting After
completion of this
digital stop watch
project I have learnt
some knowledge in
designing the

6
Count down timer and
understood the coding
process
And also learn how to
install module as well as
create
gui (graphical user
interface by the help of
tkinter

7
We want to create a
countdown timer that
has a very
interesting After
completion of this
digital stop watch
project I have learnt
some knowledge in
designing the

8
Count down timer and
understood the coding
process
And also learn how to
install module as well as
create
gui (graphical user
interface by the help of
tkinter

9
We want to create a
countdown timer that
has a very
interesting After
completion of this
digital stop watch
project I have learnt
some knowledge in
designing the

1
0
Count down timer and
understood the coding
process
And also learn how to
install module as well as
create
gui (graphical user
interface by the help of
tkinter

1
1
We want to create a
countdown timer that
has a very
interesting After
completion of this
digital stop watch
project I have learnt
some knowledge in
designing the

1
2
Count down timer and
understood the coding
process
And also learn how to
install module as well as
create
gui (graphical user
interface by the help of
tkinter

1
3
We want to create a
countdown timer that
has a very
interesting After
completion of this
digital stop watch
project I have learnt
some knowledge in
designing the

1
4
Count down timer and
understood the coding
process
And also learn how to
install module as well as
create
gui (graphical user
interface by the help of
tkinter

1
5
We want to create a
countdown timer that
has a very
interesting After
completion of this
digital stop watch
project I have learnt
some knowledge in
designing the

1
6
Count down timer and
understood the coding
process
And also learn how to
install module as well as
create
gui (graphical user
interface by the help of
tkinter

1
7
We want to create a
countdown timer that
has a very
interesting After
completion of this
digital stop watch
project I have learnt
some knowledge in
designing the

1
8
Count down timer and
understood the coding
process
And also learn how to
install module as well as
create
gui (graphical user
interface by the help of
tkinter

1
9
We want to create a
countdown timer that
has a very
interesting After
completion of this
digital stop watch
project I have learnt
some knowledge in
designing the

2
0
Count down timer and
understood the coding
process
And also learn how to
install module as well as
create
gui (graphical user
interface by the help of
tkinter
We want to create a countdown timer that has a very interesting After completion of this stopwatch project
After completion of this digital stop watch project I have learn some knowledge in designing the Count down
clock and understood the coding process.

2
1
6.REFERENCE

I. https://www.studocu.com/in/document/dr-apj-abdul-kalam-technical-university/btech/
countdown-timer/34338944
II. https://www.sciencedirect.com/topics/engineering/countdown-timer

2
2

You might also like