Click here to Skip to main content
15,913,487 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: vb.net to vb script converter Pin
Dave Kreskowiak6-Oct-08 10:38
mveDave Kreskowiak6-Oct-08 10:38 
GeneralRe: vb.net to vb script converter Pin
lostboy2416-Oct-08 14:01
lostboy2416-Oct-08 14:01 
QuestionRight fax issue with email ID format Pin
lostboy2416-Oct-08 4:25
lostboy2416-Oct-08 4:25 
QuestionLSA Functions Problems Pin
cyberhiker6-Oct-08 4:21
cyberhiker6-Oct-08 4:21 
QuestionPrimary key problem from .csv file ODBC Pin
cstrader2326-Oct-08 2:20
cstrader2326-Oct-08 2:20 
AnswerRe: Primary key problem from .csv file ODBC Pin
Dave Kreskowiak6-Oct-08 6:25
mveDave Kreskowiak6-Oct-08 6:25 
GeneralRe: Primary key problem from .csv file ODBC Pin
cstrader2327-Oct-08 1:49
cstrader2327-Oct-08 1:49 
QuestionProject help Pin
sweetlover7546-Oct-08 0:13
sweetlover7546-Oct-08 0:13 
hey,
if anyone can help me in this project, i really need someone who can help me in this project
Background Secret ballots are usually conducted with voters entering a cross
beside the candidate of their choice on a ballot paper and posting
their ballot paper in a sealed ballot box. At the end of the ballot the
votes are counted by hand and a winning candidate declared. This
can be time consuming to set up and operate.
Barbara Brown owns a small company that wants to sell a reusable
electronic ballet box. She needs to develop a prototype for a flexible
electronic voting system.
Ballots need be set up so that the winning candidate can be chosen by
one of two possible methods.
1. The winning candidate receives more of the votes cast than
any of the other candidates.
2. The winning candidate receives more than a fixed percentage
of the votes cast e.g. 60%.
You have been asked to write a PROGRAM to set up the ballot,
allow voters to cast their votes and work out the final result.
19.3 Specification 1. You have been asked to write and test a program to simulate the
operation of the electronic ballot box.
Voters can vote only once in any one ballot and are given a unique
number to ensure this.
Voters can choose a single candidate or ‘spoil their ballot paper’ by
choosing none of the above.
There can be between two and five candidates in a ballot.
Up to 5000 voters can vote in any ballot.
The ballot box has three modes of operation:
Setup
Voting
Result
As this is a prototype no password protection is required.


2. Setup:
set the maximum number of voters for the ballot (voters
are all given a unique number from this range, in advance,
manually)
set the number of candidates for this ballot
enter a name and description to be displayed for each
candidate
zero all totals
select the method of choosing the winner.
3. Voting:
each voter enters their unique voter number, the system
must check that this number has not already been used in
this ballot
voters are given three chances to enter their voter number,
if all three attempts fail then the voter is instructed to give
up
if the voter number is accepted then the voter is offered the
list of candidates to choose from including ‘none of the
above’
voters select a single candidate from the list and are asked
to confirm their choice
if the voter rejects their initial choice then the list of
candidates can be offered twice more
on the third time the vote is automatically accepted
one is added to the total for the chosen candidate and one
is added to the total number of votes cast in this ballot
4. Result:
for each candidate the following details are printed
o name
o number of votes cast
o percentage of total votes
o percentage of valid votes (excluding those voting for
none of the above)
the winner is identified and the name printed again with the
word WINNER beside it
OR if there is no winner for method 1 or if the percentage is
less than required for method 2 then INVALID BALLOT is
printed
AQA GCE Specification, 2009 – Computing
klm 45
Testing 5. Candidates will need to design and use test data, including boundary
values, to test the following:
the correct setup of the ballot box including displaying the
candidates to choose from
both methods of choosing a winner
results for three different valid numbers of candidates (2, 5 and
another number in between)
at least one ballot must have over 100 votes
at least one ballot must have no overall winner
Also there must be printouts of results from all the ballots tested.
19.4 Requirements of the Practical
Exercise
Candidates will need to design and implement an appropriate
computing system and provide sufficient documentation to
demonstrate the following practical skills:
Design
Implement/Test.
The task may be undertaken by writing a program in a chosen high
level language.
Candidates are expected to produce brief documentation including
some or all of the following, as appropriate.
Design
Definition of data storage requirements
User interface design for the ballot box
Design for the printout of the results
Algorithm for counting vote totals
Algorithms for selecting the winner
Implementation/Testing
Details of test plan with explanation, and evidence of testing
having been carried out
Hard copy output from the ballots used for testing
Clearly set out and commented program listing
AnswerRe: Project help Pin
Ashfield6-Oct-08 0:50
Ashfield6-Oct-08 0:50 
GeneralRe: Project help Pin
sweetlover7546-Oct-08 4:43
sweetlover7546-Oct-08 4:43 
GeneralRe: Project help Pin
Dave Kreskowiak6-Oct-08 6:18
mveDave Kreskowiak6-Oct-08 6:18 
GeneralRe: Project help Pin
Paul Conrad6-Oct-08 7:31
professionalPaul Conrad6-Oct-08 7:31 
GeneralRe: Project help Pin
Ashfield6-Oct-08 19:54
Ashfield6-Oct-08 19:54 
AnswerRe: Project help Pin
leckey6-Oct-08 13:20
leckey6-Oct-08 13:20 
QuestionHow to use single MDI Child Form for all Crystal reports Pin
kedarrkulkarni5-Oct-08 22:40
kedarrkulkarni5-Oct-08 22:40 
AnswerRe: How to use single MDI Child Form for all Crystal reports Pin
Mycroft Holmes5-Oct-08 22:55
professionalMycroft Holmes5-Oct-08 22:55 
Questionincluding line/scatter chart in VB.net Pin
Amanjot5-Oct-08 13:42
Amanjot5-Oct-08 13:42 
AnswerRe: including line/scatter chart in VB.net Pin
Rupesh Kumar Swami5-Oct-08 20:41
Rupesh Kumar Swami5-Oct-08 20:41 
AnswerRe: including line/scatter chart in VB.net Pin
Thomas Stockwell6-Oct-08 6:14
professionalThomas Stockwell6-Oct-08 6:14 
AnswerRe: including line/scatter chart in VB.net Pin
Dave Kreskowiak6-Oct-08 6:20
mveDave Kreskowiak6-Oct-08 6:20 
GeneralRe: including line/scatter chart in VB.net Pin
Amanjot6-Oct-08 16:29
Amanjot6-Oct-08 16:29 
GeneralRe: including line/scatter chart in VB.net Pin
Dave Kreskowiak7-Oct-08 2:01
mveDave Kreskowiak7-Oct-08 2:01 
Questionfilestream not working properly Pin
kjdion5-Oct-08 10:16
kjdion5-Oct-08 10:16 
AnswerRe: filestream not working properly Pin
jzonthemtn5-Oct-08 11:40
jzonthemtn5-Oct-08 11:40 
AnswerRe: filestream not working properly Pin
Guffa5-Oct-08 22:55
Guffa5-Oct-08 22:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.