Answer:
Routine
Explanation:
Loop Structures — The Method Of Repeating Routines In Statements. Repetition of code are called loops, and they are defined as statements that execute lines of code (or routines) repeatedly according to conditions or iterations. ... Take for example a routine that must write as output the string “Hello” 40 times
Answer:
The solution code is written in Java.
- public class Main {
-
- public static void main(String[] args) {
-
- Scanner inNum = new Scanner(System.in);
- System.out.print("Enter number of toss: ");
- int num = inNum.nextInt();
-
- for(int i=0; i < num; i++){
- System.out.println(toss());
- }
- }
-
- public static String toss(){
- String option[] = {"heads", "tails"};
- Random rand = new Random();
- return option[rand.nextInt(2)];
- }
- }
Explanation:
Firstly, we create a function <em>toss()</em> with no parameter but will return a string (Line 14). Within the function body, create an option array with two elements, "heads" and "tails" (Line 15). Next create a Random object (Line 16) and use <em>nextInt()</em> method to get random value either 0 or 1. Please note we need to pass the value of 2 into <em>nextInx() </em>method to ensure the random value generated is either 0 or 1. We use this generate random value as an index of <em>option </em>array and return either "heads" or "tails" as output (Line 17).
In the main program, we create Scanner object and use it to prompt user to input an number for how many times to toss the coin (Line 6 - 7). Next, we use the input num to control how many times a for loop should run (Line 9). In each round of the loop, call the function <em>toss() </em>and print the output to terminal (Line 10).
The lead time of the actual batch will be in
<h3>What is Processing Time?</h3>
This refers to the amount of time which is taken for a processor to run a procedure and return a result.
We can see that a batch of 1000 is split so that they each have 10 smaller batches which has an equal size of 100 each, then if the processing time is 2 mins per machine and the set up time is 30 mins.
Hence, when this batch is processed over a serial line of 5 machines, then the lead time of the actual batch would be 2950 in minutes
Read more about processing time here:
brainly.com/question/18444145
Answer:
coupling is in tension
Force = -244.81 N
Explanation:
Diameter of Hose ( D1 ) = 35 mm
Diameter of nozzle ( D2 ) = 25 mm
water gage pressure in hose = 510 kPa
stream leaving the nozzle is uniform
exit speed and pressure = 32 m/s and atmospheric
<u>Determine the force transmitted by the coupling between the nozzle and hose </u>
attached below is the remaining part of the detailed solution
Inlet velocity ( V1 ) = V2 ( D2/D1 )^2
= 32 ( 25 / 35 )^2
= 16.33 m/s