Boolean Function Digital Logic and Computer Design by Ravinder Nath Rajotiya - September 6, 2023September 10, 20230 Boolean function A Boolean function is a Boolean algebraic equation derived generally from the word statement of the given problem or from the truth table. Such a function has two or more input variables. The function will produce a LOW or HIGH output when certain combinations of the input signal (binary value) is applied to the input variables. Two forms of Boolean functions Sum of Product Product of Sum Sum of Product: A sum of product (or SOP) equation is obtained by ORing the product or the minterms Minterm : A Minterm is also called as product term is one that produces a HIGH output when the values of the input variables are ANDed together. It is written for a ‘1’ or HIGH values in
Methods in JAVA JAVA by Ravinder Nath Rajotiya - April 16, 20210 Methods in JAVA methods in JAVA add modularity and allows code reusability at different place or in modules. It is a very easy way of handling the complete bigger task. A method has basically two parts: a. Call to the method with correct type and number of arguments b. Method definitin which may or may not return values. The syntax of a method definition in JAVA is: public static void metodeName(data type arg(s) { local declaration of variable(s); statement(s); } Example-1: calling various methods for integer and string processing. Methods have been properly documented to aid in reading and understanding. package com.example; public class methosJAVA { public static void main(String[] args) { average(20, 35); double average=getAverage(35, 57); System.out.println("In main the average="+average); //System.out.println(); String fulName=fullName("Ram","Shyam" ); System.out.println(fulName); } /** * // this method calculates average but does not return * @param value1