Question: Let an be an infinite sequence defined by following formula: an = n3 9n2 + 15n + 100 1. (20p.) Write a program in Python

 Let an be an infinite sequence defined by following formula: an

Let an be an infinite sequence defined by following formula: an = n3 9n2 + 15n + 100 1. (20p.) Write a program in Python language which display sum of first 10 members of an 2. (20p.) Write a program in Python language which display first 10 mem- bers of an as ordered ascending. (Lists are useful.) 3. (20p.] Write a program in Python language which display first 10 mem- bers of an which are EVEN. 4. (25p.) Write a program in Python language which display first 10 mem- bers of an which has 5 digits. (We wrote a program which find number of digits of given number. Use it as a CUSTOM FUNCTION.) 5. (15p.) Write a program in Python language about calculating 3rd side of triangle which 2 sides and angle (in degree) between these sides are taken from user. (Hint: The law of cosines) (Be careful about using trigonomet- ric functions in python. First test for 30, i.e. sin(30)? =?0.5)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!