473,396 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Finding minimum and mean temps from file.

I am not very good in C++, however I have this task and I really need your help here. I am using Borland C++ 4.51 compiler. I am stuck, and I dont have any lead to do this.. Here is the thing:

The following data are obtained from the file ‘klwea.txt’. It contains the twenty-four hourly average air temperatures for the months of January through December, recorded at KLIA airport.

23.0 22.7 23.7 23.9 24.1 24.9 23.9 23.7 23.9 23.9 24.2 23.7
22.9 22.4 23.4 23.8 23.9 24.7 23.7 23.5 23.7 23.7 24.1 23.5
22.8 22.2 23.3 23.6 23.7 24.5 23.4 23.3 23.5 23.6 23.9 23.5
22.6 22.0 23.0 23.5 23.5 24.3 23.2 23.1 23.3 23.4 23.7 23.4
22.5 21.8 22.9 23.3 23.4 24.2 23.0 23.0 23.2 23.3 23.6 23.3
22.5 21.6 22.7 23.2 23.3 24.0 23.0 22.9 23.1 23.1 23.5 23.3
22.6 21.9 23.2 23.8 24.1 24.6 23.5 23.3 23.6 23.9 24.3 23.9
24.1 24.3 25.4 26.0 26.3 26.8 25.5 25.2 25.5 26.3 26.1 25.3
25.7 27.0 28.1 28.5 28.6 28.8 27.8 27.7 27.9 28.8 28.1 27.2
26.6 28.9 29.7 30.0 29.9 30.2 29.2 29.0 29.5 30.1 29.2 28.2
27.5 30.1 30.7 31.1 30.5 31.1 29.6 29.3 30.1 30.7 30.0 29.0
27.9 31.0 31.4 31.3 30.4 31.3 30.0 29.7 30.3 30.6 30.5 29.7
27.9 31.6 32.0 31.3 30.2 31.3 30.2 29.5 29.8 29.7 30.4 29.7
27.9 31.9 31.4 30.7 29.3 31.0 29.6 28.7 29.7 29.2 30.5 29.1
27.7 31.7 29.6 29.9 29.1 30.6 29.0 28.2 29.4 28.7 29.7 28.6
27.3 31.0 28.9 28.5 28.5 30.1 28.7 27.9 28.7 27.7 29.1 28.5
26.7 29.3 28.0 27.4 27.8 29.2 28.2 27.3 27.9 26.9 28.2 27.4
25.8 27.7 27.1 26.5 26.9 28.3 27.5 26.7 27.1 26.2 27.1 26.4
25.0 26.4 26.2 25.8 26.2 27.4 26.5 25.8 26.1 25.6 26.3 25.6
24.5 25.4 25.7 25.3 25.6 26.7 25.8 25.2 25.5 25.2 25.7 25.0
24.1 24.6 25.2 24.9 25.3 26.3 25.2 24.8 25.1 24.8 25.3 24.6
23.7 24.0 24.7 24.6 24.9 25.8 24.8 24.5 24.7 24.5 25.1 24.4
23.4 23.5 24.4 24.3 24.6 25.5 24.4 24.2 24.3 24.3 24.8 24.1
23.2 23.0 24.0 24.1 24.4 25.1 24.1 24.0 24.1 24.1 24.5 23.9

Note: Collum = Hours.
Row = Months
eg. First row, first collum = January, 1 am (temperature is 23 Celcius)., Fourth row seventh collum = April, 7 am (temperature is 23.8 Celcius)



Wthe following outputs to an output file ‘klwea.out’

(a) Monthly minimum and maximum air temperatures, and their time of occurrence.
(b) Monthly mean daily air temperatures.



Please.. I need this FAST..
Oct 23 '07 #1
8 1625
gpraghuram
1,275 Expert 1GB
I am not very good in C++, however I have this task and I really need your help here. I am using Borland C++ 4.51 compiler. I am stuck, and I dont have any lead to do this.. Here is the thing:

The following data are obtained from the file ‘klwea.txt’. It contains the twenty-four hourly average air temperatures for the months of January through December, recorded at KLIA airport.

23.0 22.7 23.7 23.9 24.1 24.9 23.9 23.7 23.9 23.9 24.2 23.7
22.9 22.4 23.4 23.8 23.9 24.7 23.7 23.5 23.7 23.7 24.1 23.5
22.8 22.2 23.3 23.6 23.7 24.5 23.4 23.3 23.5 23.6 23.9 23.5
22.6 22.0 23.0 23.5 23.5 24.3 23.2 23.1 23.3 23.4 23.7 23.4
22.5 21.8 22.9 23.3 23.4 24.2 23.0 23.0 23.2 23.3 23.6 23.3
22.5 21.6 22.7 23.2 23.3 24.0 23.0 22.9 23.1 23.1 23.5 23.3
22.6 21.9 23.2 23.8 24.1 24.6 23.5 23.3 23.6 23.9 24.3 23.9
24.1 24.3 25.4 26.0 26.3 26.8 25.5 25.2 25.5 26.3 26.1 25.3
25.7 27.0 28.1 28.5 28.6 28.8 27.8 27.7 27.9 28.8 28.1 27.2
26.6 28.9 29.7 30.0 29.9 30.2 29.2 29.0 29.5 30.1 29.2 28.2
27.5 30.1 30.7 31.1 30.5 31.1 29.6 29.3 30.1 30.7 30.0 29.0
27.9 31.0 31.4 31.3 30.4 31.3 30.0 29.7 30.3 30.6 30.5 29.7
27.9 31.6 32.0 31.3 30.2 31.3 30.2 29.5 29.8 29.7 30.4 29.7
27.9 31.9 31.4 30.7 29.3 31.0 29.6 28.7 29.7 29.2 30.5 29.1
27.7 31.7 29.6 29.9 29.1 30.6 29.0 28.2 29.4 28.7 29.7 28.6
27.3 31.0 28.9 28.5 28.5 30.1 28.7 27.9 28.7 27.7 29.1 28.5
26.7 29.3 28.0 27.4 27.8 29.2 28.2 27.3 27.9 26.9 28.2 27.4
25.8 27.7 27.1 26.5 26.9 28.3 27.5 26.7 27.1 26.2 27.1 26.4
25.0 26.4 26.2 25.8 26.2 27.4 26.5 25.8 26.1 25.6 26.3 25.6
24.5 25.4 25.7 25.3 25.6 26.7 25.8 25.2 25.5 25.2 25.7 25.0
24.1 24.6 25.2 24.9 25.3 26.3 25.2 24.8 25.1 24.8 25.3 24.6
23.7 24.0 24.7 24.6 24.9 25.8 24.8 24.5 24.7 24.5 25.1 24.4
23.4 23.5 24.4 24.3 24.6 25.5 24.4 24.2 24.3 24.3 24.8 24.1
23.2 23.0 24.0 24.1 24.4 25.1 24.1 24.0 24.1 24.1 24.5 23.9

Note: Collum = Hours.
Row = Months
eg. First row, first collum = January, 1 am (temperature is 23 Celcius)., Fourth row seventh collum = April, 7 am (temperature is 23.8 Celcius)



Wthe following outputs to an output file ‘klwea.out’

(a) Monthly minimum and maximum air temperatures, and their time of occurrence.
(b) Monthly mean daily air temperatures.



Please.. I need this FAST..

Hi,
Declare a two dimensional array like int arr[12][12]
Read from the file element one by one and start putting the value into the array.
For every row read increment the first dimension.
After filling take one dimension and calculate the min and max and the mean(This will be an easy task).
As you are good in c++ you can easily write the code using the idea above.
Raghuram
Oct 23 '07 #2
amitpatel66
2,367 Expert 2GB
I am not very good in C++, however I have this task and I really need your help here. I am using Borland C++ 4.51 compiler. I am stuck, and I dont have any lead to do this.. Here is the thing:

The following data are obtained from the file ‘klwea.txt’. It contains the twenty-four hourly average air temperatures for the months of January through December, recorded at KLIA airport.

23.0 22.7 23.7 23.9 24.1 24.9 23.9 23.7 23.9 23.9 24.2 23.7
22.9 22.4 23.4 23.8 23.9 24.7 23.7 23.5 23.7 23.7 24.1 23.5
22.8 22.2 23.3 23.6 23.7 24.5 23.4 23.3 23.5 23.6 23.9 23.5
22.6 22.0 23.0 23.5 23.5 24.3 23.2 23.1 23.3 23.4 23.7 23.4
22.5 21.8 22.9 23.3 23.4 24.2 23.0 23.0 23.2 23.3 23.6 23.3
22.5 21.6 22.7 23.2 23.3 24.0 23.0 22.9 23.1 23.1 23.5 23.3
22.6 21.9 23.2 23.8 24.1 24.6 23.5 23.3 23.6 23.9 24.3 23.9
24.1 24.3 25.4 26.0 26.3 26.8 25.5 25.2 25.5 26.3 26.1 25.3
25.7 27.0 28.1 28.5 28.6 28.8 27.8 27.7 27.9 28.8 28.1 27.2
26.6 28.9 29.7 30.0 29.9 30.2 29.2 29.0 29.5 30.1 29.2 28.2
27.5 30.1 30.7 31.1 30.5 31.1 29.6 29.3 30.1 30.7 30.0 29.0
27.9 31.0 31.4 31.3 30.4 31.3 30.0 29.7 30.3 30.6 30.5 29.7
27.9 31.6 32.0 31.3 30.2 31.3 30.2 29.5 29.8 29.7 30.4 29.7
27.9 31.9 31.4 30.7 29.3 31.0 29.6 28.7 29.7 29.2 30.5 29.1
27.7 31.7 29.6 29.9 29.1 30.6 29.0 28.2 29.4 28.7 29.7 28.6
27.3 31.0 28.9 28.5 28.5 30.1 28.7 27.9 28.7 27.7 29.1 28.5
26.7 29.3 28.0 27.4 27.8 29.2 28.2 27.3 27.9 26.9 28.2 27.4
25.8 27.7 27.1 26.5 26.9 28.3 27.5 26.7 27.1 26.2 27.1 26.4
25.0 26.4 26.2 25.8 26.2 27.4 26.5 25.8 26.1 25.6 26.3 25.6
24.5 25.4 25.7 25.3 25.6 26.7 25.8 25.2 25.5 25.2 25.7 25.0
24.1 24.6 25.2 24.9 25.3 26.3 25.2 24.8 25.1 24.8 25.3 24.6
23.7 24.0 24.7 24.6 24.9 25.8 24.8 24.5 24.7 24.5 25.1 24.4
23.4 23.5 24.4 24.3 24.6 25.5 24.4 24.2 24.3 24.3 24.8 24.1
23.2 23.0 24.0 24.1 24.4 25.1 24.1 24.0 24.1 24.1 24.5 23.9

Note: Collum = Hours.
Row = Months
eg. First row, first collum = January, 1 am (temperature is 23 Celcius)., Fourth row seventh collum = April, 7 am (temperature is 23.8 Celcius)



Wthe following outputs to an output file ‘klwea.out’

(a) Monthly minimum and maximum air temperatures, and their time of occurrence.
(b) Monthly mean daily air temperatures.



