0% found this document useful (0 votes)
4 views22 pages

CSC Project

The document outlines a Computer Management System project developed using Python and MySQL for a computer institute. It includes sections on introduction, theoretical background, problem definition, system implementation, and source code examples. The system allows user enrollment, editing of records, and data management through a user-friendly interface.

Uploaded by

dbx20222023
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)
4 views22 pages

CSC Project

The document outlines a Computer Management System project developed using Python and MySQL for a computer institute. It includes sections on introduction, theoretical background, problem definition, system implementation, and source code examples. The system allows user enrollment, editing of records, and data management through a user-friendly interface.

Uploaded by

dbx20222023
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
You are on page 1/ 22

SINDHI MODEL SENIOR SECONDARY SCHOOL

COMPUTER MANAGEMENT SYSTEM


By A.Anish

5
Contents

S.NO TOPIC PAGE NO


1. Introduction 2
2. Theoretical Background 3
3. Problem Definition & Analysis 6
4. System Implementation 7
5. The Hardware used 7
6. The Softwares used 7
7. System Design & Development 8
8. Coding 9
9. References 21
INTRODUCTION

Python is a widely used general-purpose, high level programming


language. It was created by Guido van Rossum in 1991 and further
developed by the Python Software Foundation. It was designed with an
emphasis on code readability, and its syntax allows programmers to
express their concepts in fewer lines of code.Python is a programming
language that lets you work quickly and integrate systems more
efficiently.
There are two major Python versions: Python 2 and Python 3. Both are
quite different.
Learning Python gives the programmer a wide variety of career paths to
choose from. Python is an open-source (free) programming language that
is used in web programming, data science, artificial intelligence, and many
scientific applications. Learning Python allows the programmer to focus
on solving problems, rather than focusing on syntax. Its relative size and
simplified syntax give it an edge over languages like Java and C++, yet the
abundance of libraries gives it the power needed to accomplish great
things.
THEORETICAL BACKGROUND
What is Database ?
Introduction and Concepts:
A database is a collection of information related to a particular subject or purpose, such as
tracking customer orders or maintaining a music collection. Using any RDBMS application
software like MS SQL Server, MySQL, Oracle, Sybase etc, you can manage all your information
from a single database file. Within the file, divide your data into separate storage containers
called tables. You may and retrieve the data using queries.

A table is a collection of data about a specific topic, such as products or suppliers. Using a
separate table for each topic means you can store that data only once, which makes your
database more efficient and reduces data-entry errors. Table organises data into columns (called
fields) and rows (called records).

A Primary key is one or more fields whose value or values uniquely identify each record in a
table. In a relationship, a primary key is used to refer to specific record in one table from another
table. A primary key is called foreign key when it is referred to from another table.

To find and retrieve just the data that meets conditions you specify, including data from multiple
tables, create a query. A query can also update or delete multiple records at the same time, and
perform built-in or custom calculations on your data.
Role of RDBMS Application Program:

A computer database works as a electronic filing system, which has a large number of ways of cross-
referencing, and this allows the user many different ways in which to re-organize and retrieve data. A
database can handle business inventory, accounting and filing and use the information in its files to
prepare summaries, estimates and other reports. The management of data in a database system is done
by means of a general-purpose software package called a Database Management System (DBMS). Some
commercially available DBMS are MS SQL Server, MS ACCESS, INGRES, ORACLE, and Sybase. A database
management system, therefore, is a combination of hardware and software that can be used to set up
and monitor a database, and can manage the updating and retrieval of database that has been stored in it.
Most of the database management systems have the following capabilities:

 Creating of a table, addition, deletion, modification of records.


 Retrieving data collectively or selectively.
 The data stored can be sorted or indexed at the user's discretion and direction.
 Various reports can be produced from the system. These may be either standardized report or
that may be specifically generated according to specific user definition.
 Mathematical functions can be performed and the data stored in the database can be manipulated
with these functions to perform the desired calculations.
 To maintain data integrity and database use.
The DBMS interprets and processes users' requests to retrieve information from a database. In most
cases, a query request will have to penetrate several layers of software in the DBMS and operating
system before the physical database can be accessed. The DBMS responds to a query by invoking the
appropriate subprograms, each of which performs its special function to interpret the query, or to locate
the desired data in the database and present it in the desired order.

