Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions