Q1. Write a Java program to do sequential search to find element 55 in array 10,20,35,45,55,65,75,85.                                                                                                                                                                    Q2.Write a Java...

60.1K

Verified Solution

Question

Programming

Q1. Write a Java program to dosequential search to find element55 in array10,20,35,45,55,65,75,85.

                                                                                                                                                                  

Q2.Write a Java program to find element 54 inarray 45,41,65,53,76,90 using Binary Search. (Hint: Binarysearch is applied to sorted array elements)

Q4.   Writea java program to create array list subject

       -add English,Maths, Science to the list

       -add Computers at index 2

       - displayfirst occurrence index of Maths

       -traverse the list using for eachloop.

              

Q5. Write a java program to create anArrayList of user-defined class forobjects(Employee): for id,name,age. The employeedata are as follows for creating class objects.

1101    Aamna 25

1111    Amjad   30

Answer & Explanation Solved by verified expert
4.3 Ratings (877 Votes)
public class SeqSearch public static void mainString args int arr    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students