0% found this document useful (0 votes)
27 views

Computer science Project Report (1)

Uploaded by

snichap20
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Computer science Project Report (1)

Uploaded by

snichap20
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 22

COVER PAGE

RAJHANS VIDYALAYA
ANDHERI-WEST
MUMBAI
CERTIFICATE

This is to certify that this computer project


has been completed by ____________________
of class ________ and board roll
number____________, in partial fulfilment of
the curriculum of the CENTRAL BOARD OF
SECONDARY EDUCATION leading to the
award of All India Senior School Certificate
for the year 2024-2025.
____________________
______________________
External Examiner
Internal Examiner
Date: Date:

____________________
______________________
SCHOOL SEAL
PRINCIPAL
Date:

Index
Sr No. Topic Page
No.
1. Acknowledgement 4

2. Hardware Configuration 5

3. Defining Computer Science: 6-7


Where Logic Meets Innovation

4. Python: The Language That 8-11


Powers Innovation

4. Mastering MySQL: A Powerful 11-17


Database Management System

5. Introduction to the Project 18-

6. Code and its Output

7. Python and MySQL: Limitations


and Improvements
8. Bibliography
Acknowledgment
I would like to extend my sincere thanks to all those
who helped make this Computer Science project a
success.
Firstly, I am deeply grateful to our esteemed
Principal, Mrs, Ritu Dubey, for providing a conducive
learning environment and the opportunity to
undertake this project. I would also like to thank our
Senior Secondary Coordinators, Mrs. Geetha Murudi
and Mrs. Shaila Prabhu, for their constant
encouragement and support throughout the course
of this work.
I owe special thanks to my Computer Science
teachers, Mrs. Geetha Murudi, Mrs. Deepali Nagrale
and Mrs. Jayshree Kutty, for their continuous
guidance and insightful feedback. Their expertise
and mentorship were invaluable in the successful
execution of this project.
Additionally, I would like to express my gratitude to
Mr. Akash Sahu, whose technical assistance and
resource management made the practical
components of this project more efficient and
effective.
Hardware Configuration
 Computer used for report documentation
Device name- DESKTOP-LVR77K6
Processor- Intel(R) Pentium(R) CPU G2030 @
3.00GHz 3.00 GHz
Installed RAM- 6.00 GB (5.89 GB usable)
Device ID- 9C1230AF-D3EA-45CA-BA43-
7FF85A02DA1B
Product ID- 00326-30000-00001-AA428
System type- 64-bit operating system, x64-based
processor
Defining Computer Science:
Where Logic Meets Innovation
Computer science is a very young science that has
its origins in the middle of the twentieth century. For
this reason, describing its history, or the history of
an area of research in computer science, is an
activity that receives scant attention.
The discipline of computer science
does not have a clear demarcation,
and even its name is a source of
debate. Computer science is
sometimes called informatics or
information science or information
and communication science. A quote
widely attributed to Edsger Dijkstra
is Computer science is no more Edsger Dijkstra
about computers than astronomy is
about telescopes.
If computer science is not about computers, what is
it about? We claim it is about behaviour. This
behaviour can be exhibited by a computer executing
a program, but equally well by a human being
performing a series of actions. In general, behaviour
can be shown by any agent. Here, an agent is simply
an entity that can act. So, computer science is about
behaviour, about processes, about things happening
over time. We are concerned with agents that are
executing actions, taking input, emitting output, and
communicating with other agents.
Thus, an agent has behaviour, e.g., the execution of
a software system, the actions of a machine or even
the actions of a human being. Behaviour is the total
of events or actions that an agent can perform, the
order in which they can be executed and maybe
other aspects of this execution such as timing,
probabilities or evolution.

In conclusion, while computer science may have


started with machines, it has grown into a vast and
multidisciplinary field concerned with the behaviour
of agents in a variety of contexts. Whether it's a
software system responding to inputs, a machine
performing a task, or a human interacting with
technology, computer science is about
understanding
and modelling
processes that
happen over time
ultimately
providing insights
into the dynamic
interactions
between agents
in our
increasingly
complex world.
Python: The Language That
Powers Innovation
 What is Python?
