CS1113_Homework 7 # 2

CS1113_Homework 7 # 2 - { for(int x=0 { sumDD = sumDD +...

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

View Full Document Right Arrow Icon
Sheet1 Page 1 // Matt Hergenrether // Section 10 // CS 1113 // April 15, 2008 // Homework 7 # 2 // Deals with an array import java.util.* public class Array { public static void main(String[] args) { Scanner scan = new Scanner(System.in) // Declare named constants //int n = 7 // double sumDD = 0 //double[] dD = new double[n] if(n <= dD.length)
Background image of page 1

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

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

Unformatted text preview: { for(int x=0 { sumDD = sumDD + dD[iA] } } else { System.out.println(&quot;ERROR: n is not less than or equal to the length of the array&quot;) System.exit(0) } } // End of Main } //End of class Sheet1 Page 2 // util contains the Scanner class (used for testing) (used for testing) (used for testing) x &lt;= n-1 x++)...
View Full Document

This note was uploaded on 09/28/2011 for the course CS 1113 taught by Professor Chandler during the Fall '08 term at Oklahoma State.

Page1 / 2

CS1113_Homework 7 # 2 - { for(int x=0 { sumDD = sumDD +...

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