Dbms Assignment - 1
Dbms Assignment - 1
: 002110501141
: A3
: CSE
: 3rd Year 2nd Sem
Problem:1
Develop an application as follows. User will enter two numbers.
Provide button to add or to find the difference. Depending on the
option result will be shown in result box. Add a suitable title to the
screen. Whenever the form is loaded, also display current date in the
title bar.
--------------------------------------------------------------------------------------------
Software Used:
For developing the calculator application, Python programming language was
used along with the Tkinter library for creating the graphical user interface
(GUI).
Component Properties:
Buttons: Buttons represent various keys of the calculator, such as digits (0-9),
decimal point, arithmetic operators (+, -, *, /), and other functions (clear,
equal).
Display Field: A display field shows the current input and the result of
calculations.
Labels: Labels may be used to provide additional information or headings,
though they're not always necessary in a basic calculator GUI.
GUI Layout:
The GUI layout is designed to resemble a traditional calculator, with buttons
arranged in a grid pattern. Common layout features include:
Numerical digit buttons arranged in a grid layout for easy access.
Arithmetic operator buttons grouped logically and positioned adjacent to the
display field.
Function buttons (clear, equal) placed strategically for user convenience.
Interface Layout:
The interface layout follows a familiar calculator design, with features such as:
A clear distinction between the display field and the input buttons.
Buttons organized into rows and columns, mimicking the layout of a physical
calculator.
Adequate spacing between buttons to prevent accidental clicks and improve
readability.
Overall, the GUI and interface layout aim to provide users with a familiar and
intuitive calculator experience, allowing them to perform basic arithmetic
operations efficiently.
Problem:2
Consider list of departments (dept code and name), list of students (roll, dept
code, name, address and phone) preloaded in array. Now develop an
application for the following. User may add/search/edit/delete/display all
student record. While adding, ensure roll must be unique, a list of dept name
to be shown from which user selects one and corresponding dept code to be
stored. On collecting the data user may choose. CANCEL/SAVE button to
decide course of action. For searching user provides roll. If it exists details are
shown else suitable message to be displayed. To delete user provides roll. If it
does not exist then suitable message is to be displayed. To edit also user
provides roll. If it exists user may be allowed to edit any field except roll. User
may select CANCEL/SAVE to decide course of action. To display all records, at a
time five records are to be shown. IT will also have PREV/NEXT button to
display previous set and next set respectively. When first set is displayed PREV
button must be disabled and at last set NEXT button must be disabled.
Software Used:
For the development of the Student Management System, Python
programming language was used along with the Tkinter library for creating the
graphical user interface (GUI).
Component Properties:
Entry Fields: Used for entering student information such as roll number, department code,
name, address, and phone number.
Buttons: Perform specific actions when clicked, such as adding, searching, editing, deleting,
or displaying student records.
GUI Layout:
The GUI layout is designed to be user-friendly and intuitive, with components
organized logically to facilitate smooth interaction. The layout includes:
Entry fields for inputting student information.
Buttons for performing various operations.
Labels providing instructions and feedback messages
ADD STUDENT:
SEARCH STUDENT: