LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-26-2003, 04:40 PM   #1
late_nighter
LQ Newbie
 
Registered: Oct 2003
Posts: 4

Rep: Reputation: 0
Question Online Programming Contest


We want to organize an online programming contest.What all things should we take care that the contest goes of fine even with an load of thousand users connecting to the server and uploading programs ???
 
Old 10-26-2003, 05:17 PM   #2
Laptop2250
Member
 
Registered: Oct 2003
Posts: 131

Rep: Reputation: 15
hey i am the event organizer, below we will mine out the newbs hehe
QUESTION 1 TO THIS CONTEST IS: How do you fix the while loop in this code?

public class Kalculator
{public static void main (String []args)
{String temp, total;
int menuChoice, num1, num2, result=0;
EasyReader r= new EasyReader();
System.out.println ("Select an operation (1,2,3,4) \n"+
" 1.Add \n"+
" 2.Subtract \n"+
" 3.Multiply \n"+
" 4.Divide \n");
System.out.print ("You have choose choice: ");
temp= r.readLine();
menuChoice= Integer.parseInt(temp);
while (int menuChoice = 1)
{System.out.print ("Enter only the number in choice for operation. \n"+
"Ex. You have choose choice:1 \n"+
" This choice '1' will give you the operation addition.");
}
System.out.print ("Enter your first integer: ");
temp= r.readLine();
num1= Integer.parseInt(temp);
System.out.print ("Enter your second integer: ");
temp= r.readLine();
num2= Integer.parseInt(temp);
if (menuChoice==1)
result = num1 + num2;
else if (menuChoice==2)
result = num1 - num2;
else if (menuChoice==3)
result = num1 * num2;
else if (menuChoice==4)
result = num1 / num2;
System.out.print ("Your result is "+result);
}
}



good luck, responses expected by 9pm EST

Last edited by Laptop2250; 10-26-2003 at 05:20 PM.
 
Old 10-26-2003, 06:17 PM   #3
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
for one, if you post code could it be in [ code ] tags so it's a little more readable, and how
are we supposed to answer without giving it away? and frankly, this is just insulting, even
when i was a super newb i would of known this.

where is this contest run from? where is everything being uploaded 2?and most importantly, what r the prizes!
 
Old 10-31-2003, 06:36 AM   #4
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 35
I'm not very good at programming, but I know the answer. And also:
Quote:
how are we supposed to answer without giving it away?
Yeah, what he said
 
Old 10-31-2003, 02:54 PM   #5
nibbler
Member
 
Registered: Oct 2003
Location: Croatia
Distribution: Fedora 4
Posts: 46

Rep: Reputation: 15
they have some interesting problems ( about 16 000 of them ) at acm.uva.es/problemset, and they offer you to organise a contest yourself.
 
Old 11-01-2003, 02:35 AM   #6
GŠutama
Member
 
Registered: Jun 2003
Location: Tokyo
Distribution: Gentoo
Posts: 78

Rep: Reputation: 15
There is a great all-the-time coding competition on TopCoder.
I don't know what languages they compete in except JAVA, that I know for sure.
Try it out you can win money or even get at job since people from big companies scouts the contests.
 
Old 11-02-2003, 01:54 PM   #7
linorg
Member
 
Registered: Nov 2003
Location: delhi
Distribution: redhat 8.0 ,fedora
Posts: 32

Rep: Reputation: 15
topcoder is really the best online coding comp
it supports c++,java c# ,vb.net
a must visit for enthu prgmmr
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hari's Little Contest#1: Linux Troll Essay Contest vharishankar General 32 07-01-2006 12:52 AM
Looking For: FREE Online Downloadable C Programming Book. rvijay Programming 10 01-28-2005 10:19 AM
Qt programming contest by QtForum.org and Trolltech ChristianQt Programming 0 02-24-2004 11:22 AM
online programming contests LinuxTiro Programming 3 08-31-2003 07:38 AM
New Contest jeremy LQ Suggestions & Feedback 15 02-08-2003 05:42 AM


All times are GMT -5. The time now is 12:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration