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

www.vustudents.ning.com

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.

# CS201

#include<iostrean.h>

//decalaration of variables, the age will be in whole numbers int age1,age2,age3,age4,age5,age6,age7,age8,age9,age10;
int TotalAge,AverageAge;

//take ages of the students from the user
cout"please enter the age of student 1:";
cin>>age1;
cout"please enter the age of student 2:";
cin>>age2;
cout"please enter the age of student 3:";
cin>>age3;
cout"please enter the age of student 4:";
cin>>age4;
cout"please enter the age of student 5:";
cin>>age5;
cout"please enter the age of student 6:";
cin>>age6;
cout"please enter the age of student 7:";
cin>>age7;
cout"please enter the age of student 8:";
cin>>age8;
cout"please enter the age of student 9:";
cin>>age9;
cout"please enter the age of student 10:";
cin>>age10;
//calculate the total age and average age
Total age=age1+age2+age3+age4+age5+age6+age7+age8+age9+age10;
Average age=Total age/10;

//Display the result (average age)
cout"Average age of class is:"AverageAge;

IS M KYA MISTAKE H PLZ HELP ME KOI HELP KRY Y RUN NH HO RHAI

+ 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: 346

.

+ 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?)

### Replies to This Discussion

#include using namespace std;
main()
{
int age1,age2,age3,age4,age5,age6,age7,age8,age9,age10;
int TotalAge;
int AverageAge;
cout"Please Enter The Age of First Student:";
cin>> age1;
cout"Please Enter The Age of Second Student:";
cin>> age2;
cout"Please Enter The Age of Third Student:";
cin>> age3;
cout"Please Enter The Age of Fourth Student:";
cin>> age4;
cout"Please Enter The Age of Fifth Student:";
cin>> age5;
cout"Please Enter The Age of sixth Student:";
cin>> age6;
cout"Please Enter The Age of Seventh Student:";
cin>> age7;
cout"Please Enter The Age of Eighth Student:";
cin>> age8;
cout"Please Enter The Age of Nineth Student:";
cin>> age9;
cout"Please Enter The Age of Tenth Student:";
cin>> age10;
TotalAge=age1+age2+age3+age4+age5+age6+age7+age8+age9+age10; AverageAge=TotalAge/10;
cout"The Average Age of All Students is:"AverageAge;
}

please find attachment file.

Attachments:

If you want the solution of this Assignment, Kindly Upload The Assignment File...!!!

dear ap logo ny note kia hai assignment me ak jga ghalti hai

## Latest Activity

1 hour ago
afaq posted a discussion

### cs 312 assignment 2 solution required

5 hours ago
6 hours ago
Zain Kazimi posted a discussion

### Self Poetry Dedicated to Nasir Kazimi

6 hours ago
6 hours ago
+ ! ! ! ! ! ! ! ! STUDENTs +++ liked ♦_"Tooba"_♦'s discussion QUIZ NO 1
6 hours ago
+ M.Tariq Malik's 17 discussions were featured
6 hours ago
+ M.Tariq Malik added a discussion to the group EDU401 Contemporary Issues and Trends in Education

### EDU401 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material

6 hours ago
+ M.Tariq Malik liked Zari's discussion cs502 important topics for mid
6 hours ago

1

2