SlideShare a Scribd company logo
1 of 1
Download to read offline
// Mean is the average of given numbers.
double array_mean(double arr[], int num_items){
double sum=0;
for(int i=0;i< num_items;i++){
sum = sum + arr[i];
}
return sum/num_items;
}
Solution
// Mean is the average of given numbers.
double array_mean(double arr[], int num_items){
double sum=0;
for(int i=0;i< num_items;i++){
sum = sum + arr[i];
}
return sum/num_items;
}

More Related Content

More from anikkothari1

touchesSolutiontouches.pdf
touchesSolutiontouches.pdftouchesSolutiontouches.pdf
touchesSolutiontouches.pdfanikkothari1
 
There are various factors are responsible for reproductive isolation.pdf
There are various factors are responsible for reproductive isolation.pdfThere are various factors are responsible for reproductive isolation.pdf
There are various factors are responsible for reproductive isolation.pdfanikkothari1
 
The film is a mix of social drama and comedy. The content is present.pdf
The film is a mix of social drama and comedy. The content is present.pdfThe film is a mix of social drama and comedy. The content is present.pdf
The film is a mix of social drama and comedy. The content is present.pdfanikkothari1
 
The chart shows how to interpret the experimental results to identif.pdf
The chart shows how to interpret the experimental results to identif.pdfThe chart shows how to interpret the experimental results to identif.pdf
The chart shows how to interpret the experimental results to identif.pdfanikkothari1
 
Solution-D. Providing more favorable financial information.Expla.pdf
Solution-D. Providing more favorable financial information.Expla.pdfSolution-D. Providing more favorable financial information.Expla.pdf
Solution-D. Providing more favorable financial information.Expla.pdfanikkothari1
 
Implementing Systems OverviewHealth information technology (HIT) e.pdf
Implementing Systems OverviewHealth information technology (HIT) e.pdfImplementing Systems OverviewHealth information technology (HIT) e.pdf
Implementing Systems OverviewHealth information technology (HIT) e.pdfanikkothari1
 
Second option is the correct one dear... sorry i was unable to uploa.pdf
Second option is the correct one dear... sorry i was unable to uploa.pdfSecond option is the correct one dear... sorry i was unable to uploa.pdf
Second option is the correct one dear... sorry i was unable to uploa.pdfanikkothari1
 
proofSolutionproof.pdf
proofSolutionproof.pdfproofSolutionproof.pdf
proofSolutionproof.pdfanikkothari1
 
