<?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[CS201 Assignment 1 Solution and Discussion]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/725/cs201-assignment-1-solution-and-discussion">CS201 Assignment 1 Solution and Discussion</a></p>
<p dir="auto">Assignment No.  1<br />
Semester: Spring 2022<br />
CS201 – Introduction to Programming	Total Marks: 20</p>
<p dir="auto">Due Date: 10th June 2022<br />
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">•	Assignment is submitted after due date.<br />
•	Submitted assignment does not open or file is corrupt.<br />
•	Assignment is copied (From internet/students).</p>
<p dir="auto">Recommended tool to develop Assignment<br />
•	Dev C++</p>
<p dir="auto">Objectives:<br />
To enable students to understand and practice the concepts of:<br />
•	Data Types and Variables<br />
•	Arithmetic and Logical Operators<br />
•	Expression Solving<br />
•	If-else Statements<br />
•	Repetition Structure</p>
<p dir="auto">Assignment Submission Instructions<br />
You have to submit only .cpp file on the assignments interface of CS201 from your LMS account. Assignment submitted in any other format(like doc, docx, pdf, giff,jpg etc.) will be scaled with zero mark. So, check your solution file format before submission.</p>
<p dir="auto">For any query related to assignment, please contact <a href="mailto:cs201@vu.edu.pk" target="_blank" rel="noopener noreferrer nofollow ugc">cs201@vu.edu.pk</a>.</p>
<p dir="auto">Lectures: 1 to 6</p>
<p dir="auto">Assignment</p>
<p dir="auto">Write a C++ program that performs the following tasks:</p>
<p dir="auto">1-	Print your name, VU id, and list of courses you have selected in current semester.<br />
2-	Print the names of all courses you have selected in the current semester.<br />
3-	Add first numeric digit of your VU id to the total number of courses selected.<br />
4-	Display the result of sum on the screen.<br />
5-	Print “Welcome to CS201-Introduction to Programming” by using WHILE loop. Number of iterations of WHILE loop must be equal to sum calculated in point 4.</p>
<p dir="auto">For example, suppose the student id is BC123456781. Then by adding first digits of vu id=1, with number of courses (suppose =4), we get sum= 5.</p>
<p dir="auto">Sum = first digits of vu id + number of courses<br />
5      =       1    +    4</p>
<p dir="auto">In this case, program should print “Welcome to CS201-Introduction to Programming” 5 times.</p>
<p dir="auto">Sample screen shot::</p>
<p dir="auto"><img src="https://i.imgur.com/fAnTLOf.png" alt="831f372c-cd62-4af9-94cd-50ecc8854090-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">NOTE: Student’s name and id are supposed values (not real) in above example.<br />
You will print your own VU Id, Name otherwise you will get zero marks.</p>
]]></description><link>https://community.secnto.com//topic/2328/cs201-assignment-1-solution-and-discussion</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 19:10:52 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/2328.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Jun 2022 06:39:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CS201 Assignment 1 Solution and Discussion on Sat, 04 Jun 2022 07:21:07 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://youtu.be/PAY5DTXtq1A" target="_blank" rel="noopener noreferrer nofollow ugc">https://youtu.be/PAY5DTXtq1A</a></p>
]]></description><link>https://community.secnto.com//post/6991</link><guid isPermaLink="true">https://community.secnto.com//post/6991</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Sat, 04 Jun 2022 07:21:07 GMT</pubDate></item></channel></rss>