Python is an interpreted,
object-oriented, high-
level programming
language with dynamic
semantics. Its high-level
built in data structures,
combined with dynamic
typing and dynamic
binding, make it very
attractive for Rapid
Application Development, as well as for use as a
scripting or glue language to connect existing
components together. Python's simple, easy to learn
syntax emphasizes readability and therefore reduces
the cost of program maintenance. Python supports
modules and packages, which encourages program
modularity and code reuse. The Python interpreter
and the extensive standard library are available in
source or binary form without charge for all major
platforms, and can be freely distributed.
Programmers fall in love with Python because of the
increased productivity it provides. Since there is no
compilation step, the edit-test-debug cycle is
incredibly fast. Debugging Python programs is easy:
a bug or bad input will never cause a segmentation
fault. Instead, when the interpreter discovers an
error, it raises an exception. When the program
doesn't catch the exception, the interpreter prints a
stack trace. A source level debugger allows
inspection of local and global variables, evaluation of
arbitrary expressions, setting breakpoints, stepping
through the code a line at a time, and so on. The
debugger is written in Python itself, testifying to
Python's introspective power. On the other hand,
often the quickest way to debug a program is to add
a few print statements to the source: the fast edit-
test-debug cycle makes this simple approach very
effective.
 Uses and Applications of Python

1. Web Development: Python's frameworks like


Django and Flask are popular for creating scalable,
dynamic websites. Many internet companies rely on
Python for web development due to its efficiency
and scalability.
2. Data Science: Python enables data scientists to
build AI models and complex algorithms, allowing
organizations to extract patterns from data and
make informed decisions, playing a key role in
neural networks and decision-making for future
investments.
3. Web Scraping and Automation: Python libraries
like BeautifulSoup and pandas help automate tasks,
analyse data, and provide customer support via AI
bots. Businesses use web scraping to gather insights
from competitors and optimize their strategies.
4. CAD (Computer-Aided Design): Python can be
used to create 2D and 3D models for CAD
applications. It offers easy deployment and
customization for developing digital designs.
5. Artificial Intelligence and Machine Learning:
Python's libraries like Pandas and TensorFlow are
central to AI and machine learning applications,
enabling data analysis and statistical modeling. Its
extensive support in this rapidly evolving field has
made it the go-to language.
6. Game Development: With its Pygame library, 2D,
3D games are developed. Popular games like Pirates
of the Caribbean and Battlefield 2 were built using
Python, highlighting its growing role in the gaming
industry.

Advantages of Disadvantages of
Python Python
Easy to learn, read, and Restrictions in design
understand
Versatile and open- Memory
source inefficient
Improves Weak mobile
productivity computing
Supports a wide range of Runtime errors
libraries
Huge library Slow execution
ecosystem speed

 The Importance of Python Programming for


Children in Today's Digital Age
Python is a great language for children due to its
simplicity and readability, allowing them to learn
programming concepts easily. Its versatility spans
fields like web development, data analysis, AI, and
robotics, exposing kids to real-world applications.
Python also offers a wealth of educational resources
tailored for beginners, ensuring they get the support
they need through tutorials, online platforms, and
communities.
Learning Python fosters critical thinking,
computational skills, and systematic problem-
solving, which benefit children beyond
programming. As coding becomes essential in the
digital age, Python equips children with future-ready
skills, opening doors to potential career
opportunities and lifelong learning. By starting
young, they can confidently navigate and contribute
to the tech-driven world.

Mastering
MySQL: A
Powerful
Database
Management
System
 What is MySQL?
MySQL is the world’s most popular open-source
database. According to DB-Engines, MySQL ranks as
the second-most-popular database, behind Oracle
Database. MySQL powers many of the most
accessed applications, including Facebook, Twitter,
Netflix, Uber, Airbnb, Shopify, and Booking.com.
Since MySQL is open source, it includes numerous
features developed in close cooperation with users
over more than 25 years. So, it’s very likely that
your favourite application or programming language
is supported by MySQL Database.
 What is the name of the MySQL dolphin?
