Lab03c - test.print(); out.print("Enter a ::...

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

View Full Document Right Arrow Icon
//© A+ Computer Science - www.apluscompsci.com //Name - //Date - //Lab - import java.util.Scanner; import static java.lang.System.*; import static java.lang.Math.*; public class Lab03c { public static void main( String[] args ) { Scanner keyboard = new Scanner(in); out.print("Enter a :: "); int a = keyboard.nextInt(); out.print("Enter b :: "); int b = keyboard.nextInt(); out.print("Enter c :: "); int c = keyboard.nextInt(); Quadratic test = new Quadratic(a,b,c); test.calcRoots();
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: test.print(); out.print("Enter a :: "); a = keyboard.nextInt(); out.print("Enter b :: "); b = keyboard.nextInt(); out.print("Enter c :: "); c = keyboard.nextInt(); test.setEquation(a,b,c); test.calcRoots(); test.print(); out.print("Enter a :: "); a = keyboard.nextInt(); out.print("Enter b :: "); b = keyboard.nextInt(); out.print("Enter c :: "); c = keyboard.nextInt(); test.setEquation(a,b,c); test.calcRoots(); test.print(); } }...
View Full Document

This note was uploaded on 11/11/2011 for the course C++ comp122 taught by Professor N/a during the Spring '07 term at Cy-Fair College.

Ask a homework question - tutors are online