# data[].attributes.body
3)var l = +prompt("enter length","52")
var b = +prompt("enter breadth","24")
var peri = 2*(l+b)
alert("perimeter is:" + peri)

# data[].attributes.body
3) var l=+prompt("Enter length"+"2")
var b=+prompt("Enter breadth"+"5")
var p=2(l+b)
alert("the perimeter is"+p)

# data[].attributes.body
Question 2

# data[].attributes.body
All Answers

# data[].attributes.body
3)var l=+prompt("Enter a lenght","36")
var b=+prompt("Enter the breadth","50")
var perimeter=2*(l+b)
alert("Perimeter is"+perimeter)

# data[].attributes.body
2)var r = +prompt ("enter radius","26")
var h = +prompt ("enter height value", "64")
const pi = 3.14
var vol = (pi*r*r*h)
alert("the cylindar's volume is:" + vol)

# data[].attributes.body
1) var rate=+prompt("Enter rate of intrest","35")
var time=+prompt("Enter time period","2")
var principal =+prompt("Enter prinicipal","450")
var si=(rate*time*principal)/100
alert(Simple interest value is "+si)

2) var radius=+prompt("Enter a radius","20")
var height=+prompt("Enter the height","2")
const pi=3.14
var volume=(pi*radius*radius*height)
alert("volume of cylinder"+volume)

# data[].attributes.body
Hridhaan

# data[].attributes.body
1.
var 1=+prompt("Enter the rate of interest","12")
var 2=+prompt("Enter a time period","5")
var 3=+prompt("Enter a principal amount ","500")
var final=(1*2*3)/100
alert("The simple interest is"+final)

# data[].attributes.body
2)var radius=+prompt("Enter a radius","40")
var height=+prompt("Enter a height","10")
const pi=3.14
var volume=(pi*radius*radius*height)
alert("volume of cylinder is"+volume)

# data[].attributes.body
1) var P = +prompt ("enter rate of interest","10")
var T = +prompt ("enter time period","20")
var R = +prompt ("enter principal","200")
var SI = (P*T*R)/100
alert("the SI is:" + SI)

# data[].attributes.body
1)var r=+prompt("Enter the rate of interest","12")
var t=+prompt("Enter a time period","5")
var p=+prompt("Enter a principal amount ","500")
var si=(r*t*p)/100
alert("The simple interest is"+si)

# data[].attributes.headline
1. Write a program code to accept the values of rate of interest, time period and principal from the user and calculate the Simple interest.  Display the output in an alert box.SI =( P * T * R ) /100

# data[].attributes.subject
1. Write a program code to accept the values of rate of interest, time period and principal from the user and calculate the Simple interest.  Display the output in an alert box.SI =( P * T * R ) /100

# data[].attributes.headline
2. Write a program code to accept the radius and height value from the user and calculate the volume of a cylinder.  Display the output in an alert box.      Hint : use pi value as const                    volume = Pi * R * R * H            

# data[].attributes.subject
2. Write a program code to accept the radius and height value from the user and calculate the volume of a cylinder.  Display the output in an alert box.      Hint : use pi value as const                    volume = Pi * R * R * H            

# data[].attributes.headline
3. Write a program code to accept l and b values from the user and calculate the perimeter of the rectangle.  Display the output in an alert box.                       p = 2 * ( l + b)

# data[].attributes.subject
3. Write a program code to accept l and b values from the user and calculate the perimeter of the rectangle.  Display the output in an alert box.                       p = 2 * ( l + b)

# data[].attributes.body
1)var r=+prompt("rate of interest","12")
var t=+prompt("time period","5")
var p=+prompt("principal","500")
var si=(r*t*p)/100
alert(si)