Professional Documents
Culture Documents
Countdownclock PWP
Countdownclock PWP
Countdown Clock
Name of Student : Sonawane Amol Dilip
Class : TYCO
Semester : Sixth
Roll No : 31
Enrollment No : 2211710311
Seat No : 475367
1|Page
Matoshri Education Society’s
MATOSHRI INSTITUTE OF TECHNOLOGY
A/P : Dhanore, Tal-Yeola , Dist.-Nashik, 423401
CERTIFICATE
2|Page
Micro Project Report Index
Academic Year : 2023-24 Program : Computer Engineering
Class : TYCO Course : PWP
Course Code : 22616 Roll No : 31
Enrollment No : 2211710311 Exam Seat No : 475367
3|Page
Micro–Project Log Book
Semester : Sixth Program : Computer Engineering
Course : PWP Class : TYCO
4|Page
Page |5
ANNEXURE I
Rubric for Evaluation of Micro Project
Academic Year : 2023-24 Program : Computer Engineering
Class : TYCO Course : PWP
Course Code : 22616 Roll No : 31
Co coverage:
CO1: Display Message on screen using Python Script on IDE.
CO2:Devlop Python Program to demonstrate use of oprators.
CO3:Perform oprations on data structures in Python.
CO4:Devlop Functions for given problem.
CO5:Design classes for given problem.
Miss.Ghodake R.B
Page |6
References:
https://www.sciencedirect.com/topics/engineering/countdown-timer
Comments by guide:
Course Teacher
Miss.Ghodake R.B.
Page |7
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.
Page |8
2.STEP
• 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 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.
Page |9
3.SOURCE CODE
import time
from tkinter import *
from tkinter import messagebox
root = Tk()
root.geometry("400x300")
# define title
root.title("Countdown timer")
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)
P a g e | 10
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:
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
root.mainloop()
P a g e | 11
4. OUTPUT
5
P a g e | 12
5. CONCLUSION
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.
t
P a g e | 13
6.REFERENCE
https://www.studocu.com/in/document/dr-apj-abdul-kalam-technicaluniversity/btech/countdown-
timer/34338944
https://www.sciencedirect.com/topics/engineering/countdown-timer
P a g e | 14