What is My SQL ?
The management of data in a database system is done by means of a general-purpose software package
called a Database Management System (DBMS). Some commercially available RDBMS are MS SQL Server,
MS ACCESS, INGRES, ORACLE, and Sybase. MySQL, the most popular Open Source SQL database
management system, is developed, distributed, and supported by Oracle Corporation. MySQL is named
after co-founder Monty Widenius's daughter, My. The name of the MySQL Dolphin (our logo) is “Sakila,”.

 MySQL is a database management system.


A database is a structured collection of data. It may be anything from a simple shopping list to a
picture gallery or the vast amounts of information in a corporate network. To add, access, and
process data stored in a computer database, you need a database management system such as
MySQL Server. Since computers are very good at handling large amounts of data, database
management systems play a central role in computing, as standalone utilities, or as parts of
other applications.
 MySQL is based on SQL.
A relational database stores data in separate tables rather than putting all the data in one big
storeroom. This adds speed and flexibility.
 MySQL software is Open Source.
Open Source means that it is possible for anyone to use and modify the software. Anybody can
download the MySQL software from the Internet and use it without paying anything.
 The MySQL Database Server is very fast, reliable, and easy to use.
If that is what you are looking for, you should give it a try. MySQL Server also has a practical set
of features developed in close cooperation with our users. Its connectivity, speed, and security
make MySQL Server highly suited for accessing databases on the Internet.
Problem definition & Analysis

 The hardest part of building a software system is deciding precisely what to build. No other part
of the conceptual work is so difficult as establishing the detailed technical requirement. Defining
and applying good, complete requirements are hard to work, and success in this endeavor has
eluded many of us. Yet, we continue to make progress.
 Problem definition describes the What of a system, not How . The quality of a software product is
only as good as the process that creates it. Problem definition is one of the most crucial steps in
this creation process. Without defining a problem, developers do not know what to build,
customers do not know what to expect, and there is no way to validate that the built system
satisfies the requirement.
 Problem definition and Analysis is the activity that encompasses learning about the problem to be
solved, understanding the needs of customer and users, trying to find out who the user really is,
and understanding all the constraints on the solution. It includes all activities related to the
following:
 Identification and documentation of user’s needs.
 Creation of a document that describes the external behavior and the association constraints that
will satisfies those needs.
 Analysis and validation of the requirements documents to ensure consistency, completeness, and
feasibility
 Evolution of needs.
 To provide efficient and secured Information storage, flow and retrieval system, ensuring the
integrity and validity of records.
 To provide graphical and user-friendly interface to interact with a centralized database based on
client-server architecture.
 To identify the critical operation procedure and possibilities of simplification using modern IT
tools and practices.
System implementation

SOFTWARE SPECIFICATION:-
Operating System : Windows 7
Platform : Python IDLE 3.7
Database : MySQL SERVER 5.1
Languages : Python

HARDWARE SPECIFICATION:-

Processor : Dual Core and above


Hard Disk : 40GB
Ram : 1024 MB

Note: For Python-MySQL connectivity, following data have been used:-


Host- localhost, user- root, password- MANAGER, database- CABEL
System design and devolopment

Database Design:
An important aspect of system design is the design of data storage structure. To begin with a logical
model of data structure is developed first. A database is a container object which contains tables,
queries, reports and data validation policies enforcement rules or contraints etc. A logical data often
represented as a records are kept in different tables after reducing anomalies and redundancies. The
goodness of data base design lies in the table structure and its relationship.

SOURCE CODES

Create a Python project of a Computer Institute Management System to register yourself into SSA
Computer Institute.
Note:
Allow the user to input their number, name, desired course
Allow the administrator to delete an enrollment, edit the name and course of a candidate.
Allows the user to see the details.
SOLUTION:

CIMS_CREATE_DATABASE.PY

import mysql.connector as sql

