Quote:
i have to make project of linear variable equation solver.
Just as you said,
you have to make a project, not us.
Quote:
it is really hard i m getting getting what to do.
It's very basic problem, you will mostly never find something simpler than that in professional life.
A fail at doing this HomeWork will help your teachers to spot your weaknesses to get remedial actions.
And frankly, if we give you the answer, how will you do the next assignments which will be harder and harder ?
For this problem: At least show that you know the maths.
- Show that you know how to deduce the function from 2 points
- Show that you know how to find the 0 on the curve
- Show that you know how to compute any point on the curve.
Advice:
- reread your courses
- read C documentation. the book from
Kernigan & Ritchie was a reference for years, even if outdated, the basics of the language are still the same.
- follow tutos.
For future:
You should learn to use the debugger as soon as possible. Rather than guessing what your code is doing, It is time to see your code executing and ensuring that it does what you expect.
The debugger allow you to follow the execution line by line, inspect variables and you will see that there is a point where it stop doing what you expect.
Debugger - Wikipedia, the free encyclopedia[
^]
Mastering Debugging in Visual Studio 2010 - A Beginner's Guide[
^]
http://docs.oracle.com/javase/7/docs/technotes/tools/windows/jdb.html[
^]
https://www.jetbrains.com/idea/help/debugging-your-first-java-application.html[
^]