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 ???
|
hey i am the event organizer, below we will mine out the newbs :p :D :p 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 |
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! :D |
I'm not very good at programming, but I know the answer. And also:
Quote:
|
they have some interesting problems ( about 16 000 of them ) at acm.uva.es/problemset, and they offer you to organise a contest yourself.
|
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. |
topcoder is really the best online coding comp
it supports c++,java c# ,vb.net a must visit for enthu prgmmr |
All times are GMT -5. The time now is 11:55 PM. |