Home / Expert Answers / Computer Science / in-java-q1-create-a-single-console-program-in-java-using-intellij-where-you-will-be-developing-an-pa376

(Solved): in java Q1) Create a single Console program in JAVA using INTELLIJ where you will be developing an ...



Q1) Create a single Console program in JAVA using INTELLIJ where you will be developing an implementation for Searching \& So

in java

Q1) Create a single Console program in JAVA using INTELLIJ where you will be developing an implementation for Searching \& Sorting Algorithms using predefined Array Data Structure in Main Class of Java Program (5 Marks) - Exception Handling should be implemented where needed! - Include Runtime Complexity also for each method which you are developing as a Comment! - You should not be using any predefined function for developing following functions! - Helper functions can be developed as needed! - Menu in main function of Main Class should be implemented where user will choose by input numbers from 1 to 5 for executing the desired required functionality from implemented functions. (For e.g : if user press " 1 " then (1) function should execute, if user press " 2 " then (2) function should execute and so on...) - Comments should be included with every function to define your code logic in your own words. Functionalities Required: 1) Create a function in Main Class for Searching of INTEGER data from Array by taking input from user. Searching should be done by using approach of Iterative Linear Search. 2) Create a function in Main Class for Searching of INTEGER data from Array by taking input from user. Searching should be done by using approach of Iterative Binary Search. 3) Create a function in Main Class for Searching of INTEGER data from Array by taking input from user. Searching should be done by using approach of Recursive Binary Search. 4) Create a function in Main Class for Sorting of INTEGER data from Array by taking input from user of Array which user likes to sort. Sorting should be done by using approach of Recursive Bubble Sort in Descending Order. 5) Create a function in Main Class for Sorting of INTEGER data from Array by taking input from user of Array which user likes to sort. Sorting should be done by using approach of Iterative Bubble Sort


We have an Answer from Expert

View Expert Answer

Expert Answer


CODE: import java.util.*; public class Main{ public static void linearSearch(){ int n; // size of the array Scanner sc = new Scanner(System.in); // scanner for input System.out.println("Enter the size of the array: ");
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe