// Program to compute a student's overall score in cse142 given their homework // scores, section participation score, midterm and final scores, and the // number of engagement activities they participated in. public class OverallScore { public static void main(String[] args) { // hw1=10, hw2=16, hw3-8 = 20, section=20, mid=10, final=20 int totalPoints = 10 + 16 + 6 * 20 + 20 + 10 + 20; int actualPoints = 8 + 14 + 6 * 18 + 20 + 10 + 20; int engage = 2; double overall = 100.0 * (actualPoints + engage / 3.0) / totalPoints; System.out.println("overall = " + overall); } }