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

CS Proj

This document outlines a Computer Science project on a calculation program, specifically a Simple Calculator, completed by a student of class XI-A at Techno India Group Public School for the CBSE practical examination. It includes sections on system requirements, feasibility studies, types of errors, advantages of Python, program flowchart, source code, and output. The project emphasizes the calculator's efficiency, user-friendliness, and the educational value gained during its development.

Uploaded by

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

CS Proj

This document outlines a Computer Science project on a calculation program, specifically a Simple Calculator, completed by a student of class XI-A at Techno India Group Public School for the CBSE practical examination. It includes sections on system requirements, feasibility studies, types of errors, advantages of Python, program flowchart, source code, and output. The project emphasizes the calculator's efficiency, user-friendliness, and the educational value gained during its development.

Uploaded by

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

COMPUTER SCIENCE

PROJECT
on a calculation program

2023-24

XI-A
Certificate
This is to certify that of class
XI-A has successfully completed his
project under the guidance of subject
teacher from TECHNO
INDIA GROUP PUBLIC SCHOOL,
GARIA in partial fulfilment of Computer
Science practical examination
conducted by CBSE for session 2023-
24.

Internal examiner Head of The Institution


External Examiner
2
Page
Acknowledgeme
nt
I would like to express my special
thanks of gratitude to my teacher
as well as our Principal
who gave me the golden
opportunity to do this wonderful project
on a Simple Calculator, which also
helped me in doing a lot of Research
and I came to know about so many new
things. I am really thankful to them.

Secondly, I would also like to thank my


parents and friends who helped me a lot
in finalizing this project within the
limited period.
3
Page
INDEX

TOPIC PAGE
Introduction 5
System Requirements 6
Feasibility Study 7
Errors and its Types 8
Advantages of the Python Programming Language 9
Program Flowchart 10
Source Code 11-12
Output 13
Bibliography 14
4
Page
INTRODUCTION
A digital calculator is a device that allows instantaneous calculations
on discrete numbers such as addition, subtraction, multiplication,
division, trigonometric ratios, currency conversions and so on. Large
calculations are made quicker and less tedious using a device or a
script to substitute ‘brains for brass’.
 Large calculations are made easy using calculation programs.
This aids in performing many successive calculations and prove
most useful in fields of scientific studies.
 Calculations instantaneous reducing time consumptions and
increasing work efficiency. Modern calculators can provide
results within nanoseconds of input.
 Calculators are user friendly and can be used by anyone
regardless of any technical background.
 Calculation programs and calculators are readily available, and
are the most common applications of computer programming.
 Calculation programs are known for its simplified interface,
reducing understanding complexity and enhancing usability.
5
Page
System Requirements

 HARDWARE
X86-64bit Multicore CPU
4GB RAM
128GB of free disc space

 SOFTWARE
OS: Windows 7 or above
Python 3.6 or above
Microsoft Office or LibreOffice suite
6
Page
Feasibility Study
The usage and popularity of an instrument depends on a number of
factors, the prime of which includes practicality or feasibility. Some
of such practical factors are:
 Economic feasibility - the price of calculators has always been
on the lower side and therefore are affordable to all and sundry.
Moreover, they can be found in almost any electronics shop,
making them ubiquitous in almost every locality
 Technical feasibility: Digital, analogue and scientific calculators
are extremely easy to operate for anyone. Furthermore, they
can easily be automated for organisations and companies to be
used, and can also be equipped with other gadgets to meet the
required result
 Operational feasibility: The system only has to be aware of basic
mathematical operations and the decimal number system in
order to use a simple or a scientific calculator. Thus, a calculator
is extremely operationally feasible
7
Page
Errors and its types
A program can have multiple types of errors or bugs in its source that can give illegal or
undesirable results. Some of them are:
 Compile-Time errors: Errors that occur during the compilation of a code are compile-time errors.
When a program is run, the compiler first checks the code if it follows the “grammar” of the
programming language. Compile-time errors are of two types:
o Syntax Errors: Syntax errors are the errors caused due to usage of wrong use of the
language
o Semantics Errors: These errors occur when the statements are not meaningful or
uncompilable.
 Run-time errors: Errors that occur during the execution of a program are run-time errors. These
errors are harder to detect and randomly stop the execution of a program, which is often called
“crashing”. These may occur due to infinite loops or wrong input values (often wrong data type).
 Logical errors: Logical errors are errors which occur due to use of improper programming logic,
