New Member FAQ | Forums | Earn Revenue


Resources Entrance Ask Experts Exam Papers Jobs English Projects Universities Colleges Courses Schools Training My India



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter



Program on Maximum Precipitation Intensity – Duration Relation:


Posted Date:     Total Responses: 0    Posted By: pankaj agarwala   Member Level: Gold   Points/Cash: 3   


#include
#include
int main()
{
clrscr();
int tr,n;
float *cr;
do
{
cout<<"enter the time interval:";
cin>> tr;
if(tr<=0)
cout<<"\n*error enter a correct value\n*\n";
}while(tr<=0);

do
{
cout<<"enter the number of value to be entered:";
cin>>n;
if(n<=0)
cout<<"\n errror enter a correct value\n\n";
}while(n<=0);
int i;
cr=new float[n+1];
cr[0]=0;
for (i=1;i {
cout<<"enter the corresponding cumulative rainfall:";
cin>>cr[i];
while(cr[i]<1)
{
cout<<"\nerror enter the correct value";
cin>>cr[i];
}
}
cout<<"\n\n\n\n\n";
cout<<"T\tCR\t";
for(i=1;i cout<<(tr*i)<<"\t";
float *ma;
ma=new float[n];
cout< for(i=0;i<(n+2);i++)
cout<<'0'<< '\t';
cout< for(i=0;i ma[i]=0;
for(int j=1;j<=n;j++)
{
cout< for(int k=1;k {
float c=cr[j]-cr[(j-k)];
if(c>ma[k-1])ma[k-1]=c;
cout< }
cout<<'\n';
}
cout<<"\n\n\n\n\n";
cout<<"Duration in minutes\n";
for(i=1;i<=n;i++)
cout< cout< cout<<"Maximum depth (mm)\n";
for(i=0;i cout< cout< cout<<"Maximum Intensity (mm/h)"< cout< for(i=0;i {
float r = ma[i]/(tr*(i+1));
cout<<(r*60)<<'\t';
}
getch();
return 0;
}


Project Feedbacks

Author: jamuna deyMember Level: BronzeRevenue Score: 1 out of 5
1)for loop is not clear
2)do must have while syntax error


Post Feedback
You must Sign In to post a feedback.
Next Project: GENERAL WORKING OF A THERMAL POWER STATION
Previous Project: Dynamic < Run Time > Memory Allocation

Return to Project Index

Post New Project


Related Projects



Advertise Here





Contact Us   Advertise   Editors    Privacy Policy    Terms Of Use   

ISC Technologies.
2006 - 2009 All Rights Reserved.