OK I am really stuck in thie internet prog class...I really need help with this.
ID: 3637878 • Letter: O
Question
OK I am really stuck in thie internet prog class...I really need help with this... I know you are restricted to ask more than two parts to a question so please just help me with 4-4 Thanks to my lifesaver in advance!!!
<script>
function calculate()
{
var A = parseInt(document.form.txtFirstNumber.value);
var B = parseInt(document.form.txtSecondNumber.value);
var C = (A + B);
document.form.txtThirdNumber.value = C;
}
</script>
</<head>
<body>
<form name = "form">
Number One: <input type = "text" name = "txtFirstNumber" size = 5 value ="">
Number Two: <input type = "text" name = "txtSecondNumber" size = 5 value ="">
<p>
Total: <input type = "text" name = "txtThirdNumber" size = 5 value ="">
</p>
<input type = button name = "b1" value = "Add Numbers">
</form></body>
Explanation / Answer
This assignment asks for pseudocode.... psuedocode doesn't need to be actual HTML, in fact, it shouldn't be. Pseudocode is straight forward and "English looking": Input name Input email Input numButtons set subtotal = .99 * numButtons set tax = .06 * subtotal set shipping = 2 set grandTotal = subtotal + tax + shipping display name display email display numButtons display subtotal display tax display shipping display grandTotal
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.