Report Group Mad. - 2
Report Group Mad. - 2
Report Group Mad. - 2
BELGAUM
“Scientific Calculator”
Submitted in partial fulfilment of the requirements for the award of the 6 thsem of
BACHELOR OF ENGINEERING
IN
INFORMATION SCIENCE AND ENGINEERING
Submitted by:
SHAHWAR ALAM D AJAY KUMAR REDDY
[1VE18IS044] [1VE18IS015]
2020-2021
SRI VENKATESHWARA COLLEGE OF
ENGINEERING
(Affiliated by A.I.C.T.E and approved by V.T.U)
CERTIFICATE
This is to certify that Mobile Application Development Mini Project [18CSMP68] work
entitled “ Scientific Calculator ” submitted in partial fulfilment of the requirement for VI
semester bachelor of engineering in Information science and engineering prescribed by the
Visvesvaraya Technological University, Belgaum is a result of the bonafide work carried
out by D AJAY KUMAR REDDY [1VE18IS015], SHAHWAR ALAM [1VE18IS044] ,
SAGAR BHUSHAN JHA [1VE18IS042] and MANAS RAJ [1VE18IS026] during the
academic year 2020-21. It is certified that all corrections/suggestions indicated for Internal
Assessment have been incorporated in the Report deposited in the departmental library. The
project report has been approved as it satisfies the academic requirements in respect of
Project work prescribed for the said Degree.
............................................... ........................................
Signature of Course Teacher Signature of HOD
Mr. GURUPRASAD Y K Dr.SHOBA M
Asst. Prof, Dept. of ISE H.O.D ,Dept. of ISE
SVCE, Bangalore SVCE, Bangalore
I express our sincere gratitude to Dr. SURESHA, Principal, SVCE, Bengaluru for providing
the required facility.
I am extremely thankful to Dr. SHOBA M, HOD of ISE, SVCE for providing support and
encouragement.
Finally I am grateful to my parents and friends for their invaluable support guidance and
encouragement.
DEPARTMENT MISION
M1. Strive for academic excellence in Information Science and Engineering through student
centric innovative teaching-learning process, competent faculty members, efficient
assessment and use of ICT.
M2. Establish Centre for Excellence in various vertical of Information Science and
Engineering to promote collaborative research and Industry Institute Interaction.
CHAPTER – 1
I. INTRODUCTION
1.1.Overview
Addition
Subtraction
Multiplication
Division
1.2. Features
While you can also do basic calculations such as addition, subtraction, multiplication
and division, that barely scratches the surface of the type of equations this calculator
can handle .
The Scientific Calculator has additional features that allow you to work with
exponents, logs and many more, which require more memory in order to perform
functions for the best result.
1.3. Need
ISE,SVCE,2020-21 1
SCIENTIFIC CALCULATOR
Along with negation, we can also raise numbers to another power and finds a
square root of a number or formula.
In addition to this, we can use for advanced math like for unknown numbers
too
Trigonometry functions also often pop up with scientific calculator
ISE,SVCE,2020-21 2
SCIENTIFIC CALCULATOR
CHAPTER - 2
II. SYSTEM SPECIFICATIONS
2.1. Software Requirements:
• Operating system - Windows XP or above
• Hardware - Pentium
• RAM - 1GB
ISE,SVCE,2020-21 3
SCIENTIFIC CALCULATOR
CHAPTER – 3
III. IMPLEMENTATION
3.1Introduction:
Implementation is the stage of the project where the code is turned out into a working
system. Thus it can be considered to be the most critical stage in achieving a successful new
system and in giving the user, confidence that the new system will work and be effective. The
implementation stage involves careful planning, investigation of the existing system and it’s
constraints on implementation, designing of methods to achieve changeover and evaluation of
changeover methods.
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
@Override
protected void onCreate(Bundle savedInstanceState) {
ISE,SVCE,2020-21 4
SCIENTIFIC CALCULATOR
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
previousCalculation = findViewById(R.id.previous_calculation_view);
display = findViewById(R.id.display_edit_text);
display.setShowSoftInputOnFocus(false);
}
ISE,SVCE,2020-21 5
SCIENTIFIC CALCULATOR
ISE,SVCE,2020-21 6
SCIENTIFIC CALCULATOR
ISE,SVCE,2020-21 7
SCIENTIFIC CALCULATOR
updateText(getResources().getString(R.string.decimalText));
}
previousCalculation.setText(userExp);
display.setText(result);
display.setSelection(result.length());
}
ISE,SVCE,2020-21 8
SCIENTIFIC CALCULATOR
ISE,SVCE,2020-21 9
SCIENTIFIC CALCULATOR
ISE,SVCE,2020-21 10
SCIENTIFIC CALCULATOR
</selector>
ISE,SVCE,2020-21 11
SCIENTIFIC CALCULATOR
</selector>
3.7. Clear_btn_background.xml Source Code
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="@color/redBackground"/>
<stroke android:color="@color/redAccent" android:width="1.5dp"/>
<corners android:radius="25dp"/>
</shape>
</item>
</selector>
3.8. Equals_btn_background.xml Source Code
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="@color/greenBackground"/>
<stroke android:color="@color/greenAccent" android:width="1.5dp"/>
<corners android:radius="25dp"/>
</shape>
</item>
</selector>
ISE,SVCE,2020-21 12
SCIENTIFIC CALCULATOR
android:pathData="M0,0h108v108h-108z" />
<path
android:fillColor="#00000000"
android:pathData="M9,0L9,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,0L19,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,0L29,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,0L39,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,0L49,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,0L59,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,0L69,108"
ISE,SVCE,2020-21 13
SCIENTIFIC CALCULATOR
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,0L79,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M89,0L89,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M99,0L99,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,9L108,9"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,19L108,19"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,29L108,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
ISE,SVCE,2020-21 14
SCIENTIFIC CALCULATOR
android:pathData="M0,39L108,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,49L108,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,59L108,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,69L108,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,79L108,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,89L108,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,99L108,99"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
ISE,SVCE,2020-21 15
SCIENTIFIC CALCULATOR
android:fillColor="#00000000"
android:pathData="M19,29L89,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,39L89,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,49L89,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,59L89,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,69L89,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,79L89,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,19L29,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
ISE,SVCE,2020-21 16
SCIENTIFIC CALCULATOR
<path
android:fillColor="#00000000"
android:pathData="M39,19L39,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,19L49,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,19L59,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,19L69,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,19L79,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
</vector>
ISE,SVCE,2020-21 17
SCIENTIFIC CALCULATOR
CHAPTER-4
IV. Snapshots
ISE,SVCE,2020-21 18
SCIENTIFIC CALCULATOR
ISE,SVCE,2020-21 19
SCIENTIFIC CALCULATOR
Figure 3. Result
ISE,SVCE,2020-21 20
SCIENTIFIC CALCULATOR
ISE,SVCE,2020-21 21
SCIENTIFIC CALCULATOR
CHAPTER – 5
V. SUMMARY AND CONCLUSION:
With the theoretical inclination of our syllabus it becomes very essential to take the atmost
advantage of any opportunity of gaining practical experience that comes along. The building
blocks of this Major Project “SCIENTIFIC CALCULATOR” was one of these opportunities.
It gave us the requisite practical knowledge to supplement the already taught theoretical
concepts thus making us more competent as a computer engineer. The project from a personal
point of view also helped us in understanding the following aspects of project development:
The project also provided us the opportunity of interacting with our teachers and to gain from
their best experience.
ISE,SVCE,2020-21 22
SCIENTIFIC CALCULATOR
REFERENCES
Android Studio (Website)
Stack overflow (Website)
ISE,SVCE,2020-21 23