Answered step by step
Verified Expert Solution
Question
1 Approved Answer
function addChar ( input , character ) { if ( input . value = = null | | input.value = = 0 )
function addCharinput character
ifinputvalue null input.value
input.value character
else
input.value character
function cosform
form.display.value Math.cosformdisplay.value;
function sinform
form.display.value Math.sinformdisplay.value;
function tanform
form.display.value Math.tanformdisplay.value;
function sqrtform
form.display.value Math.sqrtformdisplay.value;
function lnform
form.display.value Math.logformdisplay.value;
function expform
form.display.value Math.expformdisplay.value;
function deleteCharinput
input.value input.value.substring input.value.length
var val ;
function percentinput
val input.value;
input.value input.value ;
function changeSigninput
ifinputvalue.substring
input.value input.value.substring input.value.length
else
input.value input.value
function computeform
if val
var percent form.display.value;
percent pcent.substringpercentindexOf;
form.display.value parseFloatpercent val;
val ;
else
form.display.value evalformdisplay.value;
function squareform
form.display.value evalformdisplay.value evalformdisplay.value
function checkNumstr
for var i ; i strlength; i
var ch strcharAti;
if ch ch
if ch && ch && ch && ch && ch
&& ch && ch && ch
alertinvalid entry!"
return false
return true
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started