Assignment_one - import import import import import import...

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

View Full Document Right Arrow Icon
import*; import java.text.*; import java.util.Scanner; import java.lang.*; import java.math.*; import java.lang.String; import javax.swing.JOptionPane; //Jeremy Debruce // 1/20/2009 // Assignment One public class Assignment_one { static int num,num2,a,c; static Scanner Console = new Scanner(; S public static void main(String[] args)throws FileNotFoundException, IOException { // purpose of the program System.out.println("**************************************************"); System.out.println("*The purpose of this program is to allow the user*"); System.out.println("*evaluate Programming Exercises 1,2,3, & 4 using*"); System.out.println("*Control Structures: This Program is Menu Driven *"); System.out.println("**************************************************"); System.out.println(); Scanner Console = new Scanner(;// Scanner System.out.println(); System.out.println(); System.out.println("Please Enter the number of the program you would like to use"); do {//The Menu choice System.out.println("*****************"); System.out.println("*1. Exercise #1 *"); System.out.println("*2. Exercise #2 *"); System.out.println("*3. Exercise #3 *"); System.out.println("*4. Exercise #4 *"); System.out.println("*5. Exit *"); System.out.println("* *"); System.out.println("*****************"); num = Console.nextInt(); switch(num) { //case statements case 1: Ex_1(); break; case 2: Ex_2(); break; case 3: Ex_3(); break; case 4: Ex_4();
Background image of page 1

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

View Full DocumentRight Arrow Icon
break; case 5: System.out.println("Thank You For Using This Program!!!"); break; default:System.out.println("Please follow directions only 1,2,3,4 or
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 7

Assignment_one - import import import import import import...

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

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