The MySQL logo is a dolphin named Sakila. The
name was chosen from a large list suggested by
users during the “Name the Dolphin” contest. The
winning name was submitted by Ambrose Twebaze,
an open-source software developer from Eswatini
(formerly Swaziland), Africa.
 MySQL is an open-source relational database
management system
Databases are the essential data repository for all
software applications. For example, whenever
someone conducts a web search, logs in to an
account, or completes a transaction, a database
system is storing the information so it can be
accessed in the future.
A relational database stores data in separate tables
rather than putting all the data in one big storeroom.
The database structure is organized into physical
files optimized for speed. The logical data model,
with objects such as data tables, views, rows, and
columns, offers a flexible programming environment.
You set up rules governing the relationships between
different data fields, such as one to one, one to
many, unique, required, or optional, and “pointers”
between different tables. The database enforces
these rules so that with a well-designed database
your application never sees data that’s inconsistent,
duplicated, orphaned, out of date, or missing.
The “SQL” part of “MySQL” stands for “Structured
Query Language.” SQL is the most common
standardized language used to access databases.
Depending on your programming environment, you
might enter SQL directly (for example, to generate
reports), embed SQL statements into code written in
another language, or use a language-specific API
that hides the SQL syntax.
Open source means it’s possible for anyone to use
and modify the software. Anybody can download
MySQL software from the internet and use it without
paying for it. You can also change its source code to
suit your needs. MySQL software uses the GNU
General Public License (GPL) to define what you may
and may not do with the software in different
situations.
 MySQL: the #1 choice for developers
MySQL consistently ranks as the most popular
database for developers, according to surveys
from Stack Overflow and JetBrains. Developers love
its high performance, reliability, and ease of use.
MySQL supports the following popular development
languages and drivers:

PHP Python Java/JDBC Node.js


Perl Ruby Go Rust
C C++ C#/.NET ODBC

MySQL has also become the database of choice for


many of the most successful open-source
applications, including WordPress, Drupal, Joomla,
and Magento. MySQL is the “M” in the highly popular
open-source LAMP (Linux, Apache, MySQL,
Perl/Python/PHP) stack to develop web applications.
 MySQL works in client/server or embedded
systems
MySQL Database is a client/server system that
consists of a multithreaded SQL server that supports
different back ends, several different client programs
and libraries, administrative tools, and a wide range
of application-programming interfaces (APIs). MySQL
is also an embedded library that makes applications
smaller, faster, and easier to manage.
MySQL benefits
1. Ease of use: Developers can install MySQL in
minutes, and the database is easy to manage.
2. Reliability: MySQL is one of the most mature and
widely used databases. It has been tested in a wide
variety of scenarios for more than 25 years,
including by many of the world’s largest companies.
Organizations depend on MySQL to run business-
critical applications because of its reliability.
3. Scalability: MySQL scales to meet the demands of
the most accessed applications. MySQL’s native
replication architecture enables organizations such
as Facebook to scale applications to support billions
of users.
4. Performance: HeatWave MySQL is faster and less
expensive than other database services, as
demonstrated by multiple standard industry
benchmarks, including TPC-H, TPC-DS, and CH-
benCHmark.
5. High availability: MySQL delivers a complete set of
native, fully integrated replication technologies for
high availability and disaster recovery. For business-
critical applications, and to meet service-level
agreement commitments, customers can achieve
 Recovery point objective = 0 (zero data loss)
 Recovery time objective = seconds (automatic
failover)
6. Security: Data security entails protection and
compliance with industry and government
regulations, including the European Union General
Data Protection Regulation, the Payment Card
Industry Data Security Standard, the Health
Insurance Portability and Accountability Act, and the
Defence Information Systems Agency’s Security
Technical Implementation Guides. MySQL Enterprise
Edition provides advanced security features,
including authentication/authorization, transparent
data encryption, auditing, data masking, and a
database firewall.
7. Flexibility: The MySQL Document Store gives users
maximum flexibility in developing traditional SQL
and NoSQL schema-free database applications.
Developers can mix and match relational data and
JSON documents in the same database and
application.
 MySQL use cases
