Program 4: The Pet Project
Due: 04/20
Write a program that allows the user to vote for their favorite pet and properly count the votes.
Users can vote for one candidate:
- Dog (D)
- Cat (C)
- Fish (F)
- Bird (B)
You will need two buttons. One that captures the user’s vote and one to show the final results.
Make sure to output the totals for each pet and determine the winner. Assume there are no ties. Display a picture of the winner and the number of votes they received as Stars.
In this exercise, you will:
- Create an algorithm
- Add Controls to a XOJO form
- Declare and assign values to global variables using Modules and Properties
- Use IF Statements and relational operators
- Practice Using Loops
- Use the Visible Property
- Use a MessageBox to Output Information
- Use a ListBox to Output Information
IPO Worksheet
Download a PDF copy of the IPO Worksheet to help plan your work.