# Homework Solution: Follow the example in slide 15.Create area.html to calculate the area of a circle. G…

Follow the example in slide 15.Create area.html to calculate the area of a circle. Given that the circle radius is 5 and the constant pi is 3.14. (Hint: Use the formula Area = pi * radius * radius) the example in slide 15 <html> <head> <title>Fahrenheit from Celsius</title> </head> <body> <script> var cTemp = 100; //Celsius temperature var hTemp = ((cTemp * 9) / 5) + 32; document.write("Temperature in Celsius: " + cTemp + " degrees<br/>"); document.write("Temperature in Fahrenheit: "+ hTemp +" degrees<br/>"); </script> </body> </html>

## Expert Answer

<!DOCTYPE html>

Follow the sample in slide 15.Create area.html to apportion the area of a dispersion. Given that the dispersion radius is 5 and the steady pi is 3.14. (Hint: Use the formula Area = pi * radius * radius)

the sample in slide 15

<html>

<head>

<title>Fahrenheit from Celsius</title>

</head>

<body>

<script>

var cTemp = 100; //Celsius temperature

var hTemp = ((cTemp * 9) / 5) + 32;

document.write(“Temperature in Celsius: ” + cTemp + ” degrees<br/>”);

document.write(“Temperature in Fahrenheit: “+ hTemp +” degrees<br/>”);

</script>

</body>

</html>

## Expert Tally

<!DOCTYPE html>
<html>

<head>

<title>Area of a Dispersion</title>

</head>

<body>

<script>

var radius = 5; //radius of dispersion
var PI = 3.14; //steady PI

var area = PI * radius * radius;

document.write(“The area of a Dispersion is : ” + area + “<br/>”);

</script>

</body>

</html>
=====================================================================
See Output