Write a C++ program that asks the user to enter the length, width,
and depth of a swimming pool using getValues( ). calculate the
cubic volume using calcCubic( ). Print the result using
printCubic( ).

Hi, welcome. What code do you have so far? You should read this.

do one thing
create a class cube wid 3 variables length, width,depth n 3 functions getvalue, calcubic, printcube
get the values of the varialbles in getvalue
n in calcubic take a variable x n store length*width*depth in it
print value of x in print cube

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.