ch4EX1 - import import import import import i import...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.util.*; import java.lang.*; import*; import java.text.*; import java.math.*; import java.text.DecimalFormat; i public class ch4EX1 { public static void main(String[] args) { int num; System.out.println("*********************************************"); System.out.println("* The purpose of this number is to *"); System.out.println("* tell What is the number, the order of *"); System.out.println("* three numbers, and assign numbers to *"); System.out.println("* letters in a menu driven program *"); System.out.println("*********************************************"); S do { System.out.println(); System.out.println("\t1. What is the number"); System.out.println("\t2. input three numbers"); System.out.println("\t3. numbers between 0 and 35"); System.out.println("\t4. EXIT"); System.out.println("\tPlease Enter 1, 2, 3, or 4 exit"); S System.out.println(); S Scanner console = new Scanner(; num = console.nextInt(); n switch (num) { case 1: Number(); break; case 2: Three_numbers(); break; case 3: Integers(); break; case 4: System.out.println("Thank You for using
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/17/2011 for the course COMPUTER S 2301 taught by Professor Staff during the Spring '11 term at Kennesaw.

Page1 / 4

ch4EX1 - import import import import import i import...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online