SlideShare a Scribd company logo
1 of 6
3/8th
C PROGRAM TO FIND OUT
DISCHARGE BY USING SIMPON’S RULE
Discharge by Simpson’s 3/8th Rule
Statement :-
It states that, sum of first and last ordinates has to be done. Add
twice the sum of remaining odd ordinates and four times the
sum of remaining even ordinates.Multiply to this total sum by
1/3rd of the common distance between the ordinates which
gives the required area.
Application :-
A greater accuracy in the computation of discharge may be obtained
by using simpson’s rule . In this method the whole river width is
divided into an even number of equal segments so That there are
odd number of depths taken at the end of each segments as shown
in figure. Then area of flow,
C program to find out Discharge by Simpson’s 3/8th Rule
Description - :
To find Discharge by Simpson’s 3/8th Rule contain formula,
1) Area -:
2) Discharge -: Q = AV
Where,
A = Area of whole river
h = length of each segment
fo , fn = depth taken at end of
End section of segment
f1,f2,f3, … = depth at middle section
Q = discharge
V = velocity of flow
PROGRAM -:
#include<stdio.h>
#include<conio.h>
#include<math.h>
int main();
{
int h=6;
float f(x0),f(x1),f(x2),f(x3),f(x4),f(xn),Area;
printf("enter the value of area of respective depth");
h= (b-a)/n;
f(x0)=1.2;
f(x1)=1.47;
f(x2)=1.56;
f(x3)=1.68;
f(x4)=1.72;
f(xn)=1.86;
Area=(3h/8)*(f(x0)+f(xn)+2*(f(x1)+f(x3))+3*(f(x2)+f(x4)));
printf("The capacity of reservoir = %f",Area);
getch();
}
OUTPUT -:
C program for discharge

More Related Content

What's hot

Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 4
Class lectures on Hydrology by Rabindra Ranjan Saha  Lecture 4Class lectures on Hydrology by Rabindra Ranjan Saha  Lecture 4
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 4World University of Bangladesh
 
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 12
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 12Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 12
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 12World University of Bangladesh
 
Presentation 5 r ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate ...
Presentation 5 r ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate ...Presentation 5 r ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate ...
Presentation 5 r ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate ...World University of Bangladesh
 
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 11
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 11Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 11
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 11World University of Bangladesh
 
Presentation 5 r ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate ...
Presentation 5 r ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate ...Presentation 5 r ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate ...
Presentation 5 r ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate ...World University of Bangladesh
 
Presentation 6 ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate Pr...
Presentation 6 ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate Pr...Presentation 6 ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate Pr...
Presentation 6 ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate Pr...World University of Bangladesh
 
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 9
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 9Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 9
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 9World University of Bangladesh
 
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 3
Class lectures on Hydrology by Rabindra Ranjan Saha  Lecture 3Class lectures on Hydrology by Rabindra Ranjan Saha  Lecture 3
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 3World University of Bangladesh
 
Fundamentals of aerodynamics chapter 6
Fundamentals of aerodynamics chapter 6Fundamentals of aerodynamics chapter 6
Fundamentals of aerodynamics chapter 6forgotteniman
 
Lecture 6 ce 1005 Irrigation and flood control by Rabindra Ranjan Saha, PEn...
Lecture 6   ce 1005 Irrigation and flood control by Rabindra Ranjan Saha, PEn...Lecture 6   ce 1005 Irrigation and flood control by Rabindra Ranjan Saha, PEn...
Lecture 6 ce 1005 Irrigation and flood control by Rabindra Ranjan Saha, PEn...World University of Bangladesh
 
Wavelet estimation for a multidimensional acoustic or elastic earth- Arthur W...
Wavelet estimation for a multidimensional acoustic or elastic earth- Arthur W...Wavelet estimation for a multidimensional acoustic or elastic earth- Arthur W...
Wavelet estimation for a multidimensional acoustic or elastic earth- Arthur W...Arthur Weglein
 
