Ask your own question, for FREE!
Computer Science 19 Online
OpenStudy (anonymous):

how to make a program that multiplies two numbers using repetitive addition. and Creating two separate flowcharts that multiplies two numbers using repetitive addition using these two structures: 1. Do-While or Do-Until Loop 2. While Loop ????????????????????????????????????????? help ..

OpenStudy (anonymous):

@amistre64 help please :)

OpenStudy (amistre64):

input 1, input 2 var a = 0 for x = 1 to (input 1) a = a + (input 2) display a

OpenStudy (amistre64):

most loops are basically the same structure; a few tweaks would let you modify it for the specifics

OpenStudy (anonymous):

uhmmp. okey :D

OpenStudy (amistre64):

<html> <input id="i1"><br> <input id="i2"><br> <input type = button value="add em up" onclick="addMe"><br> <script language=javascript> var a=0 function addMe() { var m = document.getElementById("i1").value * (-1) var n = document.getElementById("i2").value * (-1) for (x=1; x<= m; x=x+1) {a=a+n} alert(a) a=0 } </script> </html>

OpenStudy (anonymous):

aww. i dont understand that pseudocode ..

OpenStudy (amistre64):

thats not pseudocode ....

OpenStudy (anonymous):

how to convert that to flowchart?

OpenStudy (anonymous):

uhh im sorry i though its pseudocode

OpenStudy (amistre64):

what i posted first was pseudocode i then transcribed it into html/javascript to create a program.

OpenStudy (anonymous):

uhh ok

OpenStudy (anonymous):

thank you @amistre64 :)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!