Download - Document1

Transcript

1. Write the program to calculate the discharge capacity of pipe and channel. The width and the depth of channel and radius of the pipe is to be received from user and velocity of channel and pipe is to be assumed as 1.5 m/s and 3.5 m/s resp.PROGRAM:

#include

#include

#include

int main()

{

float wid,dep,r;

float areap,areac,disp,disc;

float vp=3.5,vc=1.5;

coutwid;

coutdep;

coutr;

areac=wid*dep;

areap=3.14*pow(r,2);

disc=areac*vc;

disp=areap*vp;

cout


Top Related