Problems to do on your own.

Here are three simple problems very similar to what we've done already. Take a crack at them on your own. I will not provide the source code for them, but they should be simple enough to do without help.

If you still are having problems getting them to work, try going through the tutorials again, do the problems in the tutorials again, and try these again.

If all else fails, email me or the NPC Mailing List for additional assistance, but, as I said, you shouldn't need it here.

Problem:

The equation for the volume of a box is V = L * W * H , where V is the volume, L is the length of the box, W is width, and H is height. Write a program which calculates and prints the volume of a box with length 8 feet, width 3 feet, and height 4 feet. (Optional, use interaction to obtain the inputs for the dimensions from the user).

Problem:

The equation for the circumference of a circle is C= 2 * PI * r , where C is circumference and r is radius. Write an interactive program which prompts the user to enter the radius, calculates and displays the circumference.

Problem:

The equation for the volume of a right fractoid is V = ( 1 / 7 ) * PI * w * r * r , where r is the radius and w is the width. Write an interactive program that prompts the user and gets values for the radius and width (as integers), calculates the volume, and displays the result (as a float).

Next stop, the Basics.