// Program to compute a student's overall score in cse142 given their homework // scores and exam scores. public class OverallScore { public static void main(String[] args) { // hw1=8/10, hw2=14/16, hw3-8 = 18/20, section=18/18 // mid 81 // fin 74 System.out.println("overall = " + 0.45 * (10 + 16 + 6 * 20 + 18 / 8 + 14 + 6 * 18 + 18) + 0.2 * 81 + 0.35 * 74); } }