Lab02d - test.calculateSurfaceArea(); test.print();...

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 - public class Lab02d { public static void main( String[] args ) { Cube test = new Cube(); test.setSide(112); test.calculateSurfaceArea(); test.print(); test.setSide(4); test.calculateSurfaceArea(); test.print(); test.setSide(33);
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.calculateSurfaceArea(); test.print(); test.setSide(50); test.calculateSurfaceArea(); test.print(); test.setSide(5); test.calculateSurfaceArea(); test.print(); test.setSide(19); test.calculateSurfaceArea(); test.print(); //add more test cases } }...
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