Create a Java program that simulates a simple library book tracking system. The library has a fixed number of books, and the program should allow the librarian to view, update, and search the books. The program must utilize one-dimensional arrays to manage the information. Most of the requirements have been fulfilled. Starter code is given. Fill in what is missing

Example Output:
Welcome to Library Book Tracker!
1. View Catalog
2. Search Book
3. Add Book
4. Exit
Select an option: 1

Book Catalog:
1. Moby Dick
2. The great Gatsby
3. To kill a mockingbird
...
Select an option: 2
Enter book title to search: Moby Dick
Book found at position 1!

Select an option: 5
Goodbye!

```java

import java.util.Scanner;

public class LibraryBookTracker {
private static final int MAX_BOOKS = 10;
private static String[] bookCatalog = new String[MAX_BOOKS];
private static int numBooks = 0;

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);

System.out.println("Welcome to Library Book Tracker!");
int option;

do {
System.out.println("1. View Catalog");
System.out.println("2. Search Book");
System.out.println("3. Add Book");
System.out.println("4. Exit");

System.out.print("Select an option: ");
option = scanner.nextInt();
scanner.nextLine();

switch (option) {
case 1:
viewCatalog();
break;
case 2:
searchBook(scanner);
break;
case 3:
addBook(scanner);
break;
case 4:
System.out.println("Goodbye!");
break;
default:
System.out.println("Invalid option. Please try again.");
}
} while (option != 4);
}

private static void viewCatalog() {
System.out.println("Book Catalog:");
for (int i = 0; i < numBooks; i++) {
System.out.println((i + 1) + ". " + bookCatalog[i]);
}
}

private static void searchBook(Scanner scanner) {
System.out.print("Enter book title to search: ");
String searchTitle = scanner.nextLine();

for (int i = 0; i < numBooks; i++) {
if (bookCatalog[i].equalsIgnoreCase(searchTitle)) {
System.out.println("Book found at position " + (i + 1) + "!");
return;
}
}

System.out.println("Book not found!");
}

private static void addBook(Scanner scanner) {
if (numBooks == MAX_BOOKS) {
System.out.println("The library is full. Cannot add more books.");
return;
}

System.out.print("Enter book title to add: ");
String newBook = scanner.nextLine();

bookCatalog[numBooks] = newBook;
numBooks++;

System.out.println("Book added successfully!");
}
}
```