You are on page 1of 16

Progressive Education Society’s

Modern College of Engineering, Pune


MCA Department
Data Science Laboratory
**********************************************************************************
Class : SY-MCA Shift : II Roll Number : 52133

Name: kshitija kamble Assignment No : 3 Date of Implementation : 2/10/2021

**********************************************************************************

Assignment No.3

1. VAT has different rate according to the product purchased. Imagine we


have three different kind of products with different VAT applied:

Write a chain to apply the correct VAT rate to the product customer bought
and calculate a price.

Program with Output:-


2. A cloth showroom has announced the following seasonal discounts on
purchase of items. Write a R

program using switch and if statement to compute the net amount paid by a
customer.
3. Write a R program to print the numbers from 1 to 100 and print
"Fizz" for multiples of 3, print "Buzz" for

multiples of 5, and print "FizzBuzz" for multiples of both.

Program with Output:-


4. Write a R program to perform addition and multiplication operation on
matrix using function.

Program with Output:-


5. Write a R functions to determine whether the matrix is symmetric and
skewed?

Program with output:-


6. R program to Find sum of natural numbers without formula

Program with Output:-


7. Write a R Program to find the sum of digits of a number reducing it to one
digit using repeat loop.

Program with Output:-


8. Write a R program to display days of week.

Program with Output:-


9. Write a R program to display numbers from 1 to 5 using repeat loop

Program with Output:-


10. Write a R program to count the number of even numbers in a vector

Program with Output:-

You might also like