Data_Structures_Assignment
Data_Structures_Assignment
Final Dated:
Weight of Marks:
Student Name:
Student ID:
Score:
Question 1:
Construct a Java Code that finds a given number from an array. The elements in the array
would be entered by the user.
Solution:
import java.util.Scanner;
if (!found) {
System.out.println("Number " + target + " not found in the array.");
}
scanner.close();
}
}
Question 2:
Construct a Java Code that finds minimum and maximum number from an array and display
numbers and its memory address.
Solution:
import java.util.Scanner;
scanner.close();
}
}