Posted By

josua243 on 09/24/10


Tagged


Versions (?)

ADMISSION TEST QUALIFICATION


 / Published in: Java
 

  1. /**
  2.  * @(#)Test.java
  3.  *
  4.  *
  5.  * @author
  6.  * @version 1.00 2010/9/23
  7.  */
  8.  
  9.  
  10. import java.io.*;
  11. public class Test {
  12.  
  13. public static void main(String[] args) throws IOException {
  14. double GPA = 0;
  15. int ATS = 0;
  16.  
  17.  
  18. System.out.print(" Enter GPA : ");
  19. String xGPA = rd.readLine();
  20. GPA = Double.parseDouble(xGPA);
  21.  
  22. System.out.print(" Enter ATS : ");
  23. String xATS = rd.readLine();
  24. ATS = Integer.parseInt(xATS);
  25.  
  26. if((GPA >= 3.0) || (ATS >= 60))
  27. System.out.print( "Accepted");
  28.  
  29. else
  30. System.out.print(" Rejected ");
  31.  
  32. }
  33. }

Report this snippet  

You need to login to post a comment.