0% found this document useful (0 votes)
19 views15 pages

Final Cs Group Project

Uploaded by

altbrutal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views15 pages

Final Cs Group Project

Uploaded by

altbrutal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

New Horizon Scholars School,

Thane

Project Report
On
Arithmetic Calculator

Submitted by

Name: Prathamesh Kulkarni

Grade , Div: XI , A

Roll No.: 23
1
Under the Guidance of :
Mrs. Aarati Mahajan

CERTIFICATE

NEW HORIZON SCHOLARS SCHOOL

Kavesar, Ghodbunder Road, Thane (W)-400615


CBSE Affiliation No: 1130470

Examination No.
Date:
Registration No.
School Roll No. _

This is to certify that of

grade XI Division has satisfactorily completed his / her project on

in Computer Science (083) and recorded it in the file during the academic

year 2023 - 24

Internal Examiner Principal

2
External Examiner Seal of School

3
ACKNOWLEDGEMENT

I would like to express a deep sense of thanks and gratitude to our


Regional Director Dr Jyoti Nair and Principal Mrs Supriti Katkar
and the Vice-Principal Mrs. Poonam Arora for co-ordination in
extending every possible support for the completion of this project.

I would also like to thank my project guide Mrs. Aarati Mahajan for
guiding me immensely throughout the course of the project. Her
constructive advice and constant motivation have been responsible
for the successful completion of this project.

I also would like to thank my parents and family members for their
motivation and support.

Last but not the least; I would like to thank all my team members
and friends for their timely help and support for compilation of this
project.

4
Index

S.NO CONTENT PAGE NO Signature


1 Introduction 5

2 HW/SW requirements 6

3 Flow diagram 7

4 Working 8

5 Source Code 10

6 Output screens 13

7 Bibliography 14

5
INTRODUCTION
An arithmetic calculator is a fundamental tool used for performing basic
mathematical operations such as addition, subtraction, multiplication, and
division. It's designed to simplify mathematical computations and provide
accurate results swiftly. With the advent of technology, arithmetic calculators
have evolved from simple mechanical devices to sophisticated electronic
gadgets and software applications.

The primary purpose of an arithmetic calculator is to assist individuals in


solving numerical problems efficiently. Whether it's in academics, finance,
engineering, or everyday tasks, a calculator serves as a reliable companion for
handling arithmetic tasks with precision. Modern calculators often come with
additional features such as scientific functions, memory storage, and
programmability, enhancing their versatility and utility.

Arithmetic calculators vary in form, ranging from handheld devices to


software applications accessible on computers, smartphones, and tablets.
Regardless of the platform, they share a common objective: to streamline
mathematical calculations and minimize human error.

In addition to basic arithmetic operations, some advanced calculators can


handle complex mathematical functions, statistical analysis, and algebraic
equations, catering to a wide range of users with diverse needs. As technology
continues to advance, arithmetic calculators will likely undergo further
enhancements, making them even more indispensable in various fields of
study and profession

6
Hardware/Software Requirement
Hardware Requirements:
Processor: A basic processor capable of handling arithmetic operations.
Memory (RAM): A small amount of memory to run the calculator application.
Display: A screen or display to show the calculator interface and input/output.
Power Source: For mobile or handheld calculators, a battery or power source
is needed.

Software Requirements:
Operating System: Compatible with Windows, macOS, Linux, Android, iOS,
or web-based platforms.Programming Language: Developed using languages
like Python,Java,C++, JavaScript, etc.
User Interface: User-friendly interface for inputting numbers and operations
and displaying results.
Arithmetic Operations: Supports basic arithmetic functions like addition,
subtraction, multiplication, division.Additional (Optional)

Requirements:
Scientific Functions: Supports trigonometric, logarithmic, exponential
functions.
Graphical User Interface (GUI): Visual and interactive interface for desktop or
mobile applications.
Error Handling: Handles input errors and displays appropriate messages.
Localization: Supports multiple languages and number formats for
international use.Overall, the hardware and software requirements for an
arithmetic calculator are minimal, making it accessible on various devices and
platforms.

7
Flow chart
The given is the flow chart of Arithmetic Calculator

8
Working for Arithmetic Calculator
Initialization: The code initializes various components of the calculator using the
Turtle graphics library. Each component, like digits, operators, and mathematical
functions, is represented by a Turtle object, which is a drawing tool in Python.

Drawing the Calculator Interface: The main Turtle (t) is used to draw the outline of
the calculator screen. This screen is divided into sections where buttons will be
placed. The screen is essentially a square with some lines inside, creating a grid-like
structure.

Screen Saver Drawing: Another Turtle (l) is used for drawing screen saver-like
animations on the calculator. The letter_* functions are responsible for writing
numbers and symbols on this area, creating a visual display.

Button Definitions: You define the appearance and positions of the buttons on the
calculator. This includes buttons for digits 0-9, basic arithmetic operators (+, -, ×,
÷), and some mathematical functions (sin, cos, tan, log, sqrt).

Keyboard Drawing: Individual Turtle objects are used to draw the buttons on the
calculator screen. This involves drawing rectangles and writing labels for each
button.

User Input Handling: The check_button function is designed to detect mouse clicks
on specific regions of the screen, corresponding to different buttons. When a user
clicks on a button, the corresponding action is triggered, updating the input
expression visible on the calculator.

Screen Output: Another Turtle (a) is used to display the result of calculations. After
the user presses the equal button, the result is calculated using the eval function, and
it's displayed on the screen.

Event Handling: The turtle.onscreenclick function is used to associate the


check_button function with mouse clicks on the screen. This ensures that the
calculator responds to user input.

Main Loop: The turtle.mainloop() function initiates the main event loop,

9
which continuously checks for user input. This loop keeps the program responsive
and allows users to interact with the calculator.

User Interaction: Users can interact with the calculator by clicking on the drawn
buttons. The calculator responds by updating the input expression based on the
clicked button and displaying the result when the equal button is pressed.

In summary, your code uses the Turtle graphics library to create a graphical
calculator interface with buttons for digits, operators, and mathematical
functions. It responds to user clicks on these buttons and provides visual
feedback on the screen.

10
Source code
The given is the source code for the arithmetic calculator

11
12
13
Output Screen :

14
Bibliography
https://bard.google.com/chat/7a9525fcb4406e65
https://youtu.be/KseiSR0MCTI?si=ZeLakAVBHiOY8qqx bar

Python.compiler

15

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy