The members of a club bring a computer to their annual meeting to use in the ele
ID: 3762373 • Letter: T
Question
The members of a club bring a computer to their annual meeting to use in the election of a new president. Write a program to handle the election. (See figure). When the program is first run, the lable at the top of the page should read as folloes: Click "Nominate Candidate" to enter a candidate, or "Start Voting" to end nominations and start the voting. The program should add each candidate to a list box as he or she is nominated. After the nomintation process is complete, club members should be able to approach the computer one at a time and double-click on the candidate of their choice. When the Tally Votes buton is clicked on, a second list box, showing the number of votes received by each candidate, should appear along side the first list box. Also, the name(s) of the candidate(s) with the highest number of votes should be displayed in a message box.
Explanation / Answer
Object
Property
Setting
VotingForm
Text
Voting
lblTittle
Text
Nominate Candidate or Start Voting to end
nominations and start the voting
btnNaminate
text
Nominate Candidate
btnStart
Text
Start Voting
btnTally
Text
Tally Votes
click on candBox and slelect double click event from properties window
Program:
Object
Property
Setting
VotingForm
Text
Voting
lblTittle
Text
Nominate Candidate or Start Voting to end
nominations and start the voting
btnNaminate
text
Nominate Candidate
btnStart
Text
Start Voting
btnTally
Text
Tally Votes
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.