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:
- Display all student details.
- Calculate the total marks.
- Calculate the average marks.
- 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:
- Display the products purchased.
- Calculate the amount for each product.
- Calculate the total bill.
- Find the most expensive item.
3. Employee Payroll System
Problem Statement
Create a list storing:
- Employee ID
- Employee Name
- Basic Salary
- Allowances
- Deductions
Calculate:
- Gross Salary
- Net Salary
- 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:
- Find the total team score.
- Find the highest scorer.
- Find the average runs.
- 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:
- Display details of all books.
- Find the most expensive book.
- Display only available books.
- Calculate the average price of books.
Comments
Post a Comment