Answer:
The solution code is written in Java.
- Scanner input = new Scanner(System.in);
- System.out.print("Enter operator: ");
- String operator = input.nextLine();
- System.out.print("Enter first integer: ");
- int num1 = input.nextInt();
- System.out.print("Enter second integer: ");
- int num2 = input.nextInt();
-
-
- int result = 0;
-
- switch(operator){
- case "+":
- result = num1 + num2;
- break;
- case "-":
- result = num1 - num2;
- break;
- case "*":
- result = num1 * num2;
- break;
- case "/":
- result = num1 / num2;
- break;
- default:
- System.out.println("Invalid operator");
-
- }
-
- System.out.println(result);
Explanation:
To ask for the user input for two whole numbers and an operator, we can use Java Scanner class object. Since the input operator is a string, we can use nextLine() method to get the operator string (Line 3). We use nextInt() method to get whole number input (Line 5 & 7).
Next we use the switch keyword and pass the operator into the switch structure to determine which case statement should be executed. For example, if the input operator is "*" the statement "<em>result = num1 * num2;</em>
" will run and multiply <em>num1</em> with <em>num2. </em>
Answer:
For small temperature difference between a body and its surrounding, the rate of cooling of the body is directly proportional to the temperature difference and the surface area exposed. qf = final temperature of object
Explanation:
hope this helps you sorry if it doesn’t help you
Answer:
a fracture will occur, because the Kc value is greater than the KIC (48.9901 MPa > 40 MPa)
Explanation:
the solution is in the attached Word file
Answer:
<u><em>note:</em></u>
<u><em>solution is attached in word form due to error in mathematical equation. furthermore i also attach Screenshot of solution in word due to different version of MS Office please find the attachment</em></u>
Answer:
A magnetic field of changing intensity perpendicular to a wire will induce a voltage along the length of that wire. The amount of voltage induced depends on the rate of change of the magnetic field flux and the number of turns of wire (if coiled) exposed to the change in flux.
Please mark Brainliest!