File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes What sall we do with the drunken sailor ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

What sall we do with the drunken sailor ?

Michael McGrath
Greenhorn

Joined: Feb 26, 2009
Posts: 8
Can anybody write the algorithm for :

https://www.cs.tcd.ie/~vjcahill/1ba2/assignments/Assignment4.pdf

the program ? The applet ?

Cheers !

Michael.
Michael McGrath
Greenhorn

Joined: Feb 26, 2009
Posts: 8
aargh, What Shall we do with the drunken sailors ?

Better still, could some genius create an animation by using Processing 101 ?
Michael McGrath
Greenhorn

Joined: Feb 26, 2009
Posts: 8
This was used as an examination question in Java in " Introduction to programming " ( Java) by Professor Vinny Cahill in last summers Junior Freshman Annual examination at Trinity College Dublin, Ireland's top university, one of the seven ancient universities of the British Isles with the acknowledged toughest Computer Science degree in the world - outside of a couple of top USA universities. Anybody who can get the algorithm for this one is GOOD, the code EVEN BETTER, the applet BEST - and to animate it in Processing 101, the best worldwide :-)

Cheers,
Michael.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14149
    
  18

Welcome to JavaRanch.

When I clicked the link, I got a username / password prompt, so I couldn't see the document.

Are you doing this for a homework assignment? Did you try solving the problem yourself? We here at JavaRanch like to help people to learn Java, but you don't learn anything if we do your homework for you.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19693
    
  20

Michael McGrath wrote:aargh, What Shall we do with the drunken sailors ?

Put them in rehab of course.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41843
    
  63
Put them in rehab of course.

But they don't serve alcohol in rehab ...


Ping & DNS - my free Android networking tools app
Michael McGrath
Greenhorn

Joined: Feb 26, 2009
Posts: 8
Hi Jasper,
Try my login at tcd - username : mcgratmj, password ictu5Shu

I'm starting the assignment, I think it's fab, I reckon it's a Queue, and that I'll have to use probability, but I'm not sure about the method to use, if you or anyone can help, brown envelope on the way, thanks.
Michael McGrath
Greenhorn

Joined: Feb 26, 2009
Posts: 8
sorry again ! try my username : mcgratmj ,
password : iche5Shu

That should log you into Vinny's delightful Java puzzles,

Enjoy :-)
Michael McGrath
Greenhorn

Joined: Feb 26, 2009
Posts: 8
Eventually, though not required by the Professor, I would love to create an entire animation out of this assignment through using Processing 1.01 at which I'm quite good.
Michael McGrath
Greenhorn

Joined: Feb 26, 2009
Posts: 8
And, by the way, Jasper, could you have a look at my Java course while in there, and let me know if there is a similar course at Java Ranch that might help me progress in my college Java course ? We're on eclipse. Thanks.
Michael McGrath
Greenhorn

Joined: Feb 26, 2009
Posts: 8
And I'll buy you a big creamy pint of Guinness whenever you're in Dublin :-)
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18836
    
  40

You never answered Jesper's original questions....

Are you doing this for a homework assignment? Did you try solving the problem yourself? We here at JavaRanch like to help people to learn Java, but you don't learn anything if we do your homework for you.


Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19693
    
  20

Michael, can you please start using the Edit button? 5 posts right after each other is really not necessary. Editing your previous post and adding the info is a lot better.

Of course this does not apply to posts that already have had replies to them.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3539
    
  15
Michael McGrath wrote:Trinity College Dublin, Ireland's top university, ... with the acknowledged toughest Computer Science degree in the world - outside of a couple of top USA universities.


And I'm the greatest Java programmer in the world (as long as you exclude all those programmers that are better than me)


Joanne
Tom Johnson
Ranch Hand

Joined: May 11, 2005
Posts: 142
Joanne Neal wrote:
Michael McGrath wrote:Trinity College Dublin, Ireland's top university, ... with the acknowledged toughest Computer Science degree in the world - outside of a couple of top USA universities.


And I'm the greatest Java programmer in the world (as long as you exclude all those programmers that are better than me)


Good spot Joanne, I missed that....we have a little joke over here in Ireland about Trinity College students and how big-headed they are:

Q: "If you are on a bus and a stranger sits beside you; how will you know that they went to Trinity?"
A: "They'll tell you"


<a href="http://faq.javaranch.com/java/UseCodeTags" target="_blank" rel="nofollow">Use Code Tags!!</a>
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18836
    
  40



Okay, I am going to lock this topic. It seems that this topic has gone completely off of the rails.... And BTW, that last joke is funny. I have to remember that ...


Michael,

How about this? Read these first....

http://faq.javaranch.com/java/ShowSomeEffort
http://faq.javaranch.com/java/NotACodeMill
http://faq.javaranch.com/java/DoYourOwnHomework

These pages mostly explain why you may be incurring some wrath.

So, please start your project... And if you run into any issues while working on it, here are some pages that explain how to best ask for help...

http://faq.javaranch.com/java/TellTheDetails
http://faq.javaranch.com/java/PostRealCode

Henry
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What sall we do with the drunken sailor ?