MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / setClimateData

Method setClimateData

Lab_21/city_temperature_control.cpp:162–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160public:
161
162 void setClimateData() {
163 average = 0;
164 City::input();
165
166 cout << "Enter Humidity Degree: " << endl;
167
168 for (int i = 0; i < 12; i++) {
169 cout << i+1 << " Month: ";
170
171 cin >> cityClimateDate[i];
172
173 if (cityClimateDate[i] > 0 && cityClimateDate[i] < 500) {
174 average = average + cityClimateDate[i];
175 }
176 else {
177 cout << "Please check your input! " << endl;
178 i--; // checking and returning
179 }
180 } // for ends
181
182 }
183
184 void getClimateData() {
185

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected