task 7 and task 8 and task 9

task 7 - friend functions and class with protected
task 8 - twitter interview
task 9 - division by zero