Cloud applications: MySQL is very popular in the
cloud. HeatWave MySQL enables you to improve
MySQL query performance by orders of magnitude
and get real-time analytics on your transactional
data—without the complexity, latency, risks, and
cost of extract, transform, and load (ETL) duplication
to a separate analytics database.
You can enhance data security and deploy HeatWave
MySQL–powered apps in Oracle Cloud Infrastructure
(OCI), Amazon Web Services (AWS), or Microsoft
Azure.
HeatWave MySQL is faster and less expensive than
Amazon Aurora, Amazon Redshift, and Snowflake.
 MySQL is extremely popular for
Ecommerce: Many of the world’s largest ecommerce
applications (for example, Shopify, Uber, and
Booking.com) run their transactional systems on
MySQL; a popular choice for managing user profiles,
credentials, user content, financial data including
payments, and fraud detection.
Social platforms: Facebook, Twitter, and LinkedIn are
among the world’s largest social networks relying on
MySQL.
Content management: MySQL enables both SQL and
NoSQL with a single database. The MySQL Document
Store enables CRUD operations and the power of
SQL to query data from JSON documents for
reporting and analytics.
SaaS and ISVs: More than 2,000 ISVs, OEMs, and
VARs, including Ericsson, F5, and IBM, rely on MySQL
as their embedded database to make their
applications, hardware, and appliances more
competitive, bring them to market faster, and lower
their cost of goods sold. MySQL is also the database
behind popular SaaS applications, including Zendesk
and HubSpot.
On-premises applications with MySQL Enterprise
Edition: It offers advanced features, management
tools, support for on-premises applications, ensuring
high scalability, security, reliability, and uptime. It
simplifies the development and management of
critical MySQL applications while reducing risk and
costs. Key security features include Enterprise
Backup, Monitor, Firewall, Audit, Encryption, and
Authentication to protect data and meet compliance
standards.
Introduction to the Project
Code and its Output
Python and MySQL: Limitations
and Improvements
Aspect Python MySQL
Limitatios - High memory usage - Slower performance
with large datasets. with complex queries
involving multiple joins.
- Limited - Differences in features
multithreading due to across storage engines
GIL. (e.g., InnoDB vs.
MyISAM).
- Dependency on Limited advanced data
external libraries. integrity checks
compared to other
relational databases.
- Slower performance - Limited scalability for
for computation- very large datasets or
intensive tasks high concurrency.
Assumptions Necessary libraries are Database server is
Made pre-installed. accessible and running.
- Input data is clean - Proper indexing ensures
and formatted reasonable query
correctly. performance.
- Users are familiar - User inputs are sanitized
with the environment. to prevent SQL injection.
Enhancement - Optimize Implement sharding or
s Suggested performance using replication for scalability
tools like Numba or and fault tolerance.
Cython.
- Use multiprocessing - Use hybrid approaches
to overcome GIL (e.g., NoSQL databases)
limitations. for unstructured data.

- Add a GUI for user- Optimize queries with


friendly interaction. indexing, stored
procedures, or caching.
Profile the code for Profile the code for
efficiency efficiency improvements.
improvements.
Bibliography
1. Computer Science with Python (Textbook for class
XII) By Sumita Arora
2. https://www.oracle.com/in/mysql/what-is-mysql/
3. https://www.sciencedirect.com/topics/computer-
science/computer-science
4.
https://www.sciencedirect.com/science/article/abs/pii
/B9780444516244500095
5. https://inference-review.com/article/the-man-who-
carried-computer-science-on-his-shoulders
6. https://www.python.org/doc/essays/blurb/
7. ChatGPT

You might also like