New Member FAQ
|
Forums
|
Earn Revenue
Resources
Entrance
Ask Experts
Exam Papers
Jobs
English
Projects
Universities
Colleges
Courses
Schools
Training
My India
Members
|
Communities
|
Business Directory
|
Classifieds
|
Reviews
|
Silverlight Games
|
Peer Appraisal
|
Bookmarks
|
Polls
|
Mentors
|
Links
|
B.Tech Projects
|
Lobby
|
Gift Shop
|
Chat
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
N K Ravishanka...
(369)
Pawan Bahuguna
(259)
Lenin
(196)
Last 7 Days
Mr. Anindya
(2290)
PROSENJIT MANN...
(2016)
Pawan Bahuguna
(1505)
more...
Awards & Gifts
Online Exams
Aptitude Questions
General Aptitude Tests
Medical Entrance
Engineering Entrance
Bank Tests
TOEFL & IELTS Questions
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.
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 dey
Member Level:
Bronze
Revenue Score
:
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
Project To Check Syntax In A Given Code
Program to check whether switch at P0.28 and P0.29 of LPC2148 for toggle LED at P0.21 and P0.22
To implement Code Optimization using C++
PASS 1 OF AN TWO PASS ASSEMBLER
Java program that prompts the user for an integer and then prints out all prime numbers upto that in
Advertise Here
Contact Us
Advertise
Editors
Privacy Policy
Terms Of Use
ISC Technologies.
2006 - 2009 All Rights Reserved.