{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CS1113_Homework 7 # 2

CS1113_Homework 7 # 2 - for(int x=0 sumDD = sumDD dD[iA...

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 Document Right 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("ERROR: n is not less than or equal to the length of the array") 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 <= n-1 x++)...
View Full Document

{[ snackBarMessage ]}

Page1 / 2

CS1113_Homework 7 # 2 - for(int x=0 sumDD = sumDD dD[iA...

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

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