CS Proj
CS Proj
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.
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.
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
Wikipedia.org
15
Page