Sign in with
Sign up | Sign in
Your question

C++ program to calculate volume of cube,cylinder and cuboid using func

Last response: in Applications
Share
July 18, 2011 2:43:29 PM

c++ program to find the volume of cube,cylinder and cuboid using function overloading
July 18, 2011 6:54:56 PM

You want us to write a program for you...?
m
0
l
a b L Programming
July 18, 2011 7:37:57 PM

Worse yet, he wants us to do his homework for him. Are there no honest people in the world anymore?
m
0
l
Related resources
Can't find your answer ? Ask !
a b L Programming
July 19, 2011 3:29:09 AM

We already did our homework; so can you!
m
0
l
July 19, 2011 3:48:07 AM

If he needs help, help can be provided, particularly in guiding rather than the actual coding itself. Although I don't know what function overloading is and I only program in C (not C++ or C#), I can at least help get started, to some extent. Programming, at its deepest level, is otherwise nothing more than variable manipulation. You'll need to know the formulas for calculating the volume of a cube, cylinder, and cuboid in order to do this task. The cube is the easiest one - I'd recommend starting there. If you can get that to work, then move on to the cuboid. Once that wrks, do the cylinder as well.
m
0
l
a b L Programming
July 19, 2011 8:57:09 AM

I'm all for helping people by providing guidance, but I have no interest in helping someone who baldly asks for their homework to be done for them. There are quite enough people in the IT industry who don't know what they are doing as it is; let's not help more people get bogus qualifications.

At least demonstrate some attempt to solve a problem before just asking others to do it for you. In reality this is a very simple question (including overloading functions) that can be solved by reference to a book on C++. IMO these forums are not a source of one-to-one tuition; if a student is really having that much difficulty with a simple exercise they should be discussing the matter with their tutor.

I'd disagree about programming being merely a question of variable manipulation; much more important (IMO) is the selection of the appropriate way to represent and structure data.
m
0
l
July 19, 2011 6:10:22 PM

Data in a way, is a group of variables, though I agree with your description more than mine. Programming also involves a lot of logic too - bad logic can lead to big, stubborn bugs.

A Google search is also a handy way to find out something. Wikipedia helps too, though in other, less direct ways (depending on what you're after).
m
0
l
!