CSE
Week11Chap7-I

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

• Notes
• 9

This preview shows pages 1–5. Sign up to view the full content.

Janaka Balasooriya CSE 110, Arizona State University Arrays and Objects - Lecture IV

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

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
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

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

Janaka Balasooriya CSE 110, Arizona State University
This is the end of the preview. Sign up to access the rest of the document.
• Fall '08
• Kim
• Subroutine, Phoenix, Arizona, Janaka Balasooriya

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern