Group 3 Papers
Group 3 Papers
Group 3 Papers
FINAL EXAMINATION
CPT 111 – Computer Programming 1
First Semester Academic Year: 2022 – 2023
UNIVERSITY VISION:
A premier national university that develops leaders in the global knowledge economy.
UNIVERSITY MISSION:
A university committed to producing leaders by providing a 21st century learning
environment through innovations in education, multidisciplinary research, and community and
industry partnerships in order to nurture the spirit of nationhood, propel the national economy,
and engage the world for sustainable development.
Directions: You will be divided into groups and will present the Python-based computer
programs you have developed. Your grades will be determined by the criteria listed below.
Program Title QR Factor
Group Members Catapang, Syra Mae
Fernandez, Aira Mae L.
Laresma, Kiele Aira
Nolasco, Seth
Oruga, Ian D.
Yutuc, Troy Jeremy V.
Description of the This program can create/generate QR code with just a few steps,
Program just input the URL link you want to store. When scanned, QR codes
will send the inputed data of your URL link and it will redirect anyone
who scanned the QR to that link. QR code usage has exploded since
2020 when the pandemic necessitated creative tech solutions for a
newly touch-free society. QR codes help businesses collect and
analyze data while increasing customer engagement. With this program
it may help the user to input their store, or any business links and it
will be a lot easier for them to promote their business and it will be
easy for them to engage with their customers.
Also, this program has save function that let the user save their QR
into png or jpeg. so that they can print or post it on social medias and
other applicable plans.
Purpose of the Our program's purpose is to help marketers to promote their
program business using Quick Response Codes (QR Codes). Online shopping
has a huge impact on our economy, so when online shoppers scan
stores with this system, transactions between marketers and consumers
become much easier. QR Codes help to satisfy consumers' desire for a
smart and convenient mobile shopping experience.
End user Marketers.
Limitation/s of the So far, our program was only focused on the URL QR code
Program generator. We have enumerated the limitations of our program. It can
generate a QR code using any URLs entered by the user. However,
multiple QR codes cannot be generated at the same time. Second is the
output, when it comes to the output, it's just the standard QR code
design. There are no features yet to create your own desired style. In
comparison to other apps, users can use their imagination to create
their own QR code with their favorite design. Lastly, for the sake of
the user's safety. Every created QR code has no label or title of the
saved copy, to inform the user of what to expect when scanning the QR
code.
Recommendation/s Even though we are able to create an URL QR code generator, we
and Suggestion/s still lack the knowledge to develop a better way to run this program.
Therefore, we enumerate all the possibilities that may help other
programmers to use and improve this program:
• Less code to use.
• Design of the program.
• Navigate save function.
• Customized QR code.
Python Programming Language Rubric (50 pts)
Program
(Excellent) (Good) (Fair) (Poor) Score
(50 pts)
The program The program The program The program
Program executes executes executes with a does not execute
execution correctly with correctly with no minor (easily (1)
no syntax or syntax but has fixed error) (2-5)
runtime errors runtime errors
(9-10) (6-8)
The program Output has minor Output has The output is
displays correct errors (6-8) multiple errors incorrect (1)
Correct output
output with no (2-5)
errors (9-10)
Program The program The program The output is
displays more displays does not display poorly designed
Design of output than expected minimally the required (1)
(9-10) expected output output (2-5)
(6-8)
Program is The program has The program has Program is
logically well slight logic errors significant logic incorrect
designed (9-10) that do not errors (2-5) (1)
Design of logic
significantly
affect the results
(6-8)
Program is Few Several Program is
stylistically well inappropriate inappropriate poorly written
designed (9-10) design choices design choices (1)
Standards (i.e. poor (i.e. poor variable
variable names, names, improper
improper indentation) (2-5)
indentation) (6-8)
TOTAL
SCORE
Source Code (Python Code):
from tkinter import *
from tkinter import messagebox
import tkinter as tk
import pyqrcode
root = tk.Tk()
root.geometry("1000x1000")
root.title("Group 3 QR CODE Generator")
bg = PhotoImage(file="factor.png")
def generate_QR():
if len(user_input.get())!=0 :
global qr,img
qr = pyqrcode.create(user_input.get())
img = BitmapImage(data = qr.xbm(scale=10))
else:
messagebox.showwarning('warning','All fields are Required!')
try:
display_code()
except:
pass
def display_code():
img_lbl.config(image = img)
output.config(text = "QR code of " + user_input.get())
def exit():
root.destroy()
def tab1_page():
def tab2_page():
global
output,img_lbl,user_input,home_indicate,save_indicate,headingLabel,text
canvas1.destroy()
frame1a.destroy()
button1.destroy()
option_frame = tk.Frame(root, bg="grey")
option_frame.pack(side=tk.LEFT)
option_frame.pack_propagate(False)
option_frame.configure(width=100, height=1000)
ext_btn = Button(option_frame, text="Exit",bd="7",font=("Courier",
15), command=exit)
ext_btn.place(x=10,y=250)
frame1 = tk.Frame(root, bg="skyblue", highlightbackground="black",
highlightthickness=2)
frame1.pack(side=tk.LEFT)
frame1.pack_propagate(False)
frame1.configure(height=1000, width=500)
frame2 = tk.Frame(root, bg="skyblue", highlightbackground="black",
highlightthickness=2)
frame2.pack(side=tk.LEFT)
frame2.pack_propagate(False)
frame2.configure(height=1000, width=1000)
headingFrame = tk.Frame(frame1, bg="black", bd=5)
headingFrame.pack()
headingLabel = Label(headingFrame, text="Group 3 QR Code Generator",
bg='azure4', font=('Times', 20, 'bold'))
headingLabel.pack()
lb = tk.Label(frame1, text="Enter Text/URL", bd=5, font=("Bold", 10))
lb.pack(pady=10)
user_input = tk.StringVar()
text = tk.Entry(frame1, textvariable=user_input, bg="White",
font=('Century 12'))
text.pack(ipadx=60, ipady=8)
button = tk.Button(frame1, text="Generate_QR", width=20,
font=("ariel", 15),command=generate_QR)
button.pack(pady=10)
headingFrame = tk.Frame(frame2, bg="black", bd=5)
headingFrame.pack()
headingLabel = Label(headingFrame, text="Result of your QR",
bg='azure4', font=('Times', 10, 'bold'))
headingLabel.pack()
img_lbl = Label(frame2, bg="skyblue")
img_lbl.pack(pady=10)
home_btn = tk.Button(option_frame, text="Reset", font=("Bold", 15),
bd=5, bg="gainsboro",
command=lambda: reset(home_indicate,tab2_page))
home_btn.place(x=10, y=50)
output = Label(frame2, text="", bg="skyblue")
output.pack(pady=10)
home_indicate = tk.Label(option_frame, text="", bg="grey")
home_indicate.place(x=3, y=50, height=40)
svbutton = Button(option_frame, text="Save QR", font=('Bold',
12),bd=8, command=my_generate)
svbutton.place(x=10,y=150,width=90)
tab1_page()
root.mainloop()
Screenshot of Output: