Have no idea how to code this Voting and storing into an array program.

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
note, this is homework. Its not worth much, but i really need to learn how to store things in arrays. my biggest confusion is that i have no idea how to store something in an array, have the program run again and continuously build the array and
then display the array in its current state (by like clicking a display poll button) and then still allow it to build more once more data is entered.
Heres the whole assignment. I dont really understand how to start it and the problem above is my biggest frustration!
Thanks!!! :D
"<span style="font-size:13px; color:#0000ff Write a Visual Basic application that can be used to determine the best Super Bowl commercial. The choices are as follows: Budweiser, FedEx, E*Trade, and Pepsi. The application should allow for the user to enter
a voters name, gender and select a commercial from a list.
<span style="font-size:13px; color:#0000ff
Create a Vote structure that will contain the voters first name, last name, gender and the selected commercial. Each time a vote is entered, the information should be added to an array of Vote structures.
Provide the ability to save your data to a sequential access file. The program should also be able to read an existing file of vote data into an your array of Vote structures. Doing so, should eliminate any data that may have already been in the array.
Provide the ability to display the commercial that was most favored by male voters and the commercial that was most favored by female voters. Also, display the number of votes that each commercial received."


View the full article
 
Back
Top