Answer:
The corrected code is as follows:
import java.util.Scanner;
public class U2_L4_Activity_Two{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String str1 = scan.nextLine();
String str2 = str1;
str1 = str1.toUpperCase();
System.out.println(str1);
System.out.println(str2);
}
}
Explanation:
This corrects the scanner object
Scanner scan = new Scanner(System.in);
This line is correct
String str1 = scan.nextLine();
This copies str1 to str2
String str2 = str1;
This converts str1 to upper case
str1 = str1.toUpperCase();
This prints str1
System.out.println(str1);
This prints str2
System.out.println(str2);
Answer:
The code will produce:-
2.4
Explanation:
In this code the result of the arithmetic operation is stored in the variable c.On evaluating the expression it divides 12.0 by 5 which results in 2.4 and it is stored in float variable c.Then it is printed on the screen using print statement.Since the c is double variable so the result will be a decimal number.
Hence the answer is 4.
A Deceleration device.
A rope, wire rope, or strap with connectors at each end for connecting the 5 point body harness to a lifeline, or anchorage.
Look under OSHA Flashcards on Quizlet and..
OSHA: Fall Protection in Construction, Subpart M and just past that area in the document.
This is from that document on page 13 and 14:
Fall Restraint Systems: While fall restraint systems are not
mentioned in Subpart M, OSHA
recognizes a fall restraint system as
a means of prevention. The system,
if properly used, tethers a worker
in a manner that will not allow a
fall of any distance. This system is
comprised of a body belt or body
harness, an anchorage, connectors,
and other necessary equipment.
Other components typically include
Photo: Skip Pennington
OCCUPATIONAL SAFETY AND HEALTH ADMINISTRATION
1 4
a lanyard, a lifeline, and other devices. For a restraint system
to work, the anchorage must be strong enough to prevent the
worker from moving past the point where the system is fully
extended, including an appropriate safety factor.
*In a November 2, 1995 interpretation letter to Mr. Dennis
Gilmore, OSHA suggested that, at a minimum, a fall restraint
system must have the capacity to withstand at least 3,000
pounds or twice the maximum expected force that is needed
to restrain the person from exposure to the fall hazard. In
determining this force, consideration should be given to
site-specific factors such as the force generated by a person
(including his/her tools, equipment, and materials) walking,
slipping, tripping, leaning, or sliding along the work surface.
The stick exerts a force on the puck; the puck exerts a force on the stick.