steve101
Member
Registered: 25th Oct 04
Location: Kilmarnock, Ayrshire, Scotland
User status: Offline
|
Hey guys
Is there anyone on here with some java knowledge, im stuck with a (probably simple) uni project.
Cheers
[Edited on 30-04-2007 by steve101]
|
Planty02
Member
Registered: 5th Mar 05
Location: Burslem, Stoke-on-Trent
User status: Offline
|
i did a javascript module a uni a few years back - u2u me if u like
|
James
Member
Registered: 1st Jun 02
Location: Surrey
User status: Offline
|
Java or Javascript?
|
Planty02
Member
Registered: 5th Mar 05
Location: Burslem, Stoke-on-Trent
User status: Offline
|
ive done both to a certain extent
|
James
Member
Registered: 1st Jun 02
Location: Surrey
User status: Offline
|
I was asking steve
|
steve101
Member
Registered: 25th Oct 04
Location: Kilmarnock, Ayrshire, Scotland
User status: Offline
|
Right guys, I got the thing I needed help on sorted out back in January, but I now need EXTREME help with the current coursework - to me it's extremely difficult, and I've no idea how to do what it's asking, but is probably easy for experts?
Any help GREATFULLY appreciated - will pay money to anyone who can help!
|
John
Member
Registered: 30th Jun 03
User status: Offline
|
That'll be handy when they give you a degree and you can't actually do it if you get a job
|
steve101
Member
Registered: 25th Oct 04
Location: Kilmarnock, Ayrshire, Scotland
User status: Offline
|
I'll learn it eventually, but this is hefty!
|
steve101
Member
Registered: 25th Oct 04
Location: Kilmarnock, Ayrshire, Scotland
User status: Offline
|
anyone? Im pretty good with php etc, but this java is beyond me completely!
|
andy1868
Member
Registered: 22nd Jun 06
Location: Burscough, Lancashire
User status: Offline
|
quote: Originally posted by John
That'll be handy when they give you a degree and you can't actually do it if you get a job
|
steve101
Member
Registered: 25th Oct 04
Location: Kilmarnock, Ayrshire, Scotland
User status: Offline
|
to hell with a job in IT!
|
Simon
Member
Registered: 24th Apr 03
Location: Oxfordshire
User status: Offline
|
might help if you said what problem was
|
steve101
Member
Registered: 25th Oct 04
Location: Kilmarnock, Ayrshire, Scotland
User status: Offline
|
I wouldnt know where to start mate. I basically have been tasked with creating a program - with use of a text file, and the command prompt - which allows two teams to be picked (the players info is held in the text file).
Each side has 11 players each, after the team members have been allocated to the appropriate arrays - add player using command prompt - it then has to be predicted which team will win, based on the players ratings (1,2,3,4,5 etc).
NB I've started the only bit im comfortable with - showing all available players on screen with the command line.
[Edited on 30-04-2007 by steve101]
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
are you stuck with the code? as i would look pscode.com for ideas and general questions. But the concept is fairly similar mate, text file with player info...i would do:
frank bob, 3
bob joe, 1
(etc)
with every player having its own line and seperated with a comma for the rating. You list the players (print the text file out). They select the player (each player given a specific number during listing), and based on which team is selecting players (you have two arrays, one for each team) is placed in the correct array.
Repeat this process 21 more times.
Then its a case of going through each array, split the array text on the comma (have two integers for each team) and have the rating value added to the current teams integer. With these two values, divide each one by 11 to get the average....then its a case of which one is bigger to determine who is most likely to win!
Something like that anyways
As for actualy code, haven't a clue never looked at Java....would be fairly simple to knock up in VB/C/C++ though with the above idea.....
|