Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

Assignment No.  1
Semester: Fall 2015

CS201 – Introduction to Programming


Total Marks: 20


Due Date:

December 01, 2015



Please read the following instructions carefully before submitting assignment:

It should be clear that your assignment will not get any credit if:


  • Assignment is submitted after due date.
  • Submitted assignment does not open or file is corrupt.
  • Assignment is copied (From internet/ to from students).


Software allowed to develop Assignment

-          Dev C++


Assignment Submission Instructions

You have to submit only.cpp file on the Assignments interface of CS201 at VULMS. Assignment submitted in any other format will not be accepted and will be graded zero marks.




Task 1: [Marks = 05]


Adobe Connect Lab Session Participation Marks (Already completed)


Task 2: [Marks = 15]


Write a c++ program that initially takes an integer value from the user as the loop’s limit. It means that the loop will execute the same times as the input from the user. The loop will then take integervalues as input from the user until it reaches loop limit.

You are required to use only one variable which will be used to take input repeatedly from the userinside the loop. It means you are not allowed to use the array or multiple variables for this purpose. After that your program will calculate sum of entered values, their average, minimum and maximumvalues along with position on which these values were entered.


NOTE: You can use different variables for storing the values for sum, average, minimum and maximum numbers etc. The restriction of using a single variable is just for getting input repeatedly inside the loop.


Marks distribution:


  • Ø 7 Marks for using only one variable for getting input values within loop
  • Ø 1 Mark  for calculating sum and average of entered values
  • Ø 2 Marks for identifying Minimum and Maximum values
  • Ø 3 Marks are for keeping track and printing the positions/indexes of minimum and maximum values
  • Ø 2 Marks to follow the sample output (Sample output screen is attached below)


Sample output screen is provided below; [You are required to follow same output pattern as provided]






Your assignment must be uploaded on or before December 01, 2015. We will not accept your solution through email after the due date.

Views: 6542


Replies to This Discussion

Dear Students we are here for you are help ....

Naveed Bhai I am looking for solution idea.

Can you tell here?

plz help me in making the solution.

using namespace std;
int num=0;
cout"enter loop limit";
for( int i = 1 ; i <= num ; i++)
cout"enter number";
system ("pause");
return 0 ;


my code 2  02  three time loop just why. plz help me

bro i need solution of cs201 assignment no 1 plz

how we do this assignment????


Here we're waiting your solution if you have any then please share it with us. It'll be great help for us.

  Thanks in advance :)

i need solution

Yes Naveed Bhai. i am working on it. i have done half.  I will share its idea when i will complete it.

I almost done the job except having issue with the output pattern that has been given with assignment ..expectantly will finish until tomorrow ....

we waiting bro.

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions.

using namespacestd;
int main()
cout"please enter the lower limit";
cin>>lower limit;
Cout"pleae enter the upper limit";
Cin>>upper limit;
} While(lower limit<=upperlimit)
cout"even numbers"evenedle;
cout"odd numbers"oddenle;


Looking For Something? Search Below

Latest Activity

+ ! Agha RoShaaan Khan+ commented on + M.Tariq Malik's page Chit Chat Wall
3 hours ago
+ ! Agha RoShaaan Khan+ replied to Mr Siren Head's discussion Ning Chats
3 hours ago
イム乃ひ posted a video


7 hours ago
Mr Siren Head commented on + M.Tariq Malik's page Chit Chat Wall
9 hours ago
Mr Siren Head replied to Mr Siren Head's discussion Ning Chats
9 hours ago
Mr Siren Head replied to Mr Siren Head's discussion Ning Chats
9 hours ago
AVAYA replied to Mr Siren Head's discussion Ning Chats
10 hours ago
AVAYA replied to Mr Siren Head's discussion Ning Chats
10 hours ago

VIP Member Badge & Others

How to Get This Badge at Your Profile DP


Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service