Professional Documents
Culture Documents
Lab 4
Lab 4
1
Lab 4
Output:
Task 2:
2
Lab 4
Output:
Task 3:
3
Lab 4
Create a class Employ and add information of 5 employees like name,id,address and print all
information.
Source code:
Output:
4
Lab 4
Task 4:
Print the average of three numbers entered by user by creating a class named 'Average' having
a method to calculate and print the average.
Source code:
Output: