+3 votes
in Class 12 by kratos

Write the code to display a form as shown below along with the javascript code to achieve the specified task. User should be able to enter the number of calls and the total amount payable gets displayed when he presses “calculate” button.

The total amount payable will be calculated based on the following rate list:

Rs. 1.00 per call for the 1st 100 calls

Rs. 1.20 per call for the next 100 calls

Rs. 1.50 per call for the next 50 calls

Rs. 2.00 per call for more than 250 calls

1 Answer

+3 votes
by kratos
 
Best answer

function calc() { var consm, amount=0; consm=document.form1.f1.value; if(consm NUMBER OF CALLS

...