[SOLVED] EE4371 Assignment1-Reinforcement of concepts / methods  

35.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon EE19B105_Assignment1-rsmb3r.zip (54.6 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
Rate this product

.  Q1 Reinforcement of concepts / methods  

  • Write a Python function that takes a positive integer n, and returns the sum of the squares of all the positive integers smaller than n.
  • Write a Python function that takes a positive integer n, and returns the sum of the squares of all the odd​ ​ positive integers smaller than n.

Q2

What parameter values should be sent to the range constructor to produce a range with values:

  • 60,70,80
  • 4,2,0,-2,-4

 

  1. Creativity

Q3

Write a Python function that takes a sequence of integer values and determines if there is a distinct pair of numbers in the sequence whose product is odd​          ​.  

 

Q4 

Write a Python function that counts the number of vowels in a given character string.

 

Q5

Write a Python program that takes as input three integers, “a”, “b” and “c”, from the console and determines if they can be used in the following arithmetic formulas: (i) “a+b=c”, (ii) “a=b-c”, (iii) “a*b=c”.

 

  1. Project-based / Cross-Contextual Q6

https://en.wikipedia.org/wiki/Birthday_problem

Design a program that can test the Birthday problem, by a series of experiments, on randomly generated birthdays which test this paradox for n = 5,10,15,20,25,30…200.

  • EE19B105_Assignment1-rsmb3r.zip