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

 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

# 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?

Views: 348

.

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

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

### 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;
}

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

Aqsa Khan liked Alishba's discussion Nikkah Mubarak To <3 !! 'JS' !! <3
13 minutes ago
+!!!❣Stylo Queen❣!!!+ updated their profile
37 minutes ago
+ ! Suspecious+ updated their profile
39 minutes ago
+ ! Suspecious+ replied to + ! Suspecious+'s discussion احساسات
43 minutes ago
+ ! ❤SΕNSΙТΙVΕ(∂ΕSΕЯТ ΡЯΙNCΕSS)❤ liked + ! Suspecious+'s discussion احساسات
52 minutes ago
1 hour ago
1 hour ago

1

2

3