Ask your own question, for FREE!
Computer Science 14 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!
Latest Questions
Breathless: Spooky witch but cute
6 hours ago 3 Replies 0 Medals
Arriyanalol: help
6 hours ago 10 Replies 2 Medals
Arriyanalol: @tinydinoUwU stop trying to find a argument u blad lil boy
1 day ago 5 Replies 4 Medals
Jaded012023: Please tell me what you all think of this song
8 hours ago 6 Replies 1 Medal
Arriyanalol: bro how
8 hours ago 2 Replies 3 Medals
Arriyanalol: cant wait for the new bluey movie in 2027
1 day ago 12 Replies 2 Medals
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!