Week11Chap7-I

Week11Chap7-I - Arrays and Objects - Lecture IV Janaka...

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

View Full Document Right Arrow Icon
Janaka Balasooriya CSE 110, Arizona State University Arrays and Objects - Lecture IV
Background image of page 1

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

View Full DocumentRight Arrow Icon
Janaka Balasooriya CSE 110, Arizona State University Two Dimensional Arrays - Practice 1. Declare a two dimensional array for a student to store his quiz scores , homework scores , and test scores . There are 4 quizzes, 4 homework assignments, and 4 tests. Lets call the array studentScore. 2. Initialize all the elements to 0.0 using a for loop 3. Initialize all the elements of the array to 0.0 while declaring
Background image of page 2
Janaka Balasooriya CSE 110, Arizona State University Two Dimensional Arrays - Practice 4. Lets assume the content of the first row is exam scores. Write a for loop to read test scores to the first row using a for loop 5. Lets assume the content of the second row is homework scores. Write a for loop to read exam scores to the second row using a for loop 6. Lets assume the content of the third row is quiz scores. Write a for loop to read quiz scores to the third row using a for loop
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/08/2010 for the course CSE 110 taught by Professor Kim during the Spring '08 term at ASU.

Page1 / 9

Week11Chap7-I - Arrays and Objects - Lecture IV Janaka...

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

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