Create a package by name logicgate which consist of classes for AND, OR, NOT gate, and all classes has method with signature int doOperation(arg_list), import this package in to java source file and simulate the behavior of all gates.
Define a package named temperature and create a class named Conversion that has a method which converts the temperature from Fahrenheit to Celsius. Define a package named mypack and create a class that has method which calls methods of Conversion class of temperature package.