Ex_5CH_7 - import java.util import java.lang import java.io...

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 java.io.*; import java.text.*; import java.math.*; import java.text.DecimalFormat; // Jeremy Debruce // 2/18/2009 //Chapter 7 / public class Ex_5CH_7 { static double pi = 3.1416; static int x1, x2, y1, y2; static double A,B,C,D; static int num; static Scanner Console = new Scanner(System.in); public static void main(String[] args) { // purpose of the program System.out.println("**************************************************"); System.out.println("*The purpose of this program is to solve *"); System.out.println("* programs Ex_5 in Chapter seven *"); System.out.println("* This Program is Menu Driven *"); System.out.println("**************************************************"); System.out.println(); Scanner scan = new Scanner(System.in);// Scanner System.out.println(); System.out.println(" Please enter a value for x1. "); x1 = Console.nextInt(); System.out.println(" Please enter a value for x2. "); x2 = Console.nextInt(); System.out.println(" Please enter a value for y1. ");
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 COMP 2302 taught by Professor Staff during the Spring '11 term at Kennesaw.

Page1 / 2

Ex_5CH_7 - import java.util import java.lang import java.io...

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