05.03.2010, 10:54
Ok, I'm in a Computer Science/Programming class whatever you wanna call it in school and my teacher has asked me to do some weird shit.
Basically she's said(yes its a she omfg) i need to explain to her in English(so words) not in a code(Probably java or C++) how i can make a loop.
Heres the problem or whatever:
I need to explain to a coder to make a program for a user that asks to input 2 numbers to add up to less than 20 and if its less than 20 but greater than 0 display a dialog but if the user enters 2 numbers that add up greater than 20 make them do it again(loop).
i don't know if ive explained that right
if num1 + num2 are <20 but <0
show dialog
if num1 + num2 are >=20
loop
Need to explain it in english so if im a project leader and i have a team of programmers they will understand what i want.
I don't know why the fuck we're learning this i just wanna do some scripting, if anyone understands what i mean puhlease help.
Basically she's said(yes its a she omfg) i need to explain to her in English(so words) not in a code(Probably java or C++) how i can make a loop.
Heres the problem or whatever:
I need to explain to a coder to make a program for a user that asks to input 2 numbers to add up to less than 20 and if its less than 20 but greater than 0 display a dialog but if the user enters 2 numbers that add up greater than 20 make them do it again(loop).
i don't know if ive explained that right
if num1 + num2 are <20 but <0
show dialog
if num1 + num2 are >=20
loop
Need to explain it in english so if im a project leader and i have a team of programmers they will understand what i want.
I don't know why the fuck we're learning this i just wanna do some scripting, if anyone understands what i mean puhlease help.