This is a program that enables the user to input the coefficients of a cubic function and draw its graph. The cubic function
takes the form f(x)=ax^{3}+bx^{2}+cx+d. We need to create the cubic function with some modifications and the coordinates in computer screen starts from top left, therefore instead of x we used a certain number to minus x. As we define the width of the graph as 10, so we use 5-x so that the graph starts plotting from the center. In VB, the cubic function takes the following form:

Private Function f(x As Variant)

f = a * (5 - x) ^ 3 + b * (5 - x) ^ 2 + c * (5 - x) + d

End Function

To draw the graph, we use built-in function**PSet**.