1. Design a class named Loan that holds an account number, name of account holder, amount borrowed, term, and interest rate. Include methods to set values for each data field and a method that prints all the loan information. Create the class diagram and write the pseudo code that defines the class.
2. Complete the following tasks:?Note: You should choose one object oriented programming language (C++, Java, C#, etc) to complete this assignment. You need to write a report which includes the source code and any notes. Also submit the source code along with other files if needed to run the program.
a. Design a class named Book that holds a stock number, author, title, price, and number of pages for a book. Include methods to set and get the values for each data field. Also include a displayInfo egg method that displays each of the Book's data fields with explanation.
b. Design a class named TextBook that is a child class of Book. Include a new data field for the grade level of the book. Create a displayTextBookInfo () method so that you can accommodate the new grade-level field.
Design an application that instantiates an object of each type and demonstrates all the methods.