Instructions
Use the MFC App Wizard to create this program. Add variables and message handlers as appropriate. The program should graph the sine and the cosine function. The x axis starts at 0 and end at 2pi radians. The y axis will run from 1 to -1.
Controls required:
1 static label called ‘Samples’
1 edit control
2 buttons (Sine, Cosine)
The Samples input describeds the number of lines to draw the function. A small number of samples will result in a jagged-looking curve. A large number of samples will result in a smooth-looking [login to view URL] user enters the number of samples, for example 8 and clicks on Sine command button. The program will draw 8 lines. The first line will start at x,y = (0,0) and ent at x,y = (pi/4, .707)
The user can enter any number between 1 and 100 in the edit control. The program must dynamically construct and scale the graph for the corresponding number of samples.
Use the built-in math.h library.
Layout as per attached screenshot.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
Win98+
VC++6