General Election 2010 Adding Votes

From Progzoo
Jump to: navigation, search

The class Seat includes the name of the constituency, the number of people eligible to vote. It also gives the name of the elected MP and his or her party. The name of the party that won the seat in the previous election (2005) is also given.

We will not be looking at the results field until later.

class Seat {
	public int index;
	public String place;
	public int electorate;
	public String mp;
	public String party;
	public String prev;
	public ArrayList<Mandate> results;
}

How many electors

Show the total of the electorate


[Font] [Default] [Show] [Resize] [History] [Profile]

Edinburgh vs Glasgow

Print the number of voters in Edinburgh and the number of voters in Glasgow.


[Font] [Default] [Show] [Resize] [History] [Profile]