QualityPoints - S if(s>=80&s<=89) i...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//Jamel Jenkins 10/30/08 import java.util.*; public class QualityPoints { static Scanner console = new Scanner(System.in); public static void main(String[]args) { int student; System.out.println("Enter the student's average in ranges of 0-100"); student = console. nextInt(); qualityPoints(student); } public static void qualityPoints(int s) { i System.out.println("Your Average is 4");
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: S if(s>=80&s<=89) i System.out.println("Your Average is 3"); S if(s>=70&s<=79) i System.out.println("Your Average is 2"); S if(s>=60&s<=69) i System.out.println("Your Average is 1"); S if(s>=0&s<=59) i System.out.println("Your Average is 0"); S else if(s<0&s>100) e System.out.println("You entered an invalid number"); }}...
View Full Document

This note was uploaded on 10/04/2010 for the course COMPUTER S 106 taught by Professor Moore during the Spring '08 term at Clark Atlanta.

Ask a homework question - tutors are online