i am trying this exercise and i dont know wot 2 do!
Graphs are usually shown with the X axis as a horizontal and the Y axis as a vertical. As you will only be allowed to use a one-dimensional array in this coursework, the usual X and Y axis will need to be swapped around. Write a program that displays the graph of the following equation Y=2X+5 The program should first ask the user for:1. the X axis starting point 2. the number of steps3. step-sizeIt should then repeatedly calculate the value of Y using the changing value of X. Normally, X increases by the step size for the number of steps specified. The program should display an ‘*’ in each X column to denote the Y value, e.g. if Y = 10, then the 10th element of an 81 element character array should be set to ‘*’ and then the string Graphs are usually shown with the X axis as a horizontal and the Y axis as a vertical. As you will only be allowed to use a one-dimensional array in this coursework, the usual X and Y axis will need to be swapped around.
Write a program that displays the graph of the following equation
Y=2X+5
The program should first ask the user for:
1. the X axis starting point
2. the number of steps
3. step-size
It should then repeatedly calculate the value of Y using the changing value of X. Normally, X increases by the step size for the number of steps specified. The program should display an ‘*’ in each X column to denote the Y value, e.g. if Y = 10, then the 10th element of an 81 element character array should be set to ‘*’ and then the string