Not quite sure how to do this...
Implement a class SodaCan with functions get_surface_area() and get_volume(). In the constructor, supply the height and radius of the can. Download lab5a.cpp. This skeleton program only contains a driver of class SodaCan, but the class interface and implementation are missing. Your job is to complete this program.
Formulas ( pi=3.1415926, R is radius, H is height):
can surface area = 2piRH +2piR2
can volume = piR2H
Your complete program should display the following results (or approximate values):
using namespace std;
A cylindrical can.
//define interface here:
//implemente the class Can here:
// a driver:
SodaCan can(10, 5); //height is 10, and radius is 5
cout << can.get_volume() << "\n";
cout << can.get_surface_area() << "\n";