package asst0;
import java.io.*;

// CSC108 Assignment #0
// Name:  Iam Me         Student ID: 555555555
// Tutor: Andria Hunter  Prof: Ken Jackson
//
// Program Description: Reads a term mark and a final
//     exam mark and calculates and reports a course grade.

class a0 {

   // Main method to read marks and display final grade.

   public static void main (String[] args) throws IOException {

      // Declare stdin so data can be read from input.
      DataInputStream stdin = new DataInputStream (System.in);

      final double TERM_WEIGHT = .55;  // Term mark percentage
      final double EXAM_WEIGHT = .45;  // Exam mark percentage

      int term_mark, exam_mark;    // Term and exam marks
      double result;               // Final mark

      // Read in the term mark and exam marks from stdin
      System.out.println ("Enter the term mark");
      term_mark = Integer.parseInt(stdin.readLine());

      System.out.println ("Enter the exam mark");
      exam_mark = Integer.parseInt(stdin.readLine());

      // Calculate the final course mark and display it
      result = TERM_WEIGHT * term_mark + EXAM_WEIGHT * exam_mark;

      System.out.print ("Here's the final grade ");
      System.out.println (result);
   }
}

/*

Sample Input
80
60

Sample Output
Enter the term mark
Enter the exam mark
Here's the fial grade 71.0

*/

