My Main Project
My Main Project
SCIENTIFIC CALCULATOR
By
OBASI DANIEL CHISOM
2023/ND/083/CS
0
APPROVAL PAGE
------------------------------- -----------
PROJECT SUPERVISOR
--------------------------------- ------------
1
Dedication
This project is dedicated to God almighty for his infinite mercy and
providence throughout this project work.
I also dedicate this to my parents MR. and MRS KALU OBASI for their
financial support.
2
ACKNOWLEDGEMENT
3
ABSTRACT
The project "Design and Implementation of a Simple Scientific Calculator" focuses
on developing a user-friendly and efficient scientific calculator capable of performing
a variety of mathematical operations. The calculator is designed to handle basic
arithmetic functions (addition, subtraction, multiplication, and division) as well as
advanced mathematical computations including trigonometric functions, logarithms,
exponentials, and factorials. The implementation involves creating a graphical user
interface (GUI) for ease of use, ensuring accuracy in calculations, and optimizing
performance. This project aims to provide a reliable tool for students, educators, and
professionals who require a robust yet straightforward solution for their mathematical
needs. The development process includes requirement analysis, system design,
coding, testing, and validation to ensure the calculator meets specified criteria and
performs as expected.
4
TABLE OF CONTENTS
Chapter 1: Introduction
1.1 Background
1.2 Problem## Abstract
Statement
1.3 Objectives of the Study
1.4 Scope and Limitations
1.5 Significance of the Study
1.6 Organization of the Report
5
5.1 Overview of Implemented System
5.2 Test Case Results
5.3 Performance Evaluation
5.4 Comparison with Existing Systems
5.5 User Feedback
5.6 Challenges Faced
5.7 Contributions of the Study
5.8 Recommendations for Future Work
5.9 Conclusion
References
Appendices
A. Source Code
B. User Manual
C. Additional Data
D. Project Plan and Schedule
6
CHAPTER 1: INTRODUCTION
1.1 Background
Scientific calculators play a critical role in various academic and professional fields,
providing essential tools for complex mathematical calculations. With advancements
in technology, there is a continuous need to develop calculators that are not only
powerful but also user-friendly. This project aims to design and implement a simple
scientific calculator that meets these needs by offering a balance between
functionality and ease of use.
Current scientific calculators often fall into two categories: overly simplistic models
that lack necessary functions or advanced models that are complex and difficult to
use. This project addresses the gap by creating a scientific calculator that is both
comprehensive and accessible.
- To design a scientific calculator that can perform basic arithmetic operations and
advanced mathematical functions.
7
The scope of this project includes the development of a scientific calculator capable
of performing essential mathematical operations. The project does not include the
implementation of graphing capabilities or programmable functions which are beyond
the scope of this study.
This project is significant because it provides a practical solution for users who need
a reliable scientific calculator for educational and professional purposes. By focusing
on user-friendliness and essential functionalities, the project addresses a key gap in
the market.
The report is organized into five chapters, covering the introduction, literature review,
system design and methodology, implementation and testing, and results,
discussion, and conclusion.
8
CHAPTER 2: LITERATURE REVIEW
This section reviews various existing scientific calculators, evaluating their features,
strengths, and weaknesses. Popular models such as those from Texas Instruments,
Casio, and Hewlett-Packard are discussed.
9
CHAPTER 3: SYSTEM DESIGN AND METHODOLOGY
The system architecture consists of the core processing unit that handles
calculations, the user interface that allows user interaction, and the integration layer
that ensures seamless communication between these components.
The user interface design focuses on simplicity and functionality, featuring clearly
labeled buttons for mathematical operations and a display area for input and output.
10
3.5 Implementation Tools and Environment
The development of the calculator uses Python, with GUI development handled by
libraries such as Tinker. These tools are chosen for their ease of use and robust
functionality.
3.6 Summary
This chapter outlines the detailed design and methodology for the development of
the scientific calculator, covering system requirements, architecture, design
considerations, and implementation tools.
11
CHAPTER 4: IMPLEMENTATION AND TESTING
12
CHAPTER 5: RESULTS, DISCUSSION, AND CONCLUSION
13
5.9 Conclusion
REFERENCES
Appendices
14
A. SOURCE CODE
return x + y
return x - y
return x * y
if y == 0:
return x / y
return x ** y
if x <= 0:
15
def sine(x):
return math.sin(math.radians(x))
def cosine(x):
return math.cos(math.radians(x))
def tangent(x):
return math.tan(math.radians(x))
def menu():
print("Select operation:")
print("1. Add")
print("2. Subtract")
print("3. Multiply")
print("4. Divide")
print("5. Exponentiate")
print("6. Logarithm")
print("7. Sine")
print("8. Cosine")
print("9. Tangent")
print("10. Exit")
while True:
menu()
16
if choice == '10':
break
if choice == '1':
if base == "":
base = 10
else:
base = float(base)
17
print(f"The result is: {logarithm(num, base)}")
if choice == '7':
else:
B. USER MANUAL
Overview:
The scientific calculator allows users to perform basic arithmetic and advanced
mathematical operations through a simple graphical user interface.
How to Use:
C. Additional Data
18
- Test case documentation and results.
- Performance benchmas
19