Question: 1 . Write a ` Lecturer ` Class that consists of the following attributes : Name, Surname, Age , Course , stuff Number. 2 .

1. Write a `Lecturer` Class that consists of the following attributes : Name, Surname, Age ,Course
,stuff Number.
2. Write a Constructor that initializes all the attributes .
3. Write Get and Set Methods for all the attributes.
4. Write a Method that displays all the information of the lecturer.
5. Write a Main function that tests the functionality of all the Methods above.
6. Write a `AllocateTimeSlot` Method that takes as input the lecturer stuff Number and returns a
randomly allocated timeslot ( time slot range 1
st 8
th
).
7. Write a `AllocateTimeSlot` Method that takes no input and returns a randomly allocated
timeslot ( time slot range 1
st 8
th
).
8. ReWrite the `SetName` and `SetAge` Methods in such a way that you make use of `this` method.
9. Write a Main function that tests the functionality of all the Methods above (starting from 6 to
8)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!