PHP Balloting System

timer Asked: Jun 3rd, 2013
account_balance_wallet $5

Question Description

I am attempting to build a balloting system for voting. This system is essentially for the community to vote for local businesses, artists, etc. and then in turn, I will compile the database information into a usable list. I have created UML diagrams of the database tables and the classes i will be using. I basically wanted some input on this subject to see what other people think I could do to simplify this process or see if I might be doing something wrong. I am using a PHP/MySQL environment to build this application. I am including my UML diagrams here. I want to plan this out properly so, I have not started writing the code yet. Thank you for any input you might have!

The Run Down
Categories can also be subcategories, based on the parent field. If  the parent is 0, then the category is a top-level category. (example:  Dining)
A Question belong to a Category, and they represent  something to be answered. (example: Best Asian Restaurant)
Nominations are the write-ins for the questions and belong to a Question. Users must enter their own entry here, there will not be a list to choose from.(example: Roy's Asian Diner)
A Vote is a single vote attached to a Voter and a Nomination. This represents a single, individual vote by a voter.
A Voter is a user that must register(one time) with an email and a name. The Voter is attached their votes.
A Ballot draws all this together and includes a category,question,and nomination. Once committed, it places a +1 vote to the nomination based on the nomination id.
I will use a custom DatabaseAdapter class and a DatabaseConfig class to access and maintain the database.

Does all this seem like a correct and feasible way to go about writing this application? Thank you again for any input!
<a href="">Classes</a>
<a href="">Database Tables</a>

Tutor Answer

School: UT Austin

This UML looks fine. I didn't see any problems. Do you have any specific questions?

flag Report DMCA

Top quality work from this guy! I'll be back!

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors