Posting your homework isn't going to get you help. You need to specify what you don't understand, and if you want help with a solution, post what you've already tried so we don't assume you're mooching off of us.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
>Look i am not mooching off you or anyone.
Oddly enough, everyone says that. But that's not the point.
>Like I said, I asked my teacher for help several times and she is not helping at all.
Maybe you asked a vague question that she can't answer, just like you did here. The only way to answer your question is to walk you through the solution. However, flowcharts are difficult to work with in a text-only forum, and since this is your homework, walking you through the solution is hardly conducive to your education.
What you need to do is ask a specific question. If you're clever, you can chain specific questions together and get complete help for your problem, but until you ask a question that we can answer, we simply cannot help you.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401