Posts

Assignment

Image
  Programming in Python CST 362  Assignment -1 Date of submission:3-Feb-2025   before 1:30pm Note: Create a pdf file with program and output. Submit the printout control statements (if , for , while ) 1. Print the sin series x-x^3/3!+x^5/5!....x^n/n! ( read n.) 2. In the above program read the value x and find the sum of the series.(Use factorial function from math) 3.Print the following patterns * * * * * * * * * * 1 1 2 1 2 3 1 2 3 4 The pyramid is given for n=4 do this for any n 4. Find the position of the largest digit in a number.( consider unique digits) Eg: i/p : 546 largest digit=6 position =3 5.Positive integer is called an Armstrong number of order n if abcd….x= a^n + b^n + c^n + d^n + …+x^n where n is the length of the number Eg: 153 = 1^3 + 5^3+ 3^3 #153 is an Armstrong Number. Eg:1634= 1^4+6^4+3^4+4^4#1634 is an Armstrong Number. Write a Python program to check whether the given number is an Armstrong Number. 6. Find t...