Docsity

Classes-Learning Java Language- Lab Assignment, Exercises of Java Programming

Toggle sidebar
bg1
Object oriented Programming
Lab task 1
Make a class Student with name, department, and degree as attributes.
Provide following functionalities:
1. Student readData (Student std) that reads a student.
2. Student printData (Student std) that displays a student.
Provide a main function and create an array of students named class [50] of class student. Read
the data of all students and display it on screen.
Student
Name
Department
degree
readData(Student std)
printData (Student std)
Make two subsists :
1. OOPlabsec1[25];
2. OOPlabsec2[25];
Take attendance of all students of both sections by adding a Boolean array of size 32
attendance [32];
Docsity.com

Partial preview of the text

Download Classes-Learning Java Language- Lab Assignment and more Exercises Java Programming in PDF only on Docsity!

Object oriented Programming

Lab task 1 Make a class Student with name, department, and degree as attributes. Provide following functionalities:

  1. Student readData (Student std) that reads a student.
  2. Student printData (Student std) that displays a student. Provide a main function and create an array of students named class [50] of class student. Read the data of all students and display it on screen. Student Name Department degree readData(Student std) printData (Student std) Make two subsists : 1. OOPlabsec1[25]; 2. OOPlabsec2[25]; Take attendance of all students of both sections by adding a Boolean array of size 32 attendance [32];

Docsity.com