Program with calculate Meteorologic measurements

Hello I'm a beginner and I want to make a program with calculate Meteorologic measurements:
base classe - time( hour, minutes).
Derivative class - Meteorologic measurements: temperature, dampness, wind.

CONDITION

1. In a task must be to mould a given "real" object with a attributes as sponger class;
2.Must be compose class with a member - variables (characterizations) and a member - functions
(methods), implicational in the task;
3.The declaration and the implementation of the classes be separation in different files,
kindred to project;
4.Builder as a constructor and destructor;
5.Must be to Compose a method "Set()" for fix the characteristics of the objects;
6.Must be to Compose a method "Print()" for unsealing the characteristics of the objects;
7.Must be to Compose a methods for return of the worths of each characteristic.
Primer.
If be to declarated characteristic name, age, number the methods to be defined:
GetName(), GetAge(), GetNumber();
8.Production and eliminating of objects from the class by an source to the data of the keyboard
and / Or File and check of correctness of the input files
9.To take/bring out on the outputed screen a appropriatel message, if not thesearched object
is seen;
10.To be a demonstration work of the program with proper text exemplars;
11. To make a briefly description of the defaine classes and functions;
I must to run this program on Dev-C++
I hope that there are people who will do this task. Thanks
Last edited on
No one will do this for you.
are you crazy?
Why ?
I am sure, that here there is somebody who can solve this problem.
I could do it fine. You aren't paying though, so...
1. It doesn't make sense for temperature, humidity, or wind to be derived from time. Temperature isn't a kind of time, and neither are humidity nor wind.
2. I don't understand anything in that list above. Did you use machine translation or something?
Last edited on
I want instanse for time 8:30 min. temperature is 15; humidity is 30; wind is 7;
10:30 min. temperature is 21; humidity is 15; wind is 4;
......................................................................................
14:30 min. temperature is 27; humidity is 10; wind is 6; and so, so.
........................................................................................................

the space of the time comig in 2 hours. The temperature from 6:30 raising 1degree into a hour and, after 16:30 lower 1degree. The humidity in 6:30 from 30 lower 2 into a hour and, after 16:30 raising 2. And wind in 6:30 from 12 lower 2 into a hour and, after 16:30 raising 2. So if you can in It to show information at each time be is better.


Base class (BC) - time( hour, minutes).
Derivative class - Meteorologic measurements: temperature, humidity, wind.

This is:

class time {
≡ int h, m;
}
→→→
class weather : time

{
t, h, wind

h, m
}

[ 12 x A ]
[ 12 x B ]
int main()

{
weather A, B;

A.set ( 8:30, 15, 30, 7 );
B.set ( 10:30, 21, 15, 4 );

compare (A, B)
in 8:30 t = 15 h = 30 , w = 7





Last edited on
Hello somebody here ?
Can you help me please ?
How meny times I wait please help me
Have you done anything? Don't expect anyone to help without doing any work at all.
http://www.cplusplus.com/articles/how_to_ask/
I have a one code, but it must be variable little.
Can somebody help me please?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
class CTime

{

      public:

             CTime();

             CTime(int AHours, int AMinutes, int ASeconds);

             CTime(CTime & other); // copy konstruktor

             virtual ~CTime();

      public:

             // return code of mistake if data is invalid

             int SetHour(int AHour);

             int SetMinute(int AMnute);

             int SetSeconds(int ASeconds);

             // Return a respective value

             int GetHour();

             int GetMinute();

             int GetSeconds();

      public:

             // Bring in file outFile, if ShowPrefixes is 1 take the names of variables, or onle value them

             virtual void ShowData(FILE * outFile, int ShowPrefixes);

             // read on inFile - if ShowPrefixes is 1 and inFile == stdin (keybaord) to take urge report

             virtual int ReadData(FILE * inFile, int ShowPrefixes);          

      protected:

             int nHour;

             int nMinute;

             int nSecond;

};



class CWeather

{

      public:

            CWeather();

            CWeather(int AHours, int AMinutes, int ASeconds, float ATemperature, float AMoisture, float AWindSpeed, char * AWindDirection);

            CWeather(CWeather & other); // copy konstruktor

            ~CWeather();

      public:

            int SetTemperature(float ATemperature);

            int SetMoisture(float AMoisture);

            int SetWindSpeed(float AWindSpeed);

            int SetWindDirection(char * AWindDirection);

            

            float GetTemperature();

            float GetMoisture();

            float GetWindSpeed();

            char * GetWinDirection();

      public:

            // bring in file outFile, if ShowPrefixes is 1 bring the names of variable, or otherwise onle value their

             virtual void ShowData(FILE * outFile, int ShowPrefixes);

             // read from inFile - if ShowPrefixes is 1 and inFile == stdin (keyboard) it bring urge message

             virtual int ReadData(FILE * inFile, int ShowPrefixes);

      protected:

            float fTempereture;

            float fMoisture;

            float fWindSpeed;

            char * strWindDirection; // trqbva da se zadelq pamet v SetWindDirection i da se osvobojdava v destruktora

}
Last edited on
Topic archived. No new replies allowed.