Programs to try using lists in R - Assignment 6

 

1. Student Grade Card System

Problem Statement

Create a list to store the details of a student including:

  • Roll Number
  • Name
  • Marks in three subjects (stored as a vector)
  • Attendance Percentage

Perform the following operations:

  1. Display all student details.
  2. Calculate the total marks.
  3. Calculate the average marks.
  4. Determine whether the student has passed ( mark >=40 , max marks=100)

2. Shopping Cart Management System

Problem Statement

Create a list containing:

  • Customer Name
  • Product Names (vector)
  • Product Prices (vector)
  • Quantity Purchased (vector)

Perform the following operations:

  1. Display the products purchased.
  2. Calculate the amount for each product.
  3. Calculate the total bill.
  4. Find the most expensive item.

3. Employee Payroll System

Problem Statement

Create a list storing:

  • Employee ID
  • Employee Name
  • Basic Salary
  • Allowances
  • Deductions

Calculate:

  1. Gross Salary
  2. Net Salary
  3. Annual Salary

Display all details.


4. Cricket Team Statistics

Problem Statement

Create a list containing:

  • Team Name
  • Player Names (vector)
  • Runs scored by each player (vector)

Perform the following operations:

  1. Find the total team score.
  2. Find the highest scorer.
  3. Find the average runs.
  4. Display players who scored more than 50 runs.

5. Library Management System

Problem Statement

Create a nested list containing details of three books.

Each book should contain:

  • Title
  • Author
  • Price
  • Availability Status

Perform the following operations:

  1. Display details of all books.
  2. Find the most expensive book.
  3. Display only available books.
  4. Calculate the average price of books.

Comments

Popular posts from this blog

Statistical Methods Lab ( R Language) PCCBL308 Semester 3 KTU BTech CB and CU 2024 Scheme - Dr Binu V P

Programs in R - using control statements - Assignment 2

Basic R Programs to Try - Assignment 1