Skip to main content

Posts

Showing posts from March, 2016

Celsius to Fahrenheit

Celsius to Fahrenheit Conversion: History: Celsius: Although initially defined by the freezing point of water (and later the melting point of ice), the Celsius scale is now officially a derived scale, defined in relation to the Kelvin temperature scale. Zero on the Celsius scale (0 °C) is now defined as the equivalent to 273.15 K, with a temperature difference of 1 deg C equivalent to a difference of 1 K, meaning the unit size in each scale is the same. This means that 100 °C, previously defined as the boiling point of water, is now defined as the equivalent to 373.15 K. The Celsius scale is an interval system but not a ratio system, meaning it follows a relative scale but not an absolute scale. This can be seen because the temperature interval between 20 °C and 30 °C is the same as between 30 °C and 40 °C, but 40 °C does not have twice the air heat energy of 20 °C. A temperature difference of 1 deg C is the equivalent of a temperature difference 1.8°F.   Fahrenheit:

factorial program in java

Factorial: In  mathematics , the  factorial  of a  non-negative integer   n , denoted by  n !, is the  product  of all positive  integers  less than or equal to  n . For example, Program: package mobbiinfo.FactorialOfGivenNumber; import java.util.Scanner; public class FactorialOfGivenNumber {        public static void main(String[] args ) {               long sum =1, result =0;               System. out .println( "Enter number" );               Scanner sc = new Scanner(System. in );                      int n = sc .nextInt();               for ( int i = n ; i >0; i --)        {            result = sum * i ;            sum = result ;        } System. out .println( "Factorial of given number is " + result );        } } OutPUT:

Samsung Galaxy J5 - Full phone specifications

Samsung Galaxy j5-full phone specification: Highlights: Samsung Galaxy J5 is a Android Smart Phone Released by Samsung Electronics,It was released by 07/2015, it has an Advanced 64 bit class SYSTEM ON CHIP  (SoC) backed by 1.5 GB RAM, The Galaxy J5  features a   thirteen  Megapixel rear camera with LED  flash, f/1.9 aperture, auto-focus and  features a  front facing  five  Megapixel 85-degree(85°)  optical lens  camera,  which may  extend up to 120-degree(120°). The camera  is provided  with LED  flash. The phone is  steam-powered  with Qualcomm's  flower  410 chipset  which incorporates   one .2  rate  processor, Adreno 306 GPU and  one .5GB RAM,with 8GB of internal storage  associate d an ample battery of 2600 mAh.The Samsung Galaxy J5 is fitted with a  five -inch HD Super AMOLED  show  and  additionally  includes a  thirteen  MP rear camera and 5 MP front camera.[1] The South Korean variant adds support for T-DMB &  sensible  DMB Full Phone Specification :

Java Program for mirror image of Right AngleTriangle

Write a Java Program  to print mirror image of Right Angle Triangle      *     **    ***   ****  ***** package mobbiinfo. MirrorImageOfRightAngleTriangle ; public class  MirrorImageOfRightAngleTriangle  {        public static void main(String[] args ) {                 for ( int i =5; i >=1; i --){                        for ( int j =1; j <=5; j ++){                              if (( i + j )>5){                             System. out .print( " " );                             }                           }                        for ( int k =1; k <=5; k ++){                              if (( i + k )<=6){                       System. out .print( "*" );                             }                       }                                                                   System. out .println();                }        } } out put:      *   

Java Program for FizzBizz , Fizz Bizz Test

FizzBizz: if the number is divisible by 3,5 called as FizzBizz Fizz:  If the number is divisible by 3 called as Fizz Bizz: If the  number is divisible by 5 called as Bizz Write a program for FizzBizz  package mobbiinfo.FizzBizz; import java.util.Scanner; public class FizzBizz {        public static void main(String[] args ) {                             Scanner sc = new Scanner(System. in );               System. out .println( "Enter first number" );                      int num1 =Integer. parseInt ( sc .next());               System. out .println( "Enter Second number" );                             int num2 =Integer. parseInt ( sc .next());                                           boolean fizzbiz z = true ;               if ( num1 %3==0 && num2 %5==0){                      System. out .println( "FizzBizz" );               }               if ( num1 %3!=0 && num2 %5!=0){                      System. out .println