Purchase Solution

C program for computing and printing the area and volume

Not what you're looking for?

Ask Custom Question

Write a program that computes and prints the area and volume of a sphere given its radius.

(write the program in C, not C++ and create a simple program (this is an introductory exercise in the textbook)- I want to compare it to the program I came up with)

Use extensive comments so that I can fully understand what your code is doing.

Attachments
Purchase this Solution

Solution Summary

The expert writes a program that computes and prints the area and volume of a sphere given its radius.

Solution Preview

// geom.cpp : Defines the entry point for the console application.
//
#include ...

Purchase this Solution


Free BrainMass Quizzes
Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Basic Networking Questions

This quiz consists of some basic networking questions.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.