Create a Java program that defines a class called ‘Book’ wit…

Create a Java program that defines a class called ‘Book’ with attributes including ‘title’ (string), ‘author’ (string), and ‘year_published’ (integer). Enhance the class functionality by introducing a static integer variable named ‘total_books’ to keep track of the total number of Book objects created. Implement a constructor within the class to accept values for each attribute, create corresponding getter methods, and increment the static variable whenever a new object is instantiated. Additionally, develop a tester class named ‘TestBooks’ that includes a static method called ‘display_book_details’ to display the details of a specific Book object. Within the tester class, instantiate two Book objects and showcase their details using the ‘display_book_details’ method. Furthermore, demonstrate the overall count of Book objects created by utilizing the static method ‘get_total_books’ from the Book class.   Do not forget to add comments.  Your program should run and produce results.    Write your code (both classes) in the below box and be sure to strictly follow the instructions.

Write a program that reads an input text file containing int…

Write a program that reads an input text file containing integer numbers, calculates their sum, and performs the following: If the sum is less than 50, display all odd numbers between 0 and the sum. Sample Input:  input.txt:  4 5 6 1 2 Sample Output:  Sum = 18 Odd numbers between 0 and 18 are: 1 3 5 7 9 11 13 15 17 Your program should compile and run. Add enough comments and make sure your program is correctly indented.