conn=sql.connect(host='localhost',user='root',password='man

ager')

if conn.is_connected():

print("Successfully Connected")

c1=conn.cursor()

c1.execute('create database cims')

print ('Database created')

CIMS_CREATE_TABLES.PY
import mysql.connector as sql

conn=sql.connect(host='localhost',user='root',passwd='manag

er',database='cims')

if conn.is_connected():

print("Successfully Connected")

c1=conn.cursor()

c1.execute('create table candidate_details(adm_no int

primary key, candidate_name varchar(50), course_select

varchar(20))')

print ('Table created')

CIMS_MENU.PY

import mysql.connector as sql

conn=sql.connect(host='localhost',user='root',passwd='manag

er',database='cims')
#if conn.is_connected():

# print("Successfully Connected")

c1=conn.cursor()

print("SSA Computer Institute Management System")

print(" ")

print("1. Enrolling For A Course")

print("2. Edit Enrollments (as admin)")

print("3. Display Details")

print("4. Exit")

choice=int(input("Enter the Choice - "))

if choice==1:

v_admno=int(input("Enter the Admission Number: "))

v_candidatename=input("Enter your name : ")

v_course=input("Enter the Course: ")


if v_course=='JAVA':

v_course='JAVA'

elif v_course=='Python':

v_course='Python'

elif v_course=='C':

v_course='C'

elif v_course=='BASIC':

v_course='BASIC'

elif v_course=='HTML':

v_course='HTML'

V_SQL_Insert = "insert into cand_details values (" +

str(v_admno) + ",'" + v_candidatename +"','" + v_course + "')"

c1.execute(V_SQL_Insert)
print(" ")

print(" You are Enrolled Mr.",v_candidatename,"Congrats!!!")

conn.commit()

print(" ")

print ("Your enrollment for", v_course ,"course is

successful!")

if choice==2:

uname=input("Enter Username:")

passwd=input("Enter Password:")

u_name='abc'

pass_wd='123'

if (uname==u_name) and (passwd==pass_wd):

print("Password Accepted")

print("1. Delete An Enrollment")


print("2. Edit Name")

print("3. Edit Course")

print(" ")

option=int(input("Which of the above options would you like

to choose ?"))

if option==1:

change_adm_no=int(input("Enter the admission number of

the candidate to be removed:"))

V_SQL_Insert = "delete from cand_details where adm_no =

" + str(change_adm_no)

c1.execute(V_SQL_Insert)

print("")

print("Successfully removed")

conn.commit()

if option==2:
change_adm_no=int(input("Enter the admission number of

the candidate whose name is to be changed:"))

change_name=input("Enter the desired name:")

V_SQL_Insert = "update cand_details set candidate_name

= '" + change_name + "' where adm_no = " + str(change_adm_no)

c1.execute(V_SQL_Insert)

print("")

print("Successfully edited")

conn.commit()

if option==3:

change_adm_no=int(input("Enter the admission number of

the candidate whose course is to be changed:"))

change_course=input("Enter the Course: ")

if change_course=='JAVA':

change_course='JAVA'
elif change_course=='Python':

change_course='Python'

elif change_course=='C':

change_course='C'

elif change_course=='BASIC':

change_course='BASIC'

elif change_course=='HTML':

change_course='HTML'

V_SQL_Insert = "update cand_details set course_select =

'" + change_course + "' where adm_no = " + str(change_adm_no)

c1.execute(V_SQL_Insert)

print("")

print("Successfully modified")

conn.commit()
else:

print("Wrong Username or Password")

if choice==3:

c1.execute("Select * from cand_details ")

data=c1.fetchall()

for row in data:

print("Candidates Details ")

print("Admission Number : ", row[0])

print(" Candidate Name : ", row[1])

print("Course Selected : ", row[2])

print(" ")

print(" ")

if choice==4:

print('Thank You')
OUTPUTS

(Ctrl+Click the link to go to presentation)


(After enrolling 3 candidates)
references

In order to work on this project titled COMPUTER INSTITUTE MANAGEMENT SYSTEM, the following books
and literature are refered by me during the various phases of development of the project.

(1) http://www.mysql.org/

(2) http://www.python.org/

(3) Informatics Practices for class XII

-by Sumita Arora& Preeti Arora

Website: https://www.w3resource.com

Other than the above-mentioned books, the suggestions and supervision of my teacher and my class
experience also helped me to develop this software project.

You might also like