Urgent Programming Help Needed

I've started a major in computer science, and I'm having a great deal of trouble in my programming class. I have an assignment that requires me to write a code that will determine if 2 points are on the same circle, and that will also display the center of the circle. I am a beginner, and this seems a little advanced. I'm not even sure how to write a simple code, because we haven't discussed it in detail yet. If anyone could help walk me through it, that would be fantastic. I'm not looking for just an answer to the code, but explanations as to how and why they work. Here is a bit of the assignment description if this helps:

Write a program that will determine if two given points are both on the same circle, with
the center of the circle also being given.
You should create at least two (2) functions for this program:
1) The main() function
2) A function that, given the x- and y-coordinates of two points, will calculate and
return the distance between the two points.
You should use the distance formula:

Note: there is a built-in function named sqrt() that accepts a floating-point
value and returns the square root of the given value.
To gain access to this function, you may include the cmath header file.

Any help is much appreciated. I'm at my wits end with this assignment.
Sure, no problem. Let's see what you've got coded so far.
I don't have anything written for this code so far... I'm not even sure how to write a simple code.
This is a good place to start
Topic archived. No new replies allowed.