The answer & explanation for this question is given in the attachment below.
Answer:
repairs are being made.
OC. Use bypass plumbing to route the incoming water around the damaged meter while repairs are made.
OD. Evacuate the workforce from the building since the lack of sanitary plumbing creates a possible health concern, then shut off water to the building for as short a time as
possible while repairs are being made.
Mark for review (Will be highlighted on the review page)
Answer:
import java.util.Scanner;
public class CountByAnything
{
public static void main (String args[])
{
int beginning = 5;
int ending = 200;
Scanner s = new Scanner(System.in);
System.out.println("Enter the value to count by:");
int valueToCount = s.nextInt();
int counter = 0;
for(int i = beginning; i <= ending; i += valueToCount)
{
System.out.print(i + " ");
if((counter+1) % 10 == 0)
System.out.println();
counter++;
}
}
}
Explanation:
- Initialize the beginning and ending.
- Loop through the value of ending variable.
- Check if numbers per line is equal to ten and Increment the counter
.