mersenneforum.org The List
 Register FAQ Search Today's Posts Mark Forums Read

 2018-05-15, 15:00 #2 henryzz Just call me Henry     "David" Sep 2007 Cambridge (GMT/BST) 22·33·5·11 Posts My inclination is that the list would be different for different languages. Different tasks can be much easier/harder in different languages.
 2018-05-15, 15:20 #3 Nick     Dec 2012 The Netherlands 3×587 Posts
 2018-05-15, 16:20 #4 LaurV Romulan Interpreter     "name field" Jun 2011 Thailand 22×11×223 Posts 1 - http://rosettacode.org/wiki/Hello_world/Text 2 - Towers of Hanoi - we love recursion... (do you mean recursion?) 3 - https://en.wikipedia.org/wiki/Quine_%28computing%29 (we love quines also, we created a nice one in our graduation paper, which paper was about computer viruses, somehow, which quine reproduced not only its source, but also its history - how many times was called, when, which parameters, all in a single text file that could be compiled in Borland Pascal and its run would cause output of its source code, but modified with the current run date and parameters, so if you compile it and run it next time, etc... - of course, at the time it was not called quine, this term is relatively new, we used to call it, in some coarse translation, just "algorithm that reproduces its history")
 2018-05-16, 13:52 #5 Xyzzy     Aug 2002 22·3·17·41 Posts
 2018-05-16, 14:00 #6 Uncwilly 6809 > 6502     """"""""""""""""""" Aug 2003 101×103 Posts 1013410 Posts A standard post "Hello world" exercise involves taking input text and producing it to the screen. I would add the step of taking an input of a value for the number of times to print it. This can be used to teach input, variable types, and even parsing and data validation. Those are all early important skills. This is a simple task that can be made more complex by using it to demonstrate a subroutine (using only a single line of code to request both bits of input, but with different prompts.) I have found that teaching the easy simple method to do a task, then returning to it later to teach a more generalized method can open the eyes of the student to what programming can do.  I see that Mike's new #2 is inline with my suggestion, in part. Last fiddled with by Uncwilly on 2018-05-16 at 14:03 Reason: Mike
 2018-05-17, 01:39 #7 Xyzzy     Aug 2002 22·3·17·41 Posts
 2018-05-18, 00:49 #8 Xyzzy     Aug 2002 22·3·17·41 Posts
2018-05-18, 01:04   #10
science_man_88

"Forget I exist"
Jul 2009
Dumbassville

203008 Posts

Quote:
As has been pointed out, it would vary wildly by language. PARI/GP would be able to assign a variable an input by user using a=input() for example.

2018-05-18, 06:07   #11
LaurV
Romulan Interpreter

"name field"
Jun 2011
Thailand

22·11·223 Posts

Quote:
 Originally Posted by Xyzzy Do we have the tasks in the right order?
yuck! as the list gets longer, we would have to click on each link and check how complex we consider each problem. This gets time consuming. We can try it in the future when we get free time here around, but we can't promise anything... Anyhow these new additions (from their titles, we didn't click links) seem all very simple, so the order you introduce them to a class or student (we assume this is your final goal) is not really important. You will have to talk a bit preliminary about positional notation for numbers compared with unpositional (Roman numbers, for example), why introducing Arabian notation was a big leap forward for humanity, , why we use base 10, and why is the base not important in representing quantities, then introduce binary numeration system, explain why the computer is just a bunch of wires through which the current passes (and we have a "1") or it does not pass (and we have a "0"), etc. The audience will grasp the concept that everything can be represented as numbers, and the computer stores all king of information by encoding it into numbers, and the numbers are stored in binary in a hairball of wires going in all directions... This is how I used to start when I was teaching. It catches quite well with the audience, which learns fast about data representation.

Last fiddled with by LaurV on 2018-05-18 at 06:14

 Similar Threads Thread Thread Starter Forum Replies Last Post Belial88 Software 1 2012-11-12 16:37 ltd Prime Sierpinski Project 9 2007-11-22 09:50 edorajh Riesel Prime Search 17 2006-03-28 21:57 Xyzzy LMH > 100M 54 2005-04-27 02:00 Ice9 Math 9 2004-01-27 16:32

All times are UTC. The time now is 07:18.

Thu Dec 9 07:18:28 UTC 2021 up 139 days, 1:47, 0 users, load averages: 1.37, 1.32, 1.23