Link to the Book - Essentials of Computer Applications
https://www.amazon.in/Essentials-Comp...
Link to Lesson 14 - Input in Java
• Lesson 14 Input in Java using Scanner...
Link to Lesson 34 - Pass by Value, Pass by Reference
• Lesson 34 User-defined Methods - Part...
Practice Exercise 1 – reading arrays as parameters
1. Read an array of double data type with eight elements, store the array and display.
2. Read marks of a student in five subjects, display the sum of the marks in the same method.
3. Read five integers in an array and display 1st, 3rd, and 5th elements (odd positions, but even elements)
Practice Exercise 2 Input using Scanner class
1. Read an array to store the marks of 4 students and display the marks.
2. Read an array to store the marks in eight subjects from user, and display the average marks.
3. Write a program to read N from user and store all the natural numbers from N to 1 in an integer array.
4. Write a program to read five integers and display 2nd and 4th elements (even positions).
5. Write a program to read five characters in one method and display in another method.
6. Read five integers in an array and display 1st, 3rd and 5th elements (odd positions).