the one and only truly amazing katster (katster) wrote,
the one and only truly amazing katster
katster

  • Mood:

I hate asking for help with my homework in such a pathetic manner...

My instructor gave us pseudocode to help with the writing of our program. Unfortunately, my instructor writes pseudocode in C, which is a language I mostly don't get. Anybody feel up to translating the parts I have pointers to?

buff: space 13

t3=a0
t9=0
t8=10
if (t3<0) then {t9=1, t3=-t3}
a0=&buff
a1=a0+12
mem(a1)=0 <-- this line

do{
high, low = t3 <-- and what the heck he's doing with this do statement?
t0=high
t3 = low
a1 = a1-1
t0 = t0+48
mem(a1) = t0}
while (t3>0)

if (t9=1) {a1=a1-1; mem(a1)="-"

while (a1 > a0)
{a1 = a1 -1
mem(a1)=" "

out << buff
return

Subscribe

  • you don't need to say a word

    “Preach the Gospel at all times. When necessary, use words." --attributed to St. Francis of Assisi The other day, Fred Clark of slacktivist put…

  • (no subject)

    It's my birthday. I was going to write something, but it doesn't want to come out. Maybe tomorrow. This entry was originally posted at…

  • very picky vampires

    For those who weren't aware, my mother has leukemia. Again. She went through two bouts of leukemia in 2001 and 2004, the latter ending in a stem cell…

  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 3 comments