Computer Science Canada Help with a circumference/area program |
Author: | molly22 [ Mon May 15, 2006 5:27 pm ] |
Post subject: | Help with a circumference/area program |
Hi, I need to write a program that reads in the radius of a circle and then outputs either circumference of the circle, area of the circle, or diameter of the circle, depending on what the user requests. We are supposed to use functions to compute each of these three values. ![]() ![]() ![]() ![]() |
Author: | Delos [ Mon May 15, 2006 6:04 pm ] |
Post subject: | |
Hello and welcome. We'd be pleased to help you! Now, to start things off, let's see how much you've done - post the code that is giving you problems. Since I'm quite sure that you've already started on this and have given it ample thought and reflection. Once we have seen how far along your own coding and understanding is, we'll be able to critique it and provide you with some helpful hints. |
Author: | Cervantes [ Mon May 15, 2006 6:05 pm ] |
Post subject: | |
This is really simple. Do you know how to use a function? Know that we don't do homework for people. Not only is it morally wrong (and a waste of our time ![]() You've got lots of resources. Start by looking at the Turing Walkthrough, which contains links to a great many tutorials on this site. Sift through the Turing Walkthrough and you'll find what you're looking for quickly: a tutorial on functions. [mod:bf84eb8297="Delos"]Ha! Beat you to it. Your skills are truely lacking these days...[/mod:bf84eb8297] |