Course Solutions Uncategorized (Solved) : Given Code Using Language C Include Include Int Main Double Sum Int J N Printf Nenter N Sc Q36545376 . . . .

(Solved) : Given Code Using Language C Include Include Int Main Double Sum Int J N Printf Nenter N Sc Q36545376 . . . .

 

given code (using language C):

#include

#include

int main()

{

double a,sum;

int j,N;

printf(“nEnter an”);

scanf(“%lf”,&a);

printf(“Enter Nn”);

scanf(“%i”,&N);

printf(” j sum “);

sum=0.;

for (j=0; j

{

sum=sum+pow(a,j);

printf(“n %i %12.6lf “,j,sum);

}

return 0;

}

Question: Run the geometric series code above for a=0.3, N=10and for a=0.8, N=10. Write a paragraph which derives the correctanswer, and which gives the outputs of your code for both cases.Does your code give the right answer? If not, explain what’s goingwrong?

*********Please make sure you answer all questions to thisproblem, please be specific(Step by step) and please write clearenough to be able to read it. thank you! The language used isC.

I provided all your the info you need in the Question section…thats

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Matlab Histogram Equalization Contrast Enhancement Procedure Compute Display Histogram Gre Q35002929 . . . .(Solved) : Matlab Histogram Equalization Contrast Enhancement Procedure Compute Display Histogram Gre Q35002929 . . . .

<p>on MATLAB</p><p>Histogram equalization is a contrast enhancement procedure.Compute and display the histogram of a grey-scale image with andwithout using built-in functions. Equalize the histogram with andwithout using built-in functions. Construct