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

.How to draw this flowchart? A program multiplies two numbers using repetitive addition. Create two separate flowcharts that multiplies two numbers using repetitive addition using these two structures: 1. Do-While or Do-Until Loop 2. While Loop

OpenStudy (anonymous):

I'm not sure are... do ifs have diamonds ?

OpenStudy (anonymous):

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

OpenStudy (anonymous):

<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):

how to convert that to picture???

OpenStudy (anonymous):

Don't do 1 to input 1. do "is input 1 equal 0?" and subtract 1 from input 1 with each addition

OpenStudy (anonymous):

Okay here is how you do a command: ``` x++ ``` |dw:1381826691802:dw|

OpenStudy (anonymous):

For conditional statement: ``` if (x == 0) { x++ } ``` |dw:1381826746365:dw|

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!