Question 8
Create a class named old_age_home having following methods/functions:
void senior(): displays the number of senior citizens in the old age home
void attendee():displays how many Male and female attendees are there to take care seniors.
void visitors(): displays if any person has come to visit seniors then the date and time of
visiting
void donation(); displays the name and amount given by a donar if any
Now write a main function and call all the above methods in the main ().
Question 9
i) Write a program to find the radius of a sphere, where the input is given as volume of the
sphere.
[ hint: volume=4/3 pie xr^3]
ii) Write a program to print the sum of factorial of a number n :
Answers
Explanation:
Question 8
Create a class named old_age_home having following methods/functions:
void senior(): displays the number of senior citizens in the old age home
void attendee():displays how many Male and female attendees are there to take care seniors.
void visitors(): displays if any person has come to visit seniors then the date and time of
visiting
void donation(); displays the name and amount given by a donar if any
Now write a main function and call all the above methods in the main ().
Question 9
i) Write a program to find the radius of a sphere, where the input is given as volume of the
sphere.
[ hint: volume=4/3 pie xr^3]
ii) Write a program to print the sum of factorial of a number n :
:-):^)^_^(^^):,-)8-)B-)o:-):-D}:‑););-):-*:-P:-!:-$:‑X:-|:-\:-[:-(:'((TT)=_=>.<(+_+)(*_*)O_o:-O=-O:0*\0/*