Please.. I need this FAST..
Have 12 array variables each storing data for each month.
U need to read the data from the file column wise with first column going into first array variable and so on.
Once the data is fetched, finding hte min,max and the mean for each month would become easier.
Oct 23 '07 #3
I dont remember I am good in C++ .. FACT is, I am totally suck in this.. And to make it worst, I dont even understand what are u guys talking about .. :-(
Oct 23 '07 #4
sicarie
4,677 Expert Mod 4TB
Then I'd recommend starting here. Work through each of those tutorials, and then go back and read those posts, see if they make sense.

Another option (if this is a class assignment) is to research the individual terms that don't make sense to you, and build a better idea of what they are suggesting. However, if this is a class assignment, you should re-read what your instructor gave as that usually relates to the assignment.
Oct 23 '07 #5
Hi everyone..

Too bad this is not a class assignment. It is just a project that someone suggested to me just to make it 'clear' for everyone who view my major : building the airport. Anyway, let us just forget about my major and get back to this problem.

So, here is what I figure out myself. I started with this file as klwea.txt and have these in the file:

1 2 3 4 5 6 7 8 9 10 11 12
1 23.0 22.7 23.7 23.9 24.1 24.9 23.9 23.7 23.9 23.9 24.2 23.7
2 22.9 22.4 23.4 23.8 23.9 24.7 23.7 23.5 23.7 23.7 24.1 23.5
3 22.8 22.2 23.3 23.6 23.7 24.5 23.4 23.3 23.5 23.6 23.9 23.5
4 22.6 22.0 23.0 23.5 23.5 24.3 23.2 23.1 23.3 23.4 23.7 23.4
5 22.5 21.8 22.9 23.3 23.4 24.2 23.0 23.0 23.2 23.3 23.6 23.3
6 22.5 21.6 22.7 23.2 23.3 24.0 23.0 22.9 23.1 23.1 23.5 23.3
7 22.6 21.9 23.2 23.8 24.1 24.6 23.5 23.3 23.6 23.9 24.3 23.9
8 24.1 24.3 25.4 26.0 26.3 26.8 25.5 25.2 25.5 26.3 26.1 25.3
9 25.7 27.0 28.1 28.5 28.6 28.8 27.8 27.7 27.9 28.8 28.1 27.2
10 26.6 28.9 29.7 30.0 29.9 30.2 29.2 29.0 29.5 30.1 29.2 28.2
11 27.5 30.1 30.7 31.1 30.5 31.1 29.6 29.3 30.1 30.7 30.0 29.0
12 27.9 31.0 31.4 31.3 30.4 31.3 30.0 29.7 30.3 30.6 30.5 29.7
13 27.9 31.6 32.0 31.3 30.2 31.3 30.2 29.5 29.8 29.7 30.4 29.7
14 27.9 31.9 31.4 30.7 29.3 31.0 29.6 28.7 29.7 29.2 30.5 29.1
15 27.7 31.7 29.6 29.9 29.1 30.6 29.0 28.2 29.4 28.7 29.7 28.6
16 27.3 31.0 28.9 28.5 28.5 30.1 28.7 27.9 28.7 27.7 29.1 28.5
17 26.7 29.3 28.0 27.4 27.8 29.2 28.2 27.3 27.9 26.9 28.2 27.4
18 25.8 27.7 27.1 26.5 26.9 28.3 27.5 26.7 27.1 26.2 27.1 26.4
19 25.0 26.4 26.2 25.8 26.2 27.4 26.5 25.8 26.1 25.6 26.3 25.6
20 24.5 25.4 25.7 25.3 25.6 26.7 25.8 25.2 25.5 25.2 25.7 25.0
21 24.1 24.6 25.2 24.9 25.3 26.3 25.2 24.8 25.1 24.8 25.3 24.6
22 23.7 24.0 24.7 24.6 24.9 25.8 24.8 24.5 24.7 24.5 25.1 24.4
23 23.4 23.5 24.4 24.3 24.6 25.5 24.4 24.2 24.3 24.3 24.8 24.1
24 23.2 23.0 24.0 24.1 24.4 25.1 24.1 24.0 24.1 24.1 24.5 23.9

Please note that the first line is month (it has 12 months) and the first row is time (it has 24 hours). And this is my progress:

Expand|Select|Wrap|Line Numbers
  1. #include <iostream.h>
  2. #include <fstream.h>
  3.  
  4. int main()
  5. {
  6. ifstream input;
  7. int i, j;
  8. double num[25][13];
  9. int count=1;
  10.  
  11.  
  12. input.open("klwea.txt");
  13.  
  14. if(!input)
  15. cout<<"Error\n";
  16.  
  17. else          // This part will display the whole value of the klwea.txt
  18. {
  19.  
  20.     for (j=1;j<13;j++)
  21.     {
  22.     input>>num[0][j];
  23.     cout<<"num[0]["<<j<<"]="<<num[0][j]<<"    "<<endl;
  24.     }
  25.  
  26.     for (i=1;i<25;i++)
  27.     {
  28.     for (j=0;j<13;j++)
  29.     {
  30.     input>>num[i][j];
  31.     cout<<"num["<<i<<"]["<<j<<"]="<<num[i][j]<<"    "<<endl;
  32.     }
  33.     }
  34. }
  35. return 0;
  36. }
So, whats next?? Anyone can give me any idea or help me doing this..? Thanks anyway for reading..


Million thanks to you,
n30810c377.
Oct 23 '07 #6
Here is the whole code that I FINALLY FIGURED OUT BY MYSELF..

Sicarie

Expand|Select|Wrap|Line Numbers
  1. #include <iostream.h>
  2. #include<iomanip.h>
  3. #include <fstream.h>
  4.  
  5. int main()
  6. {
  7. ifstream input;
  8. ofstream output;
  9. int i, j;
  10. double highest,lowest,mean,total,Less;
  11. double num[25][13];
  12. int count=1;
  13. char months[12][12]={"January  ", "February", "March    ",
  14.                                             "April    ", "May     ", "June     ",
  15.                                             "July     ", "August  ", "september",
  16.                                             "October  ", "November", "December "};
  17.  
  18.  
  19. input.open("klwea.txt");
  20. output.open("klwea.out");
  21. output<<setiosflags(ios::fixed)<<setprecision(1);
  22. if(!input)
  23. {
  24.     cout<<"Error!!\n";
  25.     cout<<"The fail are not found.\n";
  26.     cout<<endl;
  27.    return 0;
  28. }
  29.  
  30. else          // This part will process the whole value of the klwea.txt
  31.  
  32.  
  33. {
  34.  
  35.     for (j=1;j<13;j++)
  36.     {
  37.     input>>num[0][j];
  38.     }
  39.  
  40.     for (i=1;i<25;i++)
  41.     {
  42.     for (j=0;j<13;j++)
  43.     {
  44.     input>>num[i][j];
  45.     }
  46.     }
  47.  
  48.     input.close();
  49.     output <<"\n********************************* MENU **************************************\n\n";
  50.   //for the MAXIMUM  air temperature
  51.     output <<"\n\t\t*THE MONTHLY MAXIMUM AIR TEMPERATURE*\n";
  52.     output <<"Month\t\t Maximum Temperature(Celcius)\t\t";
  53.     output <<"Time of Occurrence\n";
  54.     output  <<"__________________________________________________________________________\n";
  55.  
  56.  
  57.     for (j=1;j<13;j++)
  58.     {
  59.     highest=num[1][j];
  60.     for (i=1;i<25;i++)
  61.     {
  62.     if (num[i][j]>highest)
  63.     highest=num[i][j];
  64.     }
  65.     output<<months[j-1]<< "\t\t\t" <<highest<<"\t\t\t";
  66.  
  67.  
  68.  
  69.     for(i=0;i<25;i++)
  70.  
  71.     if(num[i][j]==highest)
  72.     output<<i<<"   ";
  73.     output<<endl;
  74.     }}//for the MINIMUM  air temperature
  75.     output <<"\n\t\t*THE MONTHLY MINIMUM AIR TEMPERATURE*\n";
  76.     output <<"Month\t\t Minimum Temperature(Celcius)\t\t";
  77.     output <<"Time of Occurrence\n";
  78.     output  <<"__________________________________________________________________________\n";
  79.  
  80.  
  81.     for (j=1;j<13;j++)
  82.     {
  83.     lowest=num[1][j];
  84.     for (i=1;i<25;i++)
  85.     {
  86.     if (num[i][j]<lowest)
  87.     lowest=num[i][j];
  88.     }
  89.     output<<months[j-1]<< "\t\t\t" <<lowest<<"\t\t\t\t";
  90.  
  91.  
  92.  
  93.     for(i=0;i<25;i++)
  94.  
  95.     if(num[i][j]==lowest)
  96.     output<<i<<"   ";
  97.     output<<endl;
  98.     }
  99.  
  100.  
  101.     //for MEAN daily air temperature
  102.     output <<"\n\t\t*THE MONTHLY MEAN DAILY AIR TEMPERATURES*\n";
  103.     output <<"Month\t\t\t\tMean Daily Air Temperature(Celsius)\n";
  104.     output <<"__________________________________________________________________________\n";
  105.  
  106.  
  107.     for(j=1;j<13;j++)
  108.     {
  109.         total = 0;
  110.         for(i=1;i<25;i++)
  111.         {
  112.                 total += num[i][j];
  113.         }
  114.     Less=total;
  115.     mean=Less/24;
  116.     output<<months[j-1]<<"\t\t\t\t\t"<<mean<<endl;
  117.  
  118.     }
  119.     if(input)
  120.     {
  121.     cout <<"Done.\n";
  122.     cout <<"Success..!! The Data has been write to 'klwea.out' file.";
  123.     return 0;
  124.     }
  125.     }
And for the text file, please copy this and have this as klwea.txt :

Expand|Select|Wrap|Line Numbers
  1.    1    2    3    4    5    6    7    8    9    10   11   12
  2. 1  23.0 22.7 23.7 23.9 24.1 24.9 23.9 23.7 23.9 23.9 24.2 23.7
  3. 2  22.9 22.4 23.4 23.8 23.9 24.7 23.7 23.5 23.7 23.7 24.1 23.5
  4. 3  22.8 22.2 23.3 23.6 23.7 24.5 23.4 23.3 23.5 23.6 23.9 23.5
  5. 4  22.6 22.0 23.0 23.5 23.5 24.3 23.2 23.1 23.3 23.4 23.7 23.4
  6. 5  22.5 21.8 22.9 23.3 23.4 24.2 23.0 23.0 23.2 23.3 23.6 23.3
  7. 6  22.5 21.6 22.7 23.2 23.3 24.0 23.0 22.9 23.1 23.1 23.5 23.3
  8. 7  22.6 21.9 23.2 23.8 24.1 24.6 23.5 23.3 23.6 23.9 24.3 23.9
  9. 8  24.1 24.3 25.4 26.0 26.3 26.8 25.5 25.2 25.5 26.3 26.1 25.3
  10. 9  25.7 27.0 28.1 28.5 28.6 28.8 27.8 27.7 27.9 28.8 28.1 27.2
  11. 10 26.6 28.9 29.7 30.0 29.9 30.2 29.2 29.0 29.5 30.1 29.2 28.2
  12. 11 27.5 30.1 30.7 31.1 30.5 31.1 29.6 29.3 30.1 30.7 30.0 29.0
  13. 12 27.9 31.0 31.4 31.3 30.4 31.3 30.0 29.7 30.3 30.6 30.5 29.7
  14. 13 27.9 31.6 32.0 31.3 30.2 31.3 30.2 29.5 29.8 29.7 30.4 29.7
  15. 14 27.9 31.9 31.4 30.7 29.3 31.0 29.6 28.7 29.7 29.2 30.5 29.1
  16. 15 27.7 31.7 29.6 29.9 29.1 30.6 29.0 28.2 29.4 28.7 29.7 28.6
  17. 16 27.3 31.0 28.9 28.5 28.5 30.1 28.7 27.9 28.7 27.7 29.1 28.5
  18. 17 26.7 29.3 28.0 27.4 27.8 29.2 28.2 27.3 27.9 26.9 28.2 27.4
  19. 18 25.8 27.7 27.1 26.5 26.9 28.3 27.5 26.7 27.1 26.2 27.1 26.4
  20. 19 25.0 26.4 26.2 25.8 26.2 27.4 26.5 25.8 26.1 25.6 26.3 25.6
  21. 20 24.5 25.4 25.7 25.3 25.6 26.7 25.8 25.2 25.5 25.2 25.7 25.0
  22. 21 24.1 24.6 25.2 24.9 25.3 26.3 25.2 24.8 25.1 24.8 25.3 24.6
  23. 22 23.7 24.0 24.7 24.6 24.9 25.8 24.8 24.5 24.7 24.5 25.1 24.4
  24. 23 23.4 23.5 24.4 24.3 24.6 25.5 24.4 24.2 24.3 24.3 24.8 24.1
  25. 24 23.2 23.0 24.0 24.1 24.4 25.1 24.1 24.0 24.1 24.1 24.5 23.9
::Profanity deleted::
Oct 25 '07 #7
gpraghuram
1,275 Expert 1GB
Hi,
You asked for help and you are also scolding the guy who helped you.
What sort of attitude you have?
The way you have replied is very bad.

For Forum Leaders,
Some action has to be done for this.

Raghuram
Oct 25 '07 #8
sicarie
4,677 Expert Mod 4TB
n30810c377-

Your last response above violated our Posting Guidelines, specifically the swearing and personal attacks section posted. Due to the nature of your post, and theScripts' No Abuse Policy, you have been permanently banned from this site.

sicarie
Oct 25 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Adam H. Peterson | last post by:
Is there a standard way to find the minimum value for a data type? I'm thinking along the lines of std::numeric_limits<T>::min(). But that doesn't work for floating point types. I can't use...
4
by: Porthos | last post by:
Hi All, I'm trying to find the minimum value of a set of data (see below). I want to compare the lengths of these attribute values and display the lowest one. This would be simple if I could...
1
by: Sudhakar Doddi | last post by:
Greetings, I am a novice in Javascript and I am not able to succeed finding right regular expression for my requirement. Input in HTML form should be in the format of row.rack.bin i.e three...
2
by: optimistx | last post by:
When we click an image, we get the coordinates x and y in the event handler, like this <script type="text/javascript"> function fun2(evnt){ var e=evnt; if (e==undefined){e=event;} var x=e.x...
3
by: D Denholm | last post by:
I am a Access newbie... Hopefully somebody can help me figure this out. I have a database that looks like: Asset Economic Minimum ----- ---------------- 10555 ...
2
by: slickn_sly | last post by:
int find_index_of_min( float num, int arraySize ) { int index, min; min = 0; for( index = 1; index < arraySize; index++ ) { if( num > num ) { min = index;
6
by: Derek Peschel | last post by:
Here are two functions. def invert_dict_to_lists(dict): lists = {} for key in dict: value = dict if not value in lists: lists = else: lists.append(key)
25
by: Subra | last post by:
Hi, What is the best way to find the 1000 largest numbers from the file having hell lot of entries ? Can you please help me to find out the way ? Do I need to go for B+ trees ?? Please help,...
1
by: jboswell | last post by:
Here's where I stand. I have two queries. The first calculates a 7-day moving average (Avg7Day) for every day. Here's how it works: SELECT T1.SITE_NO, T1.DATE, T1.FLOW, Avg(T2.FLOW) AS Avg7Day,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.