I don't even know what that computer language is. When I first got a Northstar Advantage computer back in the early 1980's, it came with a form of basic. A very simple program in this particular version of basic, that would accomplish what is shown in that photo would be as follows:I would have loved to have done that when I was made to write lines, I fear that the teachers wouldn't have a clue on what I was doing though (except in an I.T class obviously).
I don't even know what that computer language is. When I first got a Northstar Advantage computer back in the early 1980's, it came with a form of basic. A very simple program in this particular version of basic, that would accomplish what is shown in that photo would be as follows:
10 For x=1to500
20 !"I will not throw paper airplanes in class."
30 Next
Where this version of basic interpreted the "!" to mean print. Things were much simpler in the old days....maybe that's why it was called Basic.![]()
31 REM You're right, DQuan!In BASIC shouldn't 30 be "Next x"?
Perl FTW
You don't want to hard code the particular punishment, you'd like to write modular code that could handle any punishment. Ideally, you want to be able to pass your code a line to write 500 times...
function punishment(rep,string)
for i=1:rep
disp(['I will not ' string ' in class'])
end
But wouldn't you want it to ask you how many times you want it? So for MatLab:
MetarTouché. Two lines - that was a clean victory. Looks like I found myself something new to learn in my free time.
$evil_deed=`cat @ARGV[0]`;
I don't even know what that computer language is.
Seriously... can we move the programming discussion somewhere else and get back to posting pictures?I can haz funi picz?
Back to the question at hand, I'm pretty sure that's Java. And if it isn't, that explains why I only got a 3 on the AP Comp Sci A last year.![]()
Seriously... can we move the programming discussion somewhere else and get back to posting pictures?
With a pleasing result:
![]()
And repeat...
Heh. Made me laugh.
Can you write a program which corrects your (rep) spelling mistakes on the above JPG?![]()
I felt bad until I saw the Punto made it.
That doesn't make sense.I felt bad until I saw the Punto made it.![]()
Sorry about being so late with a reply, but I had not lurked in the Rumble Strip for several days.In BASIC shouldn't 30 be "Next x"?