Write a order2.java program, in its main method, create two order instances.

Task 1: create a java program to ask user for two inputs, a person’s name and a fruit name. Then print out the message “welcome to Java cafe. An order of fruit for person is placed”. For example, user input Jessica and Apple, the output message should read “welcome to Java cafe. An order of Apple for Jessica is placed”. Save this Java program as Order1.java.
Task 2: In Order1.java program, define a printOrder() function which takes two input parameters unit price and units, then calculates and prints the total price of an order. For example, if the unit price is $1.99 and there are 2 units, then the total cost is printed as $3.98. In the main() method, call printOrder() function, get two user input values for unit price and number of units, then use these input values to call printOrder() method.
A sample execution output from the Order1.java after completing Task 1 and Task 2 is:
Please enter customer name: Jassica
Please enter type of fruit: Apple
welcome to Java cafe. An order of Apple for Jessica is placed
Please enter the unit price: 1.99
Please enter number of unit: 2
The total cost of your order is $3.98
Task 3: Create a Order class. There are 3 attributes in the class: merchandise name; unit price, and number of units. There are two instance methods in the class: totalCost() method calculates and returns the total cost which is unit price * units; promotion() method prints out a “coupon” message which says “save $1 for your next purchase!”.
Write a Order2.java program, in its main method, create two Order instances. The first Order instance is created with attribute values Apple, 1.99, and 2 units. For this instance, print out the total cost of order; The second Order instance is created with attribute values Tesla, 19.99, and 3 units. For this instance, call promotion() method to print out the “coupon” message.
Submit Order1.java, Order2.java, and Order.java files.