CSS Report
CSS Report
Annexure-I
Micro-Project Proposal
“Scientific-Calculator ”
Sr No.
Roll No. Name
1 53 Dhruvil Rupareliya
Annexure-II
Micro-Project Proposal
“ Scientific-Calculator ”
1.0 Rationale:
Much of the Internet is based on the client-server model. In this model, user devices
communicate via a network with centrally located servers to get the data they need, instead of
communicating with each other. End user devices such as laptops, smartphones, and desktop
computers are considered to be 'clients' of the servers, as if they were customers obtaining
services from a company. Client devices send requests to the servers for webpages or
applications, and the servers serve up responses.
The client-server model is used because servers are typically more powerful and more reliable
than user devices. They also are constantly maintained and kept in controlled environments to
make sure they're always on and available; although individual servers may go down, there are
usually other servers backing them up. Meanwhile, users can turn their devices on and off, or lose
or break their devices, and it should not impact Internet service for other users.
1. Function:
Functions are one of the fundamental building blocks in JavaScript. A function in JavaScript
is similar to a procedure—a set of statements that performs a task or calculates a value, but
for a procedure to qualify as a function, it should take some input and return an output where
there is some obvious relationship between the input and the output. To use a function, you
must define it somewhere in the scope from which you wish to call it.
Syntax:
For example, the following code defines a simple function named square:
function square(number)
{
return number * number; }
The function square takes one parameter, called number. The function consists of one
statement that says to return the parameter of the function (that is, number) multiplied by
itself. The return statement specifies the value returned by the function, which is number *
number.
Department of Computer Technology 2024-2025 4
Client-Side Scripting Language (22519) Scientific-Calculator
Parameters are essentially passed to functions by value — so if the code within the body of a
function assigns a completely new value to a parameter that was passed to the function, the
change is not reflected globally or in the code which called that function.
<head >
<title >Calculator</title>
<style>
.buttons{
background-color: greenyellow;
padding: 10px;
margin: 350px;
width: 177px;
.button1{
width: 21px;
.button2{
width: 21px;
</style>
</head>
function myclick(a){
myform.display.value+=a;
function equalto(){
myform.display.value=eval(myform.display.value);
function AC(){
myform.display.value="";
function del(){
var prevalue=myfrom.display.value;
myform.display.value=prevalue.substr(0,prevalue.length-1);
function fnsin(){
myform.display.value=Math.sin(myform.display.value);
function fncos(){
myform.display.value=Math.cos(myform.display.value);
function fntan(){
myform.display.value=Math.tan(myform.display.value);
function square(){
myform.display.value=Math.pow(myform.display.value,2)
function root(){
myform.display.value=Math.pow(myform.display.value,1/2)
function add(){
myform.display.value=Math.add(myform.display.value);
function sub(){
myform.display.value=Math.substr(myform.display.value);
function div(){
myform.display.value=Math.div(myform.display.value);
function mul(){
myform.display.value=Math.mul(myform.display.value);
</script>
<body>
<div class="buttons">
<form name="myform">
</div>
</form>
</body>
</html>
VII.0 Output :
During the course of this micro-project, we learnt to create a form and define a frameset which
divides the web page into multiple pages:
a) For creation of frame tag i.e <frameset>,<frame> in the body of HTML page.
Being familiar with HTML and CSS is necessary to become a web developer. Worldwide,
HTML is the most widely used markup language. To style websites, you must also use CSS.
You can use CSS, for instance, to incorporate various fonts, colors, and layouts when designing
a website.
The <frameset> tag in HTML is used to define the frameset. The <frameset> element contains
one or more frame elements. It is used to specify the number of rows and columns in frameset
with their pixel of spaces. Each element can hold a separate document.
Forms are the basics of HTML. We use HTML form element in order to create the JavaScript
form.
Thus, these components are useful it all website.
10.0 Conclusion:
11.0 References :
W3schools.com
www.java.com
www.geekforgeek.com