Write a JAVA program to solve the following problem.

Write a JAVA program to solve the following problem. Your program should properly

compile and run. Your code MUST follow the documentation style used in your textbook.

You need to upload into Moodle the following:

The electronic version of your SINGLE source code file after you successfully

compiled and ran it. Please label your file appropriately.

i do the first steps you will find in the file name lab1

code MUST follow the documentation style used in your textbook you find it in lab1Code

find the cost of your paper

Write a function with which you can calculate numerically the integral of a given real function with two limits a and b using the trapezoid rule. Modify fnExample4 to do this. 

Write a function with which you can calculate numerically the integral of a given real function with two limits a and b using the trapezoid rule. Modify fnExample4 to do….

Give the message flow and log entries for the hierarchical 2PC protocol for this scenario. Indicate which log entries need to be immediately forced to the stable log.

Consider the following scenario. A transaction is initiated from a PC to make reservations for a vacation. The initiator communicates directly with a travel agency and a rental car company…..

How many variables will you declare in your program?

Mary Smith, a student, has borrowed $3,000 to help pay her college expenses. After setting up a budget, $85 was the maximum monthly payment she could afford to make on….