Posts

Showing posts from November, 2020

R Language.

Image
R language. Origin: R is an programming language used for statistical computing. It is developed by Ross Ihaka and Robert  G entleman . It is named as R because of the two developers name starts with R. It's initial release was 1995. It is implemented from S language.  Purpose of R: R language is used for statistical and graphical techniques. It is used in advanced analytics, predictive analysis, data mining, data science and so on. Advantages: Open source environment . Help to analyse the data in graphical representation. Highly used for statistical computing. When you see the data in graphical manner you can able to explore more and more about the particular data. Easy to use packages.  Highly used in data science purposes. Basic syntax and programs for R Language. 1.Basic arithmetic operation. program: Addition a=1 b=2 c= a + b print(c) output: 3 Subtraction: a=10 b=5 c= a - b print(c) Output: 5 Multiplication: a=7 b=11 c= a * b print(c) Output: 77 Division: a= 10 b= 5 c= 2 Bas

Java lab programs

Image
Java basic programs 1.Write a java program to add two numbers public class Add {      public static void main(String arg[])           int num1=5, num2= 3, sum;           sum =num1+num2;      System.out.println("The addition of two numbers is:" +sum);      } } output: The addition of two numbers is 8 2.Write a java program to find the number even or odd. import java.util.Scanner; class Evenodd {     public static void main(string args[])        {          int =num;          system.outprintln("Enter the number:" );         scanner input = new scanner (system.in)         num= input.nextInt();          if (num %2 =0)          system.out.println("The number is even:");         else          system.out.println("The number is odd:");     } } output: Enter the number: 10 The number is even Enter the number:9 The number is odd 3.Write a java program to perform all arithmetic operations. import java.util.scanner; public class Arith {     public static void