Synthetic unit hydrograph
Synthetic unit hydrographSynthetic unit hydrograph
Synthetic unit hydrographSatish Taji
 
Raqrs06 Borel Talk 8 15 06 White
Raqrs06 Borel Talk 8 15 06 WhiteRaqrs06 Borel Talk 8 15 06 White
Raqrs06 Borel Talk 8 15 06 Whiteguest0030172
 
Class lectures on hydrology by Rabindra Ranjan Saha, Lecture 8
Class lectures on hydrology by Rabindra Ranjan Saha, Lecture 8Class lectures on hydrology by Rabindra Ranjan Saha, Lecture 8
Class lectures on hydrology by Rabindra Ranjan Saha, Lecture 8World University of Bangladesh
 
K12020 VARUN RAC PPT
K12020 VARUN RAC PPTK12020 VARUN RAC PPT
K12020 VARUN RAC PPTSourabh Gupta
 
Presentation 7 a ce 904 Hydrology by Rabindra Ranjan Saha, PEng, Associate P...
Presentation  7 a ce 904 Hydrology by Rabindra Ranjan Saha, PEng, Associate P...Presentation  7 a ce 904 Hydrology by Rabindra Ranjan Saha, PEng, Associate P...
Presentation 7 a ce 904 Hydrology by Rabindra Ranjan Saha, PEng, Associate P...World University of Bangladesh
 
Precipitation and its estimation
Precipitation and its estimationPrecipitation and its estimation
Precipitation and its estimationMohsin Siddique
 

What's hot (19)

Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 4
Class lectures on Hydrology by Rabindra Ranjan Saha  Lecture 4Class lectures on Hydrology by Rabindra Ranjan Saha  Lecture 4
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 4
 
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 12
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 12Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 12
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 12
 
18.seepage through earth dam
18.seepage through earth dam18.seepage through earth dam
18.seepage through earth dam
 
Presentation 5 r ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate ...
Presentation 5 r ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate ...Presentation 5 r ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate ...
Presentation 5 r ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate ...
 
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 11
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 11Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 11
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 11
 
Presentation 5 r ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate ...
Presentation 5 r ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate ...Presentation 5 r ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate ...
Presentation 5 r ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate ...
 
Presentation 6 ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate Pr...
Presentation 6 ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate Pr...Presentation 6 ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate Pr...
Presentation 6 ce 904 on Hydrology by Rabindra Ranjan Saha,PEng, Associate Pr...
 
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 9
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 9Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 9
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 9
 
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 3
Class lectures on Hydrology by Rabindra Ranjan Saha  Lecture 3Class lectures on Hydrology by Rabindra Ranjan Saha  Lecture 3
Class lectures on Hydrology by Rabindra Ranjan Saha Lecture 3
 
Fundamentals of aerodynamics chapter 6
Fundamentals of aerodynamics chapter 6Fundamentals of aerodynamics chapter 6
Fundamentals of aerodynamics chapter 6
 
Lecture 6 ce 1005 Irrigation and flood control by Rabindra Ranjan Saha, PEn...
Lecture 6   ce 1005 Irrigation and flood control by Rabindra Ranjan Saha, PEn...Lecture 6   ce 1005 Irrigation and flood control by Rabindra Ranjan Saha, PEn...
Lecture 6 ce 1005 Irrigation and flood control by Rabindra Ranjan Saha, PEn...
 
Wavelet estimation for a multidimensional acoustic or elastic earth- Arthur W...
Wavelet estimation for a multidimensional acoustic or elastic earth- Arthur W...Wavelet estimation for a multidimensional acoustic or elastic earth- Arthur W...
Wavelet estimation for a multidimensional acoustic or elastic earth- Arthur W...
 
Synthetic unit hydrograph
Synthetic unit hydrographSynthetic unit hydrograph
Synthetic unit hydrograph
 
