Tutorial 9.docx - Lecturer Subject Code CHIT SU MON Java...

This preview shows page 1 out of 1 page.

Lecturer : CHIT SU MON Subject : Java Programming 1 Code : CC 108 Tutorial 9 Write a Java statement(s) for following questions. (i) Create an array to hold 10 double values. (ii) Assign the value 5.5 to the last element in the array. (iii) Display the sum of the first TWO (2) elements of the array and store inside third index. (iv) Write a loop that computes the sum of all elements in the array. (v) Randomly generate an index and display the element of this index in the array. (vi)
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Fall '19
  • Addition, Lecturer, The Elements

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes