Click here to Skip to main content
14,733,075 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello guys! I have to do a project for my university! This is the report :
I should use the quickhull algorithm in order to find the shortest path from start point to the treasure.Between start point and treasure there are bombs
You can imagine an island with a treasure and bombs.
We can only follow the path around the bombs and not among them.I have written the algorithm and now i want to read from a file the coordinates of the start point, the treasure and the bombs. In the output i should show something like that:
The shortest distance is 122.1687
The shortest path is: (8.0,23.0)-->(56.0,23.0)-->(130.0,28.8).
Can you help me how can manage this??
Please help me I am a beginner and I really need your help!!

What I have tried:

I am thinking of reading the coordinates from the file but i don't know how to make the connection with my algorithm
Posted
Updated 29-Apr-20 6:41am
v4

We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900