Hey guys I need to have the solutions of some questions related to C-Program. I would be very very grateful to you guys, if you could kindly post the solutions for those questions. Thanks in advance! Normal 0 MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} Q.1 Write a program to read in an NxN matrix and square it according the formula Sij = Σ(k=1 to N) Aik Akj. Where A is the original matrix Q.2 Write a program to read in starting values A, X1, Y1 and perform the following iteration: X i+1 = Y i 2 - X i Y i+1 = X i -A N times (N read in) Then output the answer X N+1 ,Y N+1 . Don’t use Dimensioned variables. Q.3 Write a program to input two vectors of arbitrary length N ( the same for both vectors), ai and bi and calculate the dot product defined as Σ(i=1 to N) ai bi and output the result. Q.4 Write a program to perform; Integration( 0 to 1) e-x^2 dx using rectangles, i.e. break up the region into N+1 intervals, each of width 1/N, and multiply the width by the values of e-x^2 at the start and end of the interval and divide by 2 ; Then sum this over all intervals. Leave N variable.
alpha · Sep 29, 2009 2:54 PM · 14,756 views
This looks like all your homework. Have you tried any? You should try it to get the concept otherwise you will regret in future...
xcopsgen · Sep 29, 2009 3:33 PM
I could help you out with your homework but as I am cash strapped I would need some cash. But I think that you would have done your homework already by now. If you haven't, just let me know. Regards, GarbageGigo
garbagegigo · Oct 17, 2009 9:01 AM
haha, this looks funny..... posting whole homework problems on a forum....
download · Nov 18, 2009 11:20 AM
This conversation is preserved exactly as it was on the original Sajha.com and can't accept new replies.
Start a New Discussion