Ph = - log(1.0x10-2)= 2 log(10)= 2SolutionPh = - log(1.0x1.pdf
Ph = - log(1.0x10-2)= 2 log(10)= 2SolutionPh = - log(1.0x1.pdfPh = - log(1.0x10-2)= 2 log(10)= 2SolutionPh = - log(1.0x1.pdf
Ph = - log(1.0x10-2)= 2 log(10)= 2SolutionPh = - log(1.0x1.pdfanikkothari1
 
mport javafx.application.Application;import javafx.scene.Node;im.pdf
mport javafx.application.Application;import javafx.scene.Node;im.pdfmport javafx.application.Application;import javafx.scene.Node;im.pdf
mport javafx.application.Application;import javafx.scene.Node;im.pdfanikkothari1
 
In the above reaction the substrate is H2O2.Enzyme is CatalasePr.pdf
In the above reaction the substrate is H2O2.Enzyme is CatalasePr.pdfIn the above reaction the substrate is H2O2.Enzyme is CatalasePr.pdf
In the above reaction the substrate is H2O2.Enzyme is CatalasePr.pdfanikkothari1
 
In genetics, dominant allele is always represented by uppercase lett.pdf
In genetics, dominant allele is always represented by uppercase lett.pdfIn genetics, dominant allele is always represented by uppercase lett.pdf
In genetics, dominant allele is always represented by uppercase lett.pdfanikkothari1
 
aside from the two given already, there is still .pdf
                     aside from the two given already, there is still .pdf                     aside from the two given already, there is still .pdf
aside from the two given already, there is still .pdfanikkothari1
 
Hashing based on another type of data structure Hashing is implem.pdf
Hashing based on another type of data structure Hashing is implem.pdfHashing based on another type of data structure Hashing is implem.pdf
Hashing based on another type of data structure Hashing is implem.pdfanikkothari1
 
Al2(SO4)3.14H2O + 3Ca(HCO3)2 --- 2Al(OH)3 + 3CaS.pdf
                     Al2(SO4)3.14H2O + 3Ca(HCO3)2 --- 2Al(OH)3 + 3CaS.pdf                     Al2(SO4)3.14H2O + 3Ca(HCO3)2 --- 2Al(OH)3 + 3CaS.pdf
Al2(SO4)3.14H2O + 3Ca(HCO3)2 --- 2Al(OH)3 + 3CaS.pdfanikkothari1
 
For two vectors U and A The vector component of U along A is give.pdf
For two vectors U and A The vector component of U along A is give.pdfFor two vectors U and A The vector component of U along A is give.pdf
For two vectors U and A The vector component of U along A is give.pdfanikkothari1
 
Efforts to restore the number of apex predators includeHarbor sea.pdf
Efforts to restore the number of apex predators includeHarbor sea.pdfEfforts to restore the number of apex predators includeHarbor sea.pdf
Efforts to restore the number of apex predators includeHarbor sea.pdfanikkothari1
 
B. A switch is a device used to connect numerous computers together .pdf
B. A switch is a device used to connect numerous computers together .pdfB. A switch is a device used to connect numerous computers together .pdf
B. A switch is a device used to connect numerous computers together .pdfanikkothari1
 
ANS#include iostream int Rn_get(int low, int high); int cva.pdf
ANS#include iostream int Rn_get(int low, int high); int cva.pdfANS#include iostream int Rn_get(int low, int high); int cva.pdf
ANS#include iostream int Rn_get(int low, int high); int cva.pdfanikkothari1
 
a) Calcium chloride is used to create the competent cells as treatme.pdf
a) Calcium chloride is used to create the competent cells as treatme.pdfa) Calcium chloride is used to create the competent cells as treatme.pdf
a) Calcium chloride is used to create the competent cells as treatme.pdfanikkothari1
 

More from anikkothari1 (20)

touchesSolutiontouches.pdf
touchesSolutiontouches.pdftouchesSolutiontouches.pdf
touchesSolutiontouches.pdf
 
There are various factors are responsible for reproductive isolation.pdf
There are various factors are responsible for reproductive isolation.pdfThere are various factors are responsible for reproductive isolation.pdf
There are various factors are responsible for reproductive isolation.pdf
 
The film is a mix of social drama and comedy. The content is present.pdf
The film is a mix of social drama and comedy. The content is present.pdfThe film is a mix of social drama and comedy. The content is present.pdf
The film is a mix of social drama and comedy. The content is present.pdf
 
The chart shows how to interpret the experimental results to identif.pdf
The chart shows how to interpret the experimental results to identif.pdfThe chart shows how to interpret the experimental results to identif.pdf
The chart shows how to interpret the experimental results to identif.pdf
 
Solution-D. Providing more favorable financial information.Expla.pdf
Solution-D. Providing more favorable financial information.Expla.pdfSolution-D. Providing more favorable financial information.Expla.pdf
Solution-D. Providing more favorable financial information.Expla.pdf
 
Implementing Systems OverviewHealth information technology (HIT) e.pdf
Implementing Systems OverviewHealth information technology (HIT) e.pdfImplementing Systems OverviewHealth information technology (HIT) e.pdf
Implementing Systems OverviewHealth information technology (HIT) e.pdf
 
Second option is the correct one dear... sorry i was unable to uploa.pdf
Second option is the correct one dear... sorry i was unable to uploa.pdfSecond option is the correct one dear... sorry i was unable to uploa.pdf
Second option is the correct one dear... sorry i was unable to uploa.pdf
 
proofSolutionproof.pdf
proofSolutionproof.pdfproofSolutionproof.pdf
proofSolutionproof.pdf
 
