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

Assalam-o-Alikum

 

ye solution sahi ha yar?

agar sahi hai tau asaan tareqe se bana de koi :P

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

.

+ 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

Aslam-e-alaikum bhai is mein kya masla mein ne ik are upload with comment ho sakta hai is bar ap ko smajh per jaey.

sath mein ye idea soulution tha. asli wali mein ne abhi upload ki hai.changes zaror karna.

#include<iostream.h>
#include<conio.h>
float avg(int [],int);
float low(int [],int);
float high(int [],int);

int main()
{
int n;
cout"Enter the number of consecutive days to read their temperature";
cin>>n;
coutendl;

int arr[10];
float l,h,a;
for(int i=0;i<n;i++)
{
cout"Enter the temperature for day "i+1" : ";
cin>>arr[i];
coutendl;
}
coutendl;
a=avg(arr,n);
cout"The Average Temperature is "aendl;
h=high(arr,n);
cout"The Highest temperature is "hendl;
l=low(arr,n);
cout"The Lowest temperature is "l;


getch();
}

float avg(int arr[],int n)
{
float sum=0.0,a;
for(int i=0;i<n;i++)
{
sum=sum+arr[i];

}
a=sum/5.0;
return (a);
}

float low(int arr[],int n)
{
float l=100.0;
for(int i=0;i<n;i++)
{
if(arr[i]<l)
l=arr[i];
}

return (l);
}
float high(int arr[],int n)
{
float h=0.0;
for(int i=0;i<n;i++)
{
if(arr[i]>h)
h=arr[i];


}

return (h);
}


RSS

Latest Activity

+ ! ✨ ░S░I░N░G░E░R liked KyaMusibatHai's discussion Submit your teacher evaluation form automatically within Seconds
24 seconds ago
+ ! ✨ ░S░I░N░G░E░R replied to + Iuuoɔǝut+'s discussion Agar Mujh Sy Mohabbat Hy .........
1 minute ago
+ ! ✨ ░S░I░N░G░E░R liked + Iuuoɔǝut+'s discussion Agar Mujh Sy Mohabbat Hy .........
2 minutes ago
+ ! ✨ ░S░I░N░G░E░R replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion 2019 Noble Prize Winners
3 minutes ago
+ ! ✨ ░S░I░N░G░E░R liked + "αяsαℓ " Ќąƶµяɨ •"'s discussion 2019 Noble Prize Winners
5 minutes ago
+ ! ✨ ░S░I░N░G░E░R liked 彡JK彡 ❤️'s discussion جانی...!! اپنی تصویر بھیجو۔۔۔امی کو دکھانی ہے >_<
6 minutes ago
+ ! ! ! ! Ⲙehar Roman replied to Mohammad Raybal's discussion MGT301 vs MGT503 (Which is better ?)
7 minutes ago
+ ! ! ! ! Ⲙehar Roman liked Mohammad Raybal's discussion MGT301 vs MGT503 (Which is better ?)
9 minutes ago
+ ! ✨ ░S░I░N░G░E░R liked + M.Tariq Malik's discussion VU Students Reserves The Right to Delete Any Profile On the Site
9 minutes ago
+ ! ! ! ! Ⲙehar Roman liked +¢αяєℓєѕѕ gιяℓ's discussion zevar Mard Pr Haram hai xD
9 minutes ago
+ ! ! ! ! Ⲙehar Roman liked Whispering Soul's discussion کیا شاہد آفریدی کے گھر میں بھارتی کھلاڑیوں کی شرٹس آویزاں ہیں؟
10 minutes ago
+ ! ! ! ! Ⲙehar Roman liked +"Certified Gangster"++'s discussion Acha Achaaaaa
10 minutes ago
+ ! ✨ ░S░I░N░G░E░R replied to + M.Tariq Malik's discussion VU Students Reserves The Right to Delete Any Profile On the Site
10 minutes ago
+ ! ! ! ! Ⲙehar Roman liked + M.Tariq Malik's discussion دل یونہی اہتمام کرتا ہے وہ کہاں اب قیام کرتا ہے
11 minutes ago
+ ! ! ! ! Ⲙehar Roman liked KyaMusibatHai's discussion Submit your teacher evaluation form automatically within Seconds
11 minutes ago
+ ! ! ! ! Ⲙehar Roman liked + Iuuoɔǝut+'s discussion Agar Mujh Sy Mohabbat Hy .........
11 minutes ago
+ ! ! ! ! Ⲙehar Roman liked + "αяsαℓ " Ќąƶµяɨ •"'s discussion 2019 Noble Prize Winners
12 minutes ago
+ ! ✨ ░S░I░N░G░E░R liked KyaMusibatHai's discussion Calling all CSS aspirants! Anyone brave enough to wade through CSS's hottest waters?
17 minutes ago
+ ! ! ! ! Ⲙehar Roman replied to 彡JK彡 ❤️'s discussion جانی...!! اپنی تصویر بھیجو۔۔۔امی کو دکھانی ہے >_<
23 minutes ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion 2019 Noble Prize Winners
1 hour ago

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

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