Advertisement
oona

test scores

Jan 24th, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 KB | None | 0 0
  1. /**
  2.  * @(#)tests.java
  3.  *
  4.  *
  5.  * @author
  6.  * @version 1.00 2013/9/17
  7.  */
  8.  
  9.  
  10. public class tests {
  11.  
  12.  public static void main(String[] args)
  13.  {
  14.  System.out.println("How much did you score on your first test?");
  15.  
  16.  //data input
  17.  int score1;
  18.  int score2;
  19.  int score3;
  20.  int score;
  21.  double average;
  22.  int grade = 0;
  23.  
  24.  System.out.println("How much did you score on your first test?");
  25.  score1 = TextIO.getInt(); // user enters test score here
  26.  
  27.  System.out.println("How much did you score on your second test?");
  28.  score2 = TextIO.getInt(); //user enters test score here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement