Warning: session_start(): open(/var/cpanel/php/sessions/ea-php56/sess_d6c6f8f96ae7ff650ea0c39efe8ebc6d, O_RDWR) failed: No such file or directory (2) in /home/snscourseware/public_html/ct.snscourseware.org/assignment.php on line 2

Warning: session_start(): Failed to read session data: files (path: /var/cpanel/php/sessions/ea-php56) in /home/snscourseware/public_html/ct.snscourseware.org/assignment.php on line 2
Connected successfully
Warning: Undefined variable $hostname in /home/snscourseware/public_html/ct.snscourseware.org/assignment.php on line 18
Resource Link || SNS Courseware
Subject Details
Dept     : BIO
Sem      : 3
Regul    : 2023
Faculty : INDHUJA A
phone  : NIL
E-mail  : indhuja.a.cse@snsct.org
261
Page views
41
Files
6
Videos
5
R.Links

Icon
Assignments

Due Date Is Over
Due Date: 11-09-2024
1.OOPS CONCEPT WITH REAL TIME EXAMPLES 2.HOW
complete al the assignments with example related to real world
Due Date Is Over
Due Date: 28-10-2024
ASSIGNMENT 2
1 Write a Java program that prints the following pattern using loops 2 Create a Java class with overloaded methods to calculate the area of different shapes. Requirements: • Implement methods to calculate the area of: o A rectangle (length and width) o A circle (radius) o A triangle (base and height) • Each method should return the calculated area. 3 Write a Java program that uses an array to store and manage grades for 5 students. Requirements: • Prompt the user to enter the grades for each student. • Calculate and display: o The average grade. o The highest and lowest grades. o A message indicating whether each student passed (>= 50) or failed. 4 Extend the Book class to include constructors. Requirements: • Create a default constructor that initializes the attributes to default values. • Create a parameterized constructor to set the attributes when a Book object is created. • Demonstrate both constructors in the main method. 5 Define a class Student with attributes name and rollNumber. Requirements: • Include methods to set and get these attributes. • Create a method displayInfo() that prints the student’s details. • In the main method, create multiple Student objects and call the displayInfo() method for each. 6 Create a class Rectangle with attributes length and width. Requirements: • Implement a constructor that uses the this reference to set the attributes. • Create a method calculateArea() that calculates the area using the this reference. • In the main method, create a object and display its area.