We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Assignment No.  1
Semester: Fall 2015

CS201 – Introduction to Programming

 

Total Marks: 20

 

Due Date:

December 01, 2015

 

Instructions

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.

 

Assignment

 

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]

 

 

 

 

Deadline:

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

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 6378

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Attachments:

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.

#include<iostream>
using namespace std;
main()
{
int num=0;
cout"enter loop limit";
cin>>num;
for( int i = 1 ; i <= num ; i++)
{
cout"enter number";
cin>>i;
}
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????

Naveed.

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.

#include<iostream>
using namespacestd;
int main()
{
intsum;
itntlowerlimit;
intupperlimit;
inteven;
intodd;
sum=0:
cout"please enter the lower limit";
cin>>lower limit;
Cout"pleae enter the upper limit";
Cin>>upper limit;
} While(lower limit<=upperlimit)
{
Sum=sum+lowerlimit;
lowerlimit=lowerlimit+1;
coutsum"\t";
if((sum%2)==0)
{
even=even+1;
}
else
{
odd=odd+1;
}
cout"even numbers"evenedle;
cout"odd numbers"oddenle;

RSS

Latest Activity

Danial added a discussion to the group MCM501 Advertising for Print and Electronic Media
13 minutes ago
Zareen replied to + IUUOƆƎUT +'s discussion How Can You Get Secured of Being Banned On Ning
15 minutes ago
khurram us salam replied to + M.Tariq Malik's discussion ACC501 GDB Fall 2019 Solution & Discussion in the group ACC501 Business Finance
16 minutes ago
+ IUUOƆƎUT + replied to + IUUOƆƎUT +'s discussion کہو تو لوٹ جاتے ہیں ۔ ۔ ۔
17 minutes ago
Zareen added a discussion to the group Freelancing DigiSkills Training Program
20 minutes ago
Zareen joined + M.Tariq Malik's group
20 minutes ago
+ ! ! tHE sTreEt sMarTie !! updated their profile
21 minutes ago
+ IUUOƆƎUT + liked + IUUOƆƎUT +'s discussion کہو تو لوٹ جاتے ہیں ۔ ۔ ۔
33 minutes ago
Danial joined + M.Tariq Malik's group
34 minutes ago
+'innocent" BSc replied to + M.Tariq Malik's discussion EDU431 Test Development & Evaluation Assignment No 01 Fall 2019 Solution & Discussion in the group EDU431 Test Development & Evaluation
38 minutes ago
+ IUUOƆƎUT + posted discussions
43 minutes ago
+ ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! posted a discussion
1 hour ago
niceperson joined + M.Tariq Malik's group
1 hour ago
niceperson joined + M.Tariq Malik's group
1 hour ago
niceperson joined + M.Tariq Malik's group
1 hour ago
niceperson joined + M.Tariq Malik's group
1 hour ago
+ ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! replied to +! ! ! "Asнтαℓғαн's discussion Happy wala Birthday tashy patashy ❤ (Tasha)
1 hour ago
Ikra butt replied to + M.Tariq Malik's discussion CS302 Digital Logic Design Assignment No 02 Fall 2019 Solution & Discussion in the group CS302 Digital Logic Design
1 hour ago
Ikra butt joined + M.Tariq Malik's group
1 hour ago
Ikra butt joined + M.Tariq Malik's group
1 hour ago

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

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