Raqrs06 Borel Talk 8 15 06 White
Raqrs06 Borel Talk 8 15 06 WhiteRaqrs06 Borel Talk 8 15 06 White
Raqrs06 Borel Talk 8 15 06 White
 
Floods
FloodsFloods
Floods
 
Class lectures on hydrology by Rabindra Ranjan Saha, Lecture 8
Class lectures on hydrology by Rabindra Ranjan Saha, Lecture 8Class lectures on hydrology by Rabindra Ranjan Saha, Lecture 8
Class lectures on hydrology by Rabindra Ranjan Saha, Lecture 8
 
K12020 VARUN RAC PPT
K12020 VARUN RAC PPTK12020 VARUN RAC PPT
K12020 VARUN RAC PPT
 
Presentation 7 a ce 904 Hydrology by Rabindra Ranjan Saha, PEng, Associate P...
Presentation  7 a ce 904 Hydrology by Rabindra Ranjan Saha, PEng, Associate P...Presentation  7 a ce 904 Hydrology by Rabindra Ranjan Saha, PEng, Associate P...
Presentation 7 a ce 904 Hydrology by Rabindra Ranjan Saha, PEng, Associate P...
 
Precipitation and its estimation
Precipitation and its estimationPrecipitation and its estimation
Precipitation and its estimation
 

Similar to C program for discharge

Similar to C program for discharge (20)

GRP-2_Simpsons-Rule_SEAM-6-report.pptx
GRP-2_Simpsons-Rule_SEAM-6-report.pptxGRP-2_Simpsons-Rule_SEAM-6-report.pptx
GRP-2_Simpsons-Rule_SEAM-6-report.pptx
 
Hydrology (Estimation of peak flood discharge)
Hydrology (Estimation of peak flood discharge)Hydrology (Estimation of peak flood discharge)
Hydrology (Estimation of peak flood discharge)
 
CFD Final Report-2
CFD Final Report-2CFD Final Report-2
CFD Final Report-2
 
Graphing translations of trig functions
Graphing translations of trig functionsGraphing translations of trig functions
Graphing translations of trig functions
 
Integration
IntegrationIntegration
Integration
 
Airport drainage
Airport drainageAirport drainage
Airport drainage
 
EDP.pptx
EDP.pptxEDP.pptx
EDP.pptx
 
Scales
ScalesScales
Scales
 
Channel Estimation
Channel EstimationChannel Estimation
Channel Estimation
 
Duct design
Duct designDuct design
Duct design
 
construction of ellipse and scales
construction of ellipse and scalesconstruction of ellipse and scales
construction of ellipse and scales
 
Hydrostatics 1 n 2
Hydrostatics 1 n 2 Hydrostatics 1 n 2
Hydrostatics 1 n 2
 
Airport drainage
Airport drainageAirport drainage
Airport drainage
 
Scale and its types
Scale and its types Scale and its types
Scale and its types
 
Hooman_Rezaei_asme_paper2
Hooman_Rezaei_asme_paper2Hooman_Rezaei_asme_paper2
Hooman_Rezaei_asme_paper2
 
Lar calc10 ch04_sec2
Lar calc10 ch04_sec2Lar calc10 ch04_sec2
Lar calc10 ch04_sec2
 
EXPONENTIAL CURVES.pptx
EXPONENTIAL CURVES.pptxEXPONENTIAL CURVES.pptx
EXPONENTIAL CURVES.pptx
 
runoff.pdf
runoff.pdfrunoff.pdf
runoff.pdf
 
LAB MANUAL contouring by indirect method . dce: fet: iiui
LAB MANUAL contouring by indirect method . dce: fet: iiuiLAB MANUAL contouring by indirect method . dce: fet: iiui
LAB MANUAL contouring by indirect method . dce: fet: iiui
 
Scales - ENGINEERING DRAWING/GRAPHICS
Scales - ENGINEERING DRAWING/GRAPHICSScales - ENGINEERING DRAWING/GRAPHICS
Scales - ENGINEERING DRAWING/GRAPHICS
 

