I have got a project in my C++ programming course to be completed within coming week. In the project I have to draw a graph in an X-Y plane coordinate plane where Y represents vertical axis and X represents horizontal axis. The graph is between variables x and y, where x and y are two arrays. These two arrays are formed by generating random numbers.
The C++ programming taught in my University is not CLR Console application type but it is a windows forms application type i.e. it is visual C++ express edition 2005 in dot NET Environment. Here first an interface (or a form) is created with different text boxes and buttons with the help of toolbox and properties window and codes are written in different event handlers.
This is an extra credit project and is very important to me. If I completed this project, I will get ‘B’ grade otherwise I will just get ‘C’ grade. If I get just ‘C’, my overall GPA becomes less than 3 and it will be difficult to get admission in higher level.
I have started this project by creating interface and writing some codes. When I run the program, I get a form with a button on it. When I click on btnStart, I will get a white screen and two coordinate’s axes X and Y. These two axes are also labeled as 1, 2, 3 etc. Now I don’t know how to generate random numbers for two arrays x and y such that I will have a graph between those arrays on the screen, when the program is run.
I will be so grateful if anyone assists me by giving necessary codes for the remaining part of my project.