Answer:
import java.io.*;
import java.util.Scanner;
public class CountWordsInFile {
public static void main(String[] args) throws IOException {
Scanner keyboard = new Scanner(System.in);
System.out.print("Enter file name: ");
String fileName = keyboard.next();
File file = new File(fileName);
try {
Scanner scan = new Scanner(file);
int count = 0;
while(scan.hasNext()) {
scan.next();
count += 1;
}
scan.close();
System.out.println("Number of words: "+count);
} catch (FileNotFoundException e) {
System.out.println("File " + file.getName() + " not present ");
System.exit(0);
}
}
}
Answer: you can watch a video on how to solve this question on you tube
Answer:
Engineering Controls. The best engineering controls to prevent heat-related illness is to make the work environment cooler and to reduce manual workload with mechanization. A variety of engineering controls can reduce workers' exposure to heat: Air conditioning, Increased general ventilation
, Cooling fans
, Local exhaust ventilation at points of high heat production or moisture, Reflective shields to redirect radiant heat
, Insulation of hot surfaces Elimination of steam leaks
, Cooled seats or benches for rest breaks
, Use of mechanical equipment to reduce manual work, Misting fans that produce a spray of fine water droplets.
Hope this helped you!
Explanation: