Absolute C++ Instructors Manual

Write a program that inputs the weight (in pounds) and radius (in feet) of a sphere and outputs whether the sphere will sink or float in water. Use ( = 62.4 lb/ft3 as the specific weight of water. The volume of a sphere is computed by (4/3)(r3. #include using namespace std; int main() {const double SPECIFIC_WEIGHT = 62.4; ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download