such is division by zero, or square root of a negative number.

8
Page
Advantage of the
Python Programming
Language
Python is a versatile and user-friendly programming language designed for beginners and
veterans alike. Several reasons make it one of the most used programming language.

1. Presence of third-party modules: Python has a rich ecosystem of third-party modules


and libraries that extend its functionality for various tasks.
2. Extensive support libraries: Python boasts extensive support libraries like NumPy for
numerical calculations and Pandas for data analytics, making it suitable for scientific and
data-related applications.
3. Open source and large active community base: Python is open source, and it has a large
and active community that contributes to its development and provides support.
4. Versatile, easy to read, learn, and write: Python is known for its simplicity and
readability, making it an excellent choice for both beginners and experienced
programmers.
5. User-friendly data structures: Python offers intuitive and easy-to-use data structures,
simplifying data manipulation and management.
6. High-level language: Python is a high-level language that abstracts low-level details,
making it more user-friendly.
7. Dynamically typed language: Python is dynamically typed, meaning you do not need to
declare data types explicitly, making it flexible but still reliable.
8. Object-Oriented and Procedural programming language: Python supports both object-
oriented and procedural programming, providing versatility in coding styles.
9. Portable and interactive: Python is portable across operating systems and interactive,
allowing real-time code execution and testing.
10. Ideal for prototypes: Python’s concise syntax allows developers to prototype
applications quickly with less code.
11. Highly efficient: Python’s clean design provides enhanced process control, and it has
excellent text processing capabilities, making it efficient for various applications.
12. Internet of Things (IoT) opportunities: Python is used in IoT applications due to its
simplicity and versatility.
13. Interpreted language: Python is interpreted, which allows for easier debugging and
code development.
9
Page
Page 10
Program Flowchart
11
Page
SOURCE CODE
print("a - ADDITION","s - SUBSTRACTION","m - MULTIPLICATION","d -
DIVISION","q-to the power")
no=int(input("enter one or more numbers. with wich you want to do
operation:-"))

if no==2:
number_1=float(input("enter no."))
number_2=float(input("enter no."))
elif no==3:
number_1=float(input("enter no."))
number_2=float(input("enter no."))
number_3=float(input("enter no."))
elif no==4:
number_1=float(input("enter no."))
number_2=float(input("enter no."))
number_3=float(input("enter no."))
number_4=float(input("enter no."))
elif no==5:
number_1=float(input("enter no."))
number_2=float(input("enter no."))
number_3=float(input("enter no."))
number_4=float(input("enter no."))
number_5=float(input("enter no."))
else:
print("min number with which operation can be done is 2/max number
with which operation can be done is 5")
"a - ADDITION"
"s - SUBSTRACTION"
"m - MULTIPLICATION"
"d - DIVISION"
"q-to the power"
user_input = input("enter the function:")
if user_input == "a" and no==2:
number_3=0
number_4=0
number_5=0
if user_input == "a" and no==3:
number_4=0
number_5=0
if user_input == "a" and no==4:
number_5=0
if user_input == "s" and no==2:
number_3=0
number_4=0
number_5=0
12

if user_input == "s" and no==3:


number_4=0
number_5=0
Page

if user_input == "s" and no==4:


number_5=0
if user_input == "m" and no==2:
number_3=1
number_4=1
number_5=1
if user_input == "m" and no==3:
number_4=1
number_5=1
if user_input == "m" and no==4:
number_5=1
if user_input == "d" and no==2:
number_3=1
number_4=1
number_5=1
if user_input == "d" and no==3:
number_4=1
number_5=1
if user_input == "d" and no==4:
number_5=1
if user_input == "a":
output = number_2 + number_1+ number_3+ number_4+ number_5
print(output)
elif user_input == "s":
output = number_2 - number_1-number_3- number_4- number_5
print(output)
elif user_input == "m":
output = number_2 * number_1* number_3* number_4* number_5
print(output)
elif user_input == "d":
output = number_1 / number_2/ number_3/ number_4/ number_5
print(output)
elif user_input == "q":
output = number_2 ** number_1
print(output)
else:
print ("invalid entry")
13
Page
OUTPUT

THE ABOVE CODE RUNNING ON SPYDER IDE IN CONDA ENV


14
Page
BIBLIOGRAPHY
Anaconda python environment

Computer science with Python- by Sumita Arora

Wikipedia.org
15
Page

You might also like