<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CS441 Assignment 1 Solution and Discussion]]></title><description><![CDATA[<p dir="auto">Assignment No.  1<br />
Semester: Fall 2019<br />
CS441 – Big Data Concepts<br />
Total Marks: 20<br />
Due Date: 14/11/2019<br />
Lectures covered:<br />
Week 1 to week 3</p>
<p dir="auto">Instructions<br />
Please read the following instructions carefully before submitting assignment:<br />
It should be clear that your assignment will not get any credit if:</p>
<p dir="auto">o	Assignment is submitted after due date.<br />
o	Submitted assignment does not open or file is corrupt.<br />
o	Assignment is copied (From internet/students).</p>
<p dir="auto">Software allowed to develop Assignment</p>
<ul>
<li>Python editor</li>
</ul>
<p dir="auto">Objectives:<br />
To enable the students to write and execute a program in Python. Moreover to familiarize students with  the concepts of:</p>
<p dir="auto">•	Variables<br />
•	Operators<br />
•	Conditions<br />
•	Loop structures</p>
<p dir="auto">Assignment Submission Instructions<br />
You have to submit <a href="http://only.py" target="_blank" rel="noopener noreferrer nofollow ugc">only.py</a> file on the Assignments interface of CS441 on VULMS. Assignment submitted in any other format will not be accepted and will be graded zero marks.</p>
<p dir="auto">Assignment</p>
<p dir="auto">Write a program in Pyton programming language, which allows the user to input an integer value for a variable named upprtLimit. Based on the input value, the program should perform the following tasks:</p>
<p dir="auto">•	Find the even numbers within the given range (0 to upperLimit) and display all the even numbers on the screen.<br />
•	Find the odd numbers within the given range (0 to upperLimit) and display all the odd numbers on the screen.<br />
•	Calculate and display the sum of all even numbers within the given range (0 to upperLimit).<br />
•	Calculate and display the sum of all odd numbers within the given range (0 to upperLimit).<br />
•	Display the total number of even and odd numbers within the given range (0 to upperLimit).</p>
<p dir="auto">For example, if a user enters upperLimit=20, then the sample output will be:</p>
<p dir="auto">Sample output:<br />
<img src="https://i.imgur.com/n47ASQS.png" alt="ab206076-1e63-433c-8c67-8b6ecaeee00f-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Deadline:<br />
The deadline to submit your assignment solution is 14/11/2019. Your assignment must be submitted within the due date through VULMS. No assignment will be accepted through email after the due date.</p>
]]></description><link>https://community.secnto.com//topic/715/cs441-assignment-1-solution-and-discussion</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 19:59:24 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/715.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 Nov 2019 15:24:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CS441 Assignment 1 Solution and Discussion on Tue, 21 Jan 2020 12:44:27 GMT]]></title><description><![CDATA[<p dir="auto"><strong>Solution 100%</strong></p>
<pre><code>start=0
evensum=0
oddsum=0
counteven=0
countodd=0

print("Enter the upper Limit:")
upperLimit=input()
print
print("Even numbers are:")
for num in range(start, upperLimit+1):
    if num%2==0:
        evensum=evensum+num
        counteven=counteven+1
        print(num)
print
print("Sum of Even numbers:")
print(evensum)
print
print("Total number of Even numbers within the range are:")
print(counteven)
print

print("Odd numbers are:")
for num1 in range(start, upperLimit+1):
    if num1%2!=0:
        oddsum=oddsum+num1;
        countodd=countodd+1
        print(num1)
print
print("Sum of Odd numbers:")
print(oddsum)
print
print("Total number of Odd numbers within the range are:")
print(countodd)

</code></pre>
]]></description><link>https://community.secnto.com//post/2047</link><guid isPermaLink="true">https://community.secnto.com//post/2047</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Tue, 21 Jan 2020 12:44:27 GMT</pubDate></item></channel></rss>