/************************************************************************* * Name: * Login: * Precept: * * Description: Compute your average score on a two-part exam. You will * be given 4 command-line arguments: * 1. The number of questions you got right on the first part. * 2. The total number of questions on the first part. * 3. The number of questions you got right on the second part. * 4. The total number of questions on the second part. * Output your percentage score on the exam. * * For example, for PercentScore 8 10 15 17 since you got a total of * 23 questions correct out of 27 and 23/27 = 0.8518 you should print * 85.18518518518519. * * Dependencies: None. * * Examples: * > java PercentScore 8 10 15 17 * 85.18518518518519 *************************************************************************/ public class PercentScore { public static void main(String[] args) { // read 4 command line arguments // calculate the result // print the result } }