QualityPoints - if(num>=70&num<=79)

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

View Full Document Right Arrow Icon
//Jamel Jenkins 10/30/08 //# 49 import javax.swing.JOptionPane; public class QualityPoints { public static void main(String[]args) { String point; point = JOptionPane.showInputDialog(null,"Enter the student's average 0-100"); int num; num = Integer.parseInt(point); { JOptionPane.showMessageDialog(null,"Your Average is 4"); JOptionPane.showMessageDialog(null,"Your Average is 3");
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: if(num>=70&num<=79) JOptionPane.showMessageDialog(null,"Your Average is 2"); if(num>=60&num<=69) JOptionPane.showMessageDialog(null,"Your Average is 1"); if(num>=0&num<=59) JOptionPane.showMessageDialog(null,"Your Average is 0"); else if(num<0&num>100) JOptionPane.showMessageDialog(null,"You entered an invalid number"); System.exit(0); }}}...
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