structure programming

profileshouqaljumah

Assignment 1

Write program which does the following:

(use an ‘fprintf’ statements where applicable)

1)   Display the name of the programmer.

2)   Display the purpose of the program.

3)   Get the user input for the variable/s in the equation given below. (note ‘x’ is a vector)

4)   Plot the graph of ‘y vs x’ as a dashed line in red, mark the points on the plot i.e. the x and y intercepts with a cross (x), label the axes and place a suitable title to the graph.

Equation to solve is:

y = 2x^3 + 5*x^2 + 5*x - 12

    • 11 years ago
    • 5
    Answer(0)
    Bids(0)