Answer:
Select * from Employees where LastName LIKE '%H%' or LastName LIKE '%A%' or LastName LIKE '%Z%' order by Hiredate(or whatever you put for your year name) desc;
Explanation:
<span>Fire extinguishers should be stored in a
boat at the engine area and near the operator. A fire extinguisher should be
put near the engine because the engine of the boat is a fire hazardous place
and this is the area where a fire could start.
The fire extinguisher should be installed properly using a mounting
bracket to hold the extinguisher in place. There are different types of
extinguishers that should be installed in the boat, these are type A, B, and C
extinguishers. Type A extinguishers can turn off the fire caused by combustible
solids like wood and paper. Type B extinguishers can turn off fire caused by
gasolines, oil, and greases. While Type C extinguishers can turn off fire
caused by an electrical problem.</span>
Answer:
- public class Main {
-
- public static void main(String[] args) {
- int myArray[] = {3, 7, 2, 5, 9,11, 24, 6, 10, 12};
- int myArray2 [] = {1, 2, 3, 4 ,5};
-
- displayValue(myArray);
- reverseDisplay(myArray);
- displaySum(myArray);
- displayLess(myArray, 10);
- displayHighAvg(myArray);
- displayBoth(myArray, myArray2);
- }
-
- public static void displayValue(int arr[]){
- for(int i = 0; i < arr.length; i++){
- System.out.print(arr[i] + " ");
- }
-
- System.out.println();
- }
-
- public static void reverseDisplay(int arr[]){
- for(int i = arr.length-1; i >= 0; i--){
- System.out.print(arr[i] + " ");
- }
-
- System.out.println();
- }
-
- public static void displaySum(int arr[]){
- int sum = 0;
- for(int i = 0; i < arr.length; i++){
- sum += arr[i];
- }
- System.out.println(sum);
- }
-
- public static void displayLess(int arr[], int limit){
-
- for(int i = 0; i < arr.length; i++){
- if(arr[i] < limit){
- System.out.print(arr[i] + " ");
- }
- }
- System.out.println();
- }
-
-
- public static void displayHighAvg(int arr[]){
- int sum = 0;
- for(int i = 0; i < arr.length; i++){
- sum += arr[i];
- }
-
- double avg = sum / arr.length;
-
- for(int i = 0; i < arr.length; i++){
- if(arr[i] > avg){
- System.out.print(arr[i] + " ");
- }
- }
- System.out.println();
- }
-
- public static void displayBoth(int arr1[], int arr2 []){
- for(int i = 0; i < arr2.length; i++){
- for(int j = 0; j < arr1.length; j++){
- if(arr1[j] == arr2[i]){
- System.out.print(arr1[j] + " ");
- }
- }
- }
- System.out.println();
- }
- }
Explanation:
There are five methods written to solve all the problems stated in the question.
Method 1 : displayValue (Line 15 - 21)
This is the method that take one input array and use the print() method to display the all the elements in the array.
Method 2: reverseDisplay (Line 23 - 26)
This method will take one input array and print the value in the reverse order. We just need to start with the last index when running the for-loop to print the value.
Method 3: displaySum (Line 31 - 37)
This method will take one input array and use a for-loop to calculate the total of the values in the array.
Method 4: displayLess (Line 39 - 47)
This method will take one two inputs, a array and a limit. We use the limit as the condition to check if any value less than the limit, then the value will only be printed.
Method 5: displayHighAvg (Line 50 - 64)
This method will take one input array and calculate the average. The average will be used to check if any element in the array higher than it, then the value will only be printed.
Method 6: displayBoth (Line 66 - 75)
This method will take two input arrays and compare both of them to find out if any value appears in both input arrays and print it out.
There's alot of information included in the MSDS sheet, for example the company who owns the acid, the composition of the ingredient, the hazards this may cause and how to stop them, first aid measures, and fire fighting measures, just to name a few. This sheet gives you all the information you need to be safe while working in the lab with different chemicals.
The correct answers are given as:
- Turning the lens dial clockwise
- Manual settings
- Tone
- File format
- JPEG or RAW
The given questions had to do with taking photos, photography, and the likes and how lenses are used to capture images, and file formats are used to select the size and quality of images.
<h3>What is Photography?</h3>
This refers to the art of taking pictures in a background in a bid to make still images.
Hence, we can see that The correct answers are given:
- Turning the lens dial clockwise
- Manual settings
- Tone
- File format
- JPEG or RAW
The given questions had to do with taking photos, photography, and the likes and how lenses are used to capture images, and file formats are used to select the size and quality of images.
Read more about photography here:
brainly.com/question/13600227
#SPJ1