Basic R Programming | R Programming Solved Assignment


Write a R program to take input from the user (name and age) and display the values. Also print the version of R installation.


 Assignment 1: Basic R Programming


1. Write a R program to take input from the user (name and age) and display the values. Also print the version of R installation.

Write a R program to take input from the user (name and age) and display the values. Also print the version of R installation.

Answer :




2. Write a R program to get the details of the objects in memory.

Write a R program to get the details of the objects in memory.

Answer :




SET A:


1. Write a R program to accept dimensions of a cylinder and print the surface area and volume.

Write a R program to accept dimensions of a cylinder and print the surface area and volume.

Answer :


2. Write a R program to accept temperatures in Fahrenheit (F) and print it in Celsius(C) and Kelvin (K).

Write a R program to accept temperatures in Fahrenheit (F) and print it in Celsius(C) and Kelvin (K).

Answer :


3. Write a R program to accept two numbers and print arithmetic and harmonic mean of the two number.

Write a R program to accept two numbers and print arithmetic and harmonic mean of the two number.

Answer :


4. Accept three dimensions length (l), breadth(b) and height(h) of a cuboid and print surface area and volume

Accept three dimensions length (l), breadth(b) and height(h) of a cuboid and print surface area and volume

Answer :



SET B:

1. Accept the x and y coordinates of two points and computes the distance between the two points.

Accept the x and y coordinates of two points and computes the distance between the two points.

Answer :



2. A cashier has currency notes of denomination 1, 5 and 10. Accept the amount to be withdrawn from the user and print the total number of currency notes of each denomination the cashier will have to give.

A cashier has currency notes of denomination 1, 5 and 10. Accept the amount to be withdrawn from the user and print the total number of currency notes of each denomination the cashier will have to give.

Answer :

SET C:


1. Write a R program to create a sequence of numbers from 20 to 50 and find the mean of numbers from 20 to 60 and sum of numbers from 51 to 91.

Write a R program to create a sequence of numbers from 20 to 50 and find the mean of numbers from 20 to 60 and sum of numbers from 51 to 91.

Answer :

Basic R Programming | R Programming Solved Assignment Basic R Programming | R Programming Solved Assignment Reviewed by technical_saurabh on February 22, 2021 Rating: 5

No comments:

Powered by Blogger.