ManojKumarShankar / Calc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ex.08 Design of a Standard Calculator

Date:11/05/2024

AIM:

To design a web application for a standard calculator with minimum five operations.

DESIGN STEPS:

Step 1:

Clone the github repository and create Django admin interface.

Step 2:

Change settings.py file to allow request from all hosts.

Step 3:

Use CSS for creating attractive colors.

Step 4:

Write JavaScript program for implementing five different operations.

Step 5:

Validate the HTML and CSS code.

Step 6:

Publish the website in the given URL.

PROGRAM :

<title>Document</title> <script> function fn(e) { if (e.innerHTML == '=') { output.value =eval(output.value);
        }
        else if (e.id == 'back') {
            v=output.value;
            output.value = v.substring(0, v.length - 1);
        } 
        else if (e.innerHTML == 'C') {
            output.value = '';
        }
        else {
            output.value += e.innerHTML;
        }
        

    }

    

</script>
S.MANOJ KUMAR(212222040097)
(
)
C
7
8
9
*
4
5
6
-
1
2
3
+
0
.
%
/
=
</div>

OUTPUT:

Screenshot 2024-05-11 155006 Screenshot 2024-05-11 155019

RESULT:

The program for designing a standard calculator using HTML and CSS is executed successfully.

About