SlideShare a Scribd company logo
// 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.pdf
anikkothari1
 
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
anikkothari1
 
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
anikkothari1
 
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
anikkothari1
 
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
anikkothari1
 
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
anikkothari1
 
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
anikkothari1
 
proofSolutionproof.pdf
proofSolutionproof.pdfproofSolutionproof.pdf
proofSolutionproof.pdf
anikkothari1
 
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
anikkothari1
 
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
anikkothari1
 
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
anikkothari1
 
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
anikkothari1
 
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
anikkothari1
 
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
anikkothari1
 
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
anikkothari1
 
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
anikkothari1
 
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
anikkothari1
 
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
anikkothari1
 
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
anikkothari1
 
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
anikkothari1
 

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

Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 

Recently uploaded (20)

Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 

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