Introduction You may have draw graphs of a specific type of mathematical function, for example a quadratic function of the form y=ax2+bx+c. In this assignment you will be required to produce software that would enable the user to find the solutions to an equation of the form; A x3+bx2+cx+d=0 You will be given two specific equations to system test your software 1. The user be prompted to enter the values of a, b, c and d. In addition, the user will be prompted for the range of the x variable over which they want the graph of the function y=ax3+bx2+cx+d to be displayed. The values of x where the graph crosses the x-axis are the solutions to the equation: Ax3+bx2+cx+d=0 The limitation of this way of finding the solutions to the equation depends on the closeness resolution of the graph and the interval of x that has been used to calculate the y values. However, your software should present user with approximate values(s) of the solutions. Of course, the user may have chosen a range of x for the graph that does not show the graph crossing or touching the x-axis, in which case the software must allow the user to input different ranges of x. There are values of a, b, c and d for which there are no real solutions to the equation but you are not required to worry about this and the test equations you will be given each have three solutions. Once the user is convinced that there are solutions in the range being considered then there will be the option to refine the solutions. 2. You should encapsulate the software that refines the approximate solution(s) in a class named clsRefine. The user will be prompted to state to what accuracy the solutions are required. The refining software will be compute values around the approximate solutions and by getting closer to the point where the values of y change sign a more accurate solution would be found. DESIGN AND IMPLEMENTATION To draw the graph you will need to use the methods provided by the Swing Applet Class. The actual curve of the function will be constructed by drawing straight lines btw adjacent calculated points of the function. (it would be sensible to place the values of the function to be plotted in an array.) the smaller the interval btwn adjacent x values, then the higher will be the resolution of the display. For the purposes of this assignment it would be appropriate to display the output in the appletviewer. Thanks Julius
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en -~----------~----~----~----~------~----~------~--~---