Answer:
- import java.util.Scanner;
- import java.util.Random;
- public class Main {
-
- public static void main(String[] args) {
-
- Scanner input = new Scanner(System.in);
- Random rand = new Random();
-
- System.out.print("Enter number of questions you wish to practice: ");
- int n = input.nextInt();
-
- int i = 1;
- while(i <= n){
- int num1 = 1 + rand.nextInt(10);
- int num2 = 1 + rand.nextInt(10);
- int answer = num1 * num2;
- System.out.print("Question " + i + ": " + num1 + " x " + num2 + " = ");
- int response = input.nextInt();
-
- if(response == answer){
- System.out.println("Correct answer!");
- }
- else{
- System.out.println("Wrong answer. It should be " + answer);
- }
- i++;
- }
- }
- }
Explanation:
Firstly, we import Scanner and Random classes (Line 1-2) as we need to get user input for number of questions and generate random number in each question.
Next, create a Scanner and Random object (Line 7-8). Prompt user to input number of question and get the input using the Scanner object (Line 10-11).
Next create a while loop and set the condition to loop for n number of times (based on number of questions) (Line 14). In the loop, use Random object nextInt method to generate two integers between 1 -10 (Line 15-16). Prompt user to input an answer using the Scanner object (Line 18-19). If the response is matched with answer print a correct message (Line 21-22) other wise inform user they write a wrong answer and show the correct answer (Line 24-25).
Usually the first digit of the vin id’s the country it was built. So technician A would be correct. That’s usually how it is. Hope this helps. Please let me know if this is incorrect
Answer:
a)True
Explanation:
While machining of ductile material and high feed and low cutting speed welding action take place between tool material and chip material this welding action is called built up edge. Built up edge action takes place due to high temperature.
To decrease the built up edge action
1. Increase the rake angle.
2. Increase the cutting speed
3. Decrease the feed rate
4. Use cutting fluid
Answer:
The couples are not all on one axis or plane for that matter but if the A and B connector had to be specified it would go by the yz axis diagonal to the x axis with a magnitude of about 15. The direction of the axis would be pointed up to the second quadrant. Hope this was helpful
Explanation:
Answer: Um, a little feedback would help, cause I'm new but if you are thanking someone, let me know and i'll thank them for you, any other questions?
Explanation: