Final Year
Final Year
“Responsive Calculator”
Karjule Girish 23612260291
Raskar Pratik 2215600113
Bhosle Abhishek 23612260287
Laware Vaishnavi 23612260293
CERTIFICATE
Certified that the micro project entitled
“Responsive Calculator”
Karjule Girish 23612260291
Raskar Pratik 2215600113
Bhosle Abhishek 23612260287
Laware Vaishnavi 23612260293
(Prof. A.P.Shinde)
(External Examiner) Principal
Last but not least I would like to thanks all the Teaching , Non Teaching staff
member of my department , my parent and my colleges those who help me
directly or indirectly for completing of this project is successfully.
Date :
/ / 2024
INDEX
1 Introduction 1
2 Description 2
3 Text 3
5 Output 8-13
6 Conclusion 14
7 References 15
Chapter 1
Introduction:
1
Chapter 2
Description:
Button:
There are various ways in HTML to create clickable buttons. You can also
create a clickable button using <input>tag by setting its type attribute to button.
The type attribute can take the following values –
reset- This creates a button that automatically resets form controls to their
initial values.
button- This creates a button that is used to trigger a client- side scriptwhen the
user clicks that button.
image- This creates a clickable button but we can use an image as
background of the button.
2
Chapter3
Text:
Text is typically required to place one line text. For example, if you want to
enter some name then it is always preferred to have text field on the form.
The input type is text and the value of this this text field is " " that means the
blank text field is displayed initially and we can enter the text of our choice into
it.
Align: denotes the alignment of the text in the text field. The alignmentcan be
left, right, bottom and top.
3
Chapter 4
Program code:
<!DOCTYPE html>
<head>
<style>
h1 {
text-align: center;
padding: 23px;
background-color: Brown;
color: white;
#clear{
width: 270px;
border-radius: 3px;
padding: 20px;
background-color: red;
4
{
width: 300px;
height: 530px;
margin: auto;
border-radius: 5px;
padding: 20px;
input
width: 20px;
background-color: grey;
color: white;
border-radius: 5px;
padding: 26px;
margin: 5px;
font-size: 15px;
#calc{
width: 250px;
5
border: 5px solid black;
border-radius: 3px;
padding: 20px;
margin: auto;
</style>
</head>
<body>
<!-- This input box shows the button pressed by the user in calculator. -->
<br><br>
6
<input type = "button" value = "-" onclick = "form1.answer.value += '-' ">
<br><br>
<br><br>
<br>
<!-- Display the Cancel button and erase all data entered by the user. -->
<input type = "button" value = "Clear All" onclick = "form1.answer.value = ' ' " id= "clear" >
<br>
</form>
</div>
</body>
</html>
7
Chapter 5
Output:
Calculator:
8
Addition operation:
Figure 2: Calculator
Clear operation:
When to click on ‘C’ Button, the textbox is clear.
9
Figure 3: Calculator
Subtraction operation:
Figure 4: Calculator
10
Multiplication operation:
Figure 5: Calculator
11
Figure 6: Calculator
Figure 7: Calculator
12
Multiple operations at once:
Figure 8: Calculator
Division by zero:
Figure 9: Calculator
13
Chapter6
Conclusion:
14
Chapter 7
References:
http://www.geeksforgeeks.com
http://www.programmingearth.com
15