4 assignments worth 5 points each 4 * 5 = 20 20 is max amount that can be earned

Customer:replied 1 year ago.

Basically, at the end of the program, the total of all points does not add up... Use the following inputsHomework weight - 50 Exam 1 weight - 20 Number of assignments - 3 Assignment 1 score - 14 Assignment 1 max - 15 Assignment 2 score - 16 Assignment 2 max - 20 Assignment 3 score - 19 Assignment 3 max - 25Total points = 65 / 80 Weighted Score = 40.63 - This is where the problem is

Customer:replied 1 year ago.

It should take the 65(total points earned) and / by 80(total max points possible) and * by 50(homework weight) 65/80 = .81 * 50 = 40.63

Customer:replied 1 year ago.

65 comes from 14 + 16 + 19 (all assignment scores above) + 16(4 session at 4 points each) 80 comes from 15 + 20 + 25 (all assignment scores max above) + 20(total posisble session points) 65 / 80 = .81 .81 * 50(homework weight) = Weighted Score of 40.63

Customer:replied 1 year ago.

The problem has to be in the last line figuring the total... double whs = (double) (totpoints / totmax)* hww; whs(weighted score)=65(totpoint) / 80(totmax) * 50(hww) = 40.63