VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 1 ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: Sun 2003-09-28 11:57:00
Author: goobergunch
Subject: Re: I'm thinking of trying to develop a simple voting algorithm in QBasic (the only language I can really work with...)
In reply to: Redeye 's message, "I'm thinking of trying to develop a simple voting algorithm in QBasic (the only language I can really work with...)" on Sat 2003-09-27 11:13:47

Sounds interesting!

In JAVA, the program would look something like this:

public class vote {
public static void main (String[] args) {

char Candidate = new char()

System.out.println ("Please choose ONE of the following candidates for the Democratic primary for the 2004 presidential election:");
System.out.println ();
System.out.println ("A. Carol Moseley Braun");
System.out.println ("B. Wesley Clark");
System.out.println ("C. Howard Dean");
System.out.println ("D. John Edwards");
System.out.println ("E. Richard Gephardt");
System.out.println ("F. Robert Graham");
System.out.println ("G. John Kerry");
System.out.println ("H. Dennis Kucinich");
System.out.println ("I. Joseph Lieberman");
System.out.println ("J. Alfred Sharpton");

//insert input code here

//call vote-stealing operations here

}
}

Of course, there's probably some way to get this to work in a GUI like the real machines...it'll probably turn out to be easier then actually inputting from the command line (JAVA input is ugly).

[ Next Thread | Previous Thread | Next Message | Previous Message ]


Replies:



Post a message:
This forum requires an account to post.
[ Create Account ]
[ Login ]
[ Contact Forum Admin ]


Forum timezone: GMT-8
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.