0% found this document useful (0 votes)
3 views3 pages

Web Code

The document outlines three programming tasks: one for calculating the product of three integers, another for summing integers from 1 to 10 using a while loop, and a third for prompting the user to input the radius of a sphere to calculate its volume using a specified formula. Each task requires the implementation of JavaScript code to achieve the desired functionality. The last task also involves user interaction through an XHTML form and button.

Uploaded by

Mervan Kösen
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Web Code

The document outlines three programming tasks: one for calculating the product of three integers, another for summing integers from 1 to 10 using a while loop, and a third for prompting the user to input the radius of a sphere to calculate its volume using a specified formula. Each task requires the implementation of JavaScript code to achieve the desired functionality. The last task also involves user interaction through an XHTML form and button.

Uploaded by

Mervan Kösen
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

6.6 Write a complete program that calculates and prints the product of three integers.

7.5 JavaScript program that calculates and prints the sum of the integers from 1 to 10. Use
the while statement to loop through the calculation and increment statements. The loop
should terminate when the value of x becomes 11.

9.6 Write a complete JavaScript program to prompt the user for the radius of a sphere, and
call

function sphereVolume to calculate and display the volume of the sphere. Use the statement

volume = ( 4.0 / 3.0 ) * [Link] * [Link]( radius, 3 );

to calculate the volume. The user should input the radius through an XHTML text field in a

<form> and click an XHTML button to initiate the calculation.


.

You might also like