Web Application Tutorial5 - calculate the volume. The user...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
WXGE6320: Web Application Tutorial 5 Write a complete JavaScript program to request 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) * Math.PI * Math.pow (radius, 3) to
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: calculate the volume. The user should input the radius through an XHTML text field in a <form> and click a Calculate button to initiate the calculation. NOTE: Please write your answer on a piece of paper. You are allowed to use computer to test your answer....
View Full Document

This note was uploaded on 02/06/2012 for the course FACULTY OF WXGE6320 taught by Professor Noraini during the Winter '09 term at University of Malaya.

Ask a homework question - tutors are online