Ph = - log(1.0x10-2)= 2 log(10)= 2SolutionPh = - log(1.0x1.pdf
Ph = - log(1.0x10-2)= 2 log(10)= 2SolutionPh = - log(1.0x1.pdfPh = - log(1.0x10-2)= 2 log(10)= 2SolutionPh = - log(1.0x1.pdf
Ph = - log(1.0x10-2)= 2 log(10)= 2SolutionPh = - log(1.0x1.pdf
 
mport javafx.application.Application;import javafx.scene.Node;im.pdf
mport javafx.application.Application;import javafx.scene.Node;im.pdfmport javafx.application.Application;import javafx.scene.Node;im.pdf
mport javafx.application.Application;import javafx.scene.Node;im.pdf
 
In the above reaction the substrate is H2O2.Enzyme is CatalasePr.pdf
In the above reaction the substrate is H2O2.Enzyme is CatalasePr.pdfIn the above reaction the substrate is H2O2.Enzyme is CatalasePr.pdf
In the above reaction the substrate is H2O2.Enzyme is CatalasePr.pdf
 
In genetics, dominant allele is always represented by uppercase lett.pdf
In genetics, dominant allele is always represented by uppercase lett.pdfIn genetics, dominant allele is always represented by uppercase lett.pdf
In genetics, dominant allele is always represented by uppercase lett.pdf
 
aside from the two given already, there is still .pdf
                     aside from the two given already, there is still .pdf                     aside from the two given already, there is still .pdf
aside from the two given already, there is still .pdf
 
Hashing based on another type of data structure Hashing is implem.pdf
Hashing based on another type of data structure Hashing is implem.pdfHashing based on another type of data structure Hashing is implem.pdf
Hashing based on another type of data structure Hashing is implem.pdf
 
Al2(SO4)3.14H2O + 3Ca(HCO3)2 --- 2Al(OH)3 + 3CaS.pdf
                     Al2(SO4)3.14H2O + 3Ca(HCO3)2 --- 2Al(OH)3 + 3CaS.pdf                     Al2(SO4)3.14H2O + 3Ca(HCO3)2 --- 2Al(OH)3 + 3CaS.pdf
Al2(SO4)3.14H2O + 3Ca(HCO3)2 --- 2Al(OH)3 + 3CaS.pdf
 
For two vectors U and A The vector component of U along A is give.pdf
For two vectors U and A The vector component of U along A is give.pdfFor two vectors U and A The vector component of U along A is give.pdf
For two vectors U and A The vector component of U along A is give.pdf
 
Efforts to restore the number of apex predators includeHarbor sea.pdf
Efforts to restore the number of apex predators includeHarbor sea.pdfEfforts to restore the number of apex predators includeHarbor sea.pdf
Efforts to restore the number of apex predators includeHarbor sea.pdf
 
B. A switch is a device used to connect numerous computers together .pdf
B. A switch is a device used to connect numerous computers together .pdfB. A switch is a device used to connect numerous computers together .pdf
B. A switch is a device used to connect numerous computers together .pdf
 
ANS#include iostream int Rn_get(int low, int high); int cva.pdf
ANS#include iostream int Rn_get(int low, int high); int cva.pdfANS#include iostream int Rn_get(int low, int high); int cva.pdf
ANS#include iostream int Rn_get(int low, int high); int cva.pdf
 
a) Calcium chloride is used to create the competent cells as treatme.pdf
a) Calcium chloride is used to create the competent cells as treatme.pdfa) Calcium chloride is used to create the competent cells as treatme.pdf
a) Calcium chloride is used to create the competent cells as treatme.pdf
 

Recently uploaded

Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 

Recently uploaded (20)

Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 

Mean is the average of given numbers.double array_mean(double a.pdf

  • 1. // Mean is the average of given numbers. double array_mean(double arr[], int num_items){ double sum=0; for(int i=0;i< num_items;i++){ sum = sum + arr[i]; } return sum/num_items; } Solution // Mean is the average of given numbers. double array_mean(double arr[], int num_items){ double sum=0; for(int i=0;i< num_items;i++){ sum = sum + arr[i]; } return sum/num_items; }