public void calcAvgRating() {

		float ratings = 0;
		float count = 0;

		for (int i = 1; i < 6; i++) {

			int value = 0;

			switch (i) {
				case 1:
					value = rating1;
					break;
				case 2:
					value = rating2;
					break;
				case 3:
					value = rating3;
					break;
				case 4:
					value = rating4;
					break;
				case 5:
					value = rating5;
					break;

				default:
					break;
			}

			ratings += i * value;
			count += value;
		}

		if (count < 1) {
			this.avgRating = 0;
		} else {
			this.avgRating = ratings / count;
		}
	}