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).
Answer:
Flow rate = 86.48 gal/s
Head of water = 21.62 ft
Explanation:
Detailed explanation and calculation is shown in the image below.
Answer:
(a) Yes
(b) 102.8 ft
Explanation:
(a)First let convert mile per hour to feet per second
30 mph = 30 * 5280 / 3600 = 44 ft/s
The time it takes for this driver to decelerate comfortably to 0 speed is
t = v / a = 44 / 10 = 4.4 (s)
given that it also takes 1.5 seconds for the driver reaction, the total time she would need is 5.9 seconds. Therefore, if the yellow light was on for 4 seconds, that's not enough time and the dilemma zone would exist.
(b) At this rate the distance covered by the driver is


Since the intersection is only 60 feet wide, the dilemma zone must be
162.8 - 60 = 102.8 ft
The question is incomplete. The complete question is :
The hydrofoil boat has an A-36 steel propeller shaft that is 100 ft long. It is connected to an in-line diesel engine that delivers a maximum power of 2590 hp and causes the shaft to rotate at 1700 rpm . If the outer diameter of the shaft is 8 in. and the wall thickness is
in.
A) Determine the maximum shear stress developed in the shaft.
= ?
B) Also, what is the "wind up," or angle of twist in the shaft at full power?
= ?
Solution :
Given :
Angular speed, ω = 1700 rpm


Power 
= 1424500 ft. lb/s
Torque, 

= 8001.27 lb.ft
A). Therefore, maximum shear stress is given by :
Applying the torsion formula


= 2.93 ksi
B). Angle of twist :


= 0.08002 rad
= 4.58°
Answer:
yes
Explanation:
blueprint of the construction is a prediction of project its is slightly auto cad