4.9 Code Practice: Question 2
Justin H.
AP CS
5 months, 2 weeks ago
What is the answer to 4.nine Code Practice: Question 2
Related Question
Could you solve in plan C ?
Word
You lot must be signed in to discuss.
Video Transcript
How-do-you-do everyone We are going to understand this question here question is we take to printer So we have to calculate lee or tailors. It is in Sine X. Then here we can run into then And the question it is given -1 to the power and Extra the power to impress one upon factorial two n Plus 1. So we have to calculate it this serial. And so here start of all in the master function we tin can come across programming starts from hither we ascertain a 3rd value float variable X. You some And initially somewhat zero now in the eyes equal to zero. Sad I is equal to one J is equal to one and limit no print entered the value of sin X series. And then here we volition scan the value of X. Mhm in the next line enter the value, enter the limit up to which you desire to aggrandize the series. So here we will print the value of limit me how much terms we want to calculate. So here we will print them we will for the limit and in cuba we corporate the value of X and X we will calculate the 10 into pie upon vanity ways nosotros will convert into them we will catechumen this anger That is by upon 183.1415 on 180. At present from this behave in the spirit of I look and this will execute bill I not less than equal to limit till that time it will execute so here in villages until the flu so here I Percent to not equal to zero till that time it will execute so sum is equal to sum plus ability X comma they miss hither is computing the value book, Acts to the powers A and B. Already defined value of J and information technology is getting copies here and and then information technology will execute and hither in fact the and so here in fact there is a role which is killed within the factorial, this is the gene actually and hither in the eyes equal to one and right is equal to one initially with the initiative this value and this while y'all will execute to calculate the value to calculate the mill in no here Jay'southward increment in reaching by J-plus two times in every execution of Willow they will increase J plus ii and I volition increase by i time this plus ane. So at present let's execute this program. Then here we can meet If suppose we are inbound the value of X 20 A number of times is ten So we tin see value of sine 50 is equal to 0.7 660 to go That was the explanation to this question. Thanks
4.9 Code Practice: Question 2,
Source: https://www.numerade.com/ask/question/what-is-the-answer-to-49-code-practice-question-2-23586/
Posted by: keithshou1999.blogspot.com
0 Response to "4.9 Code Practice: Question 2"
Post a Comment