0% found this document useful (0 votes)
9 views1 page

R Programming Assignments Overview

The document lists 50 assignments for writing R programs covering various practical applications. These include calculations for age, salary, area, temperature conversion, and financial assessments, among others. Each assignment aims to enhance programming skills and apply R in real-world scenarios.

Uploaded by

ritamnandy2006
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

R Programming Assignments Overview

The document lists 50 assignments for writing R programs covering various practical applications. These include calculations for age, salary, area, temperature conversion, and financial assessments, among others. Each assignment aims to enhance programming skills and apply R in real-world scenarios.

Uploaded by

ritamnandy2006
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Sl. No.

Assignment
1 Write an R program to store your age in a variable and print whether you are eligible to vote (18+).
2 Write an R program to calculate the area of a rectangular garden with given length and breadth.
3 Write an R program to compute the monthly salary from daily wage and number of working days.
4 Write an R program to calculate the total grocery bill with item prices and quantities.
5 Write an R program to convert temperature from Celsius to Fahrenheit and vice versa.
6 Write an R program to store your height and weight, and calculate BMI.
7 Write an R program to check if a person’s temperature is in the normal range (97°F to 99°F).
8 Write an R program to calculate the average marks of a student in 5 subjects and print grade.
9 Write an R program to check if a passenger is allowed free check-in luggage (<=15 kg).
10 Write an R program to find whether a given number of hours slept qualifies as "well-rested" (>=7).
11 Write an R program to calculate the cost of fuel required for a road trip based on distance and mileage.
12 Write an R program to check if a bank account balance is sufficient to make a withdrawal.
13 Write an R program to compare two job offers based on salary and print the better one.
14 Write an R program to track daily step count and check if fitness goal (10000 steps) was achieved.
15 Write an R program to print the discount amount on shopping if bill exceeds ₹5000.
16 Write an R program to calculate the interest earned in a savings account using simple interest.
17 Write an R program to calculate mobile bill with base cost and additional charges for data overuse.
18 Write an R program to convert kilometers to miles.
19 Write an R program to find if a person qualifies for senior citizen benefits (age >= 60).
20 Write an R program to calculate the remaining balance after paying rent and groceries from a salary.
21 Write an R program to store house rent, groceries, travel cost, and print monthly expenses.
22 Write an R program to calculate the cost of 3 books including 18% GST.
23 Write an R program to compute the total marks and check if the student passed (>= 40 in each subject).
24 Write an R program to decide if an online order qualifies for free delivery (order > ₹499).
25 Write an R program to store your name, age, and occupation as different variables and print them.
26 Write an R program to calculate the average electricity bill over 6 months.
27 Write an R program to check if a given year is a leap year.
28 Write an R program to store and compare two blood pressure readings.
29 Write an R program to calculate total calories consumed from a meal.
30 Write an R program to compare travel times of two routes and choose the faster one.
31 Write an R program to determine if a student is eligible for a scholarship based on score (> 90).
32 Write an R program to calculate EMI for a loan using simple formula.
33 Write an R program to store and display train departure and arrival times.
34 Write an R program to check if a product is within warranty (less than 1 year from purchase date).
35 Write an R program to store and print your mobile number, email ID, and pin code.
36 Write an R program to check if today's temperature is higher than yesterday’s.
37 Write an R program to verify if two passwords entered by a user match.
38 Write an R program to use help() to learn about the summary() function and summarize a dataset.
39 Write an R program to create a comment-based header in your script showing author, date, and purpose.
40 Write an R program to use comments to document steps of a savings calculator program.
41 Write an R program to use args() to explore the arguments of the mean() function.
42 Write an R program to use example() to see examples for boxplot() function.
43 Write an R program to compare two cities' average rainfall and print which is wetter.
44 Write an R program to compute the average fuel consumption over 5 days of commuting.
45 Write an R program to check if a person’s weight is in a healthy range based on BMI.
46 Write an R program to compare two mobile plans and recommend the cheaper one for same usage.
47 Write an R program to check if you are eligible for senior citizen health insurance (age >= 60).
48 Write an R program to calculate marks percentage and determine grade: A, B, C, D, F.
49 Write an R program to evaluate an expression: (monthly_salary - expenses) * 12 and interpret the result.
50 Write an R program to use all arithmetic, relational, and logical operators in a "budget check" program: e.g., is expense under limit and savings positive?

You might also like