More from PRAJWAL SHRIRAO

Planing for water conservation structures
Planing for water conservation structuresPlaning for water conservation structures
Planing for water conservation structuresPRAJWAL SHRIRAO
 
Surveying,ADVANCE EQUIPMENT IN SURVEY
Surveying,ADVANCE EQUIPMENT  IN SURVEYSurveying,ADVANCE EQUIPMENT  IN SURVEY
Surveying,ADVANCE EQUIPMENT IN SURVEYPRAJWAL SHRIRAO
 
Rehabilitation of structures,Method of Demolition of Structures
Rehabilitation of  structures,Method of Demolition of  StructuresRehabilitation of  structures,Method of Demolition of  Structures
Rehabilitation of structures,Method of Demolition of StructuresPRAJWAL SHRIRAO
 
Types of organization structures
Types of organization structuresTypes of organization structures
Types of organization structuresPRAJWAL SHRIRAO
 
Principle stresses and planes
Principle stresses and planesPrinciple stresses and planes
Principle stresses and planesPRAJWAL SHRIRAO
 

More from PRAJWAL SHRIRAO (6)

Planing for water conservation structures
Planing for water conservation structuresPlaning for water conservation structures
Planing for water conservation structures
 
Surveying,ADVANCE EQUIPMENT IN SURVEY
Surveying,ADVANCE EQUIPMENT  IN SURVEYSurveying,ADVANCE EQUIPMENT  IN SURVEY
Surveying,ADVANCE EQUIPMENT IN SURVEY
 
Rehabilitation of structures,Method of Demolition of Structures
Rehabilitation of  structures,Method of Demolition of  StructuresRehabilitation of  structures,Method of Demolition of  Structures
Rehabilitation of structures,Method of Demolition of Structures
 
Domestic flights
Domestic flightsDomestic flights
Domestic flights
 
Types of organization structures
Types of organization structuresTypes of organization structures
Types of organization structures
 
Principle stresses and planes
Principle stresses and planesPrinciple stresses and planes
Principle stresses and planes
 

Recently uploaded

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
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
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
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
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
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
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
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
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 
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
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 

Recently uploaded (20)

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
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...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
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Ữ Â...
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
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...
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
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
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
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.
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 

C program for discharge

  • 1. 3/8th C PROGRAM TO FIND OUT DISCHARGE BY USING SIMPON’S RULE
  • 2. Discharge by Simpson’s 3/8th Rule Statement :- It states that, sum of first and last ordinates has to be done. Add twice the sum of remaining odd ordinates and four times the sum of remaining even ordinates.Multiply to this total sum by 1/3rd of the common distance between the ordinates which gives the required area. Application :- A greater accuracy in the computation of discharge may be obtained by using simpson’s rule . In this method the whole river width is divided into an even number of equal segments so That there are odd number of depths taken at the end of each segments as shown in figure. Then area of flow,
  • 3. C program to find out Discharge by Simpson’s 3/8th Rule Description - : To find Discharge by Simpson’s 3/8th Rule contain formula, 1) Area -: 2) Discharge -: Q = AV Where, A = Area of whole river h = length of each segment fo , fn = depth taken at end of End section of segment f1,f2,f3, … = depth at middle section Q = discharge V = velocity of flow
  • 4. PROGRAM -: #include<stdio.h> #include<conio.h> #include<math.h> int main(); { int h=6; float f(x0),f(x1),f(x2),f(x3),f(x4),f(xn),Area; printf("enter the value of area of respective depth"); h= (b-a)/n; f(x0)=1.2; f(x1)=1.47; f(x2)=1.56; f(x3)=1.68; f(x4)=1.72; f(xn)=1.86; Area=(3h/8)*(f(x0)+f(xn)+2*(f(x1)+f(x3))+3*(f(x2)+f(x4))); printf("The capacity of reservoir = %f",Area); getch(); }