Answer:
- import java.util.Scanner;
- public class TryToParseDouble {
-
- public static void main(String[] args) {
- Scanner input = new Scanner(System.in);
- double num;
-
- try{
- System.out.print("Input a number: ");
- num = Double.parseDouble(input.nextLine());
-
- }catch(NumberFormatException e){
- num = 0;
- System.out.println("Invalid input! It should be a number in double type");
- }
- System.out.println(num);
- }
- }
Explanation:
Firstly, create a Scanner object to get user input (Line 5).
Next, create a try block and prompt user to input a number and use Double.parseDouble() method to convert the input to double type in the block (Line 8-10).
Next, create a catch block to catch a NumberFormatException. In the Catch block, set the num to zero and then print out a message to inform user about the invalid input (Line 12-14).
Lastly, display the number (Line 16).
Answer:

Explanation:
given data:
height of tank = 60cm
diameter of tank =40cm
accelration = 4 m/s2
suppose x- axis - direction of motion
z -axis - vertical direction
= water surface angle with horizontal surface
accelration in x direction
accelration in z direction
slope in xz plane is



the maximum height of water surface at mid of inclination is



the maximu height of wwater to avoid spilling is

= 60 - 8.2

the height requird if no spill water is 
The type of type of building construction can include materials with no fire-resistance ratings in limited quantities is type 2.
Although many buildings appear to be similar at first appearance, their cost and durability—particularly in an emergency—are affected by the underlying materials. Building codes categorize all structures into Types 1 through 5, and each Type discloses important details like fire-resistance.
Some contemporary structures are now stronger and less expensive to construct. Engineered wood and synthetic plastics, which burn readily, cause quick collapses and present significant risks for firefighters.
Type 1 constructions, which are the most fire-resistant buildings, are made of shielded steel and concrete because they can sustain high temperatures without collapsing. Type 5 constructions, on the other hand, are the least fire-resistant since they are built of flammable materials, are lightweight, and they burn out quickly. Type 2 constructions, modern structures with metal roofs and tilt-slab or reinforced masonry walls.
To know more about fire-resistance click on the link:
brainly.com/question/14447720
#SPJ4
Question Continuation
True or False?
Answer:
False
Explanation:
Given
Columns: book_title and year_released
SQL statement: SELECT book_title, year_released FROM books GROUP BY year_released
Expected Result: To select the number of books released each year
Although the GROUP BY used in the SQL statement is meant to group rows with same values into summary rows but it's not user properly because the GROUP BY clause, as used here needs the COUNT aggregate functions to group the result-set by one or more columns.