COM 150 Project 5: Election Vote Counter

Verified

Added on  2019/09/16

|1
|290
|369
Project
AI Summary
This is a project assignment for COM 150 - Introduction to Computer Programming. Students are tasked with creating a Visual Basic program to count votes for a mayoral election. The program should allow users to input votes for three candidates (A, B, and Uncle Thaddeus) or exit to show totals. The program must include a vote button, input box, message box for invalid inputs, and display the winner with a picture. Students are required to submit their code via Canvas and as a hard copy, along with comments and a description of the program.
Document Page
COM 150 – Introduction to Computer Programming
PROJECT #5
DUE: Wednesday, November 30, 2016
Program name will be PROJ5___ where the underscore represents your initials.
Uncle Thaddeus, (who has lots of money and too much time) has decided to run for
Mayor. His two opponents are very famous personalities (you decide). Based on the
disaster with counting votes from the 2000 Presidential race, Uncle Thaddeus has asked
you to create a Visual Basic program to fairly and properly count the votes.
Vote for One Candidate:
A. Candidate A
B. Candidate B
C. Uncle Thaddeus
D. Exit and Show Totals
Use a Button with Text VOTE that when clicked will have an InputBox appear to enter
your vote.
Display a MessageBox if an input is not “A,” “B,” “C,” or “D.”
After exiting the loop, output the totals for each candidate and determine who won.
Assume there are no ties in this election. Display a picture of the winner!
**For full credit:
1. Be creative.
a. Follow guidelines from section 3.9 of your textbook.
2. Include an EXIT button.
3. Use comments
a. Your name
b. Description of the program
c. Input, output, and process
4. Copy and paste your code into a MS Word document and submit via Canvas.
5. In addition to submitting your code to Canvas, print out and submit a hard copy
of your code.
6. You do not need to hand in an algorithm.
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
[object Object]