A computer program simulating a disaster warning system generates and evaluates a random number representing a rainfall level in Tokyo, Japan.
The Rainfall Disaster Warning Simulator (RDWS) is being further developed. The main() function now looks like this:
static int rainfall;
public static void main(String[] args){
generateRainfall();
if(rainfall>100){
actionStations();
}
}
Using your own ideas, design the actionStations() helper function.
It should include some or all of the following:
iterateauto-indent variablecompile sum machine code count-controlled loop integer pseudocodesyntax