-
Notifications
You must be signed in to change notification settings - Fork 0
/
emergencyFinal.cpp
27 lines (25 loc) · 1020 Bytes
/
emergencyFinal.cpp
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
#include <iostream>
void emergency(int i){
if (i == 1)
std::cout << "WARNING: pump capacity is too high." << std::endl;
else if (i == 2)
std::cout << "WARNING: pump capacity is too low" << std::endl;
else if (i == 3)
std::cout << "WARNING: intake temperatrue is too high" << std::endl;
else if (i == 4)
std::cout << "WARNING: intake temperatrue is too low" << std::endl;
else if (i == 5)
std::cout << "WARNING: outlet temperature is too high" << std::endl;
else if (i == 6)
std::cout << "WARNING: outlet temperature is too low" << std::endl;
else if (i == 7)
std::cout << "WARNING: pump pressure is too high" << std::endl;
else if (i == 8)
std::cout << "WARNING: pump pressure is too low" << std::endl;
else if (i == 9)
std::cout << "WARNING: reactor power is too high" << std::endl;
else if (i == 10)
std::cout << "WARNING: reactor power is too low" << std::endl;
else
std::cout << "EXCEPTION: emergency sequence incorrectly initated" << std::endl;
}