Rank-order the substrate preference (highest to lowest) of microbes for the following substrates.**
Your assignment is to create a method, weatherAttire, that r…
Your assignment is to create a method, weatherAttire, that recommends what type of jacket to wear, whether to bring an umbrella, and whether to wear snow boots. The method takes two parameters: a double representing the temperature, and a boolean representing whether rain is in the forecast for that day. The method does not return a value. The following rules govern the recommendations: Temperature If the temperature is greater than 50 degrees, output “Do not wear a jacket.” If the temperature is between 32 and 50 degrees, inclusive, output “Wear a light jacket.” Otherwise, output “Wear a heavy jacket.” Rain If there is rain in the forecast, output “Bring an umbrella.” If there is rain in the forecast and the temperature is below 32 degrees, also output “Wear snow boots.” Otherwise, output “Do not bring an umbrella.” Use, but do not modify, the following main() method: public static void main(String[] args) { Scanner scnr = new Scanner(System.in); weatherAttire(51, true); weatherAttire(30, true); weatherAttire(40, false); } Your code should produce the following output in response to the three method calls: Do not wear a jacket. Bring an umbrella. Wear a heavy jacket. Bring an umbrella. Wear snow boots. Wear a light jacket. Do not bring an umbrella. Upload your entire .java file to the box when you are done. Rubric: Program compiles and runs without throwing exceptions or entering an infinite loop (5pt) Declare method weatherAttire() with correct type of return value (5pt) Declare method weatherAttire() with correct number and type(s) of parameter variables (5pt) Correctly recommend attire based on temperature and rain forecast (10pt)
The primary motor cortex is contained in the:
The primary motor cortex is contained in the:
The marketplace is currently in equilibrium, as indicated by…
The marketplace is currently in equilibrium, as indicated by the tangency condition shown below. Assume capital and labor are substitutes. Suppose technological improvements increase the productivity of capital, but have no effect on the productivity of labor. In terms of its use of capital and labor, what would you expect firms to do to re-establish equilibrium?
C&A Vitamins sells 600 bottles of a dietary supplement per w…
C&A Vitamins sells 600 bottles of a dietary supplement per week at $100 per bottle. The supplement is ordered from a supplier who charges C&A $30 per order and $50 per bottle. C&A’s annual holding cost percentage is 40%. Assume C&A Vitamins operates 50 weeks in a year. What is C&A’s total ordering and holding cost per year if the order quantity is 200?
Use Hess’ Law and the list of standard enthalpies of formati…
Use Hess’ Law and the list of standard enthalpies of formation (below) to find the change in enthalpy for the following two reactions. Show your work in the textbox but do not worry about formatting the text (subscript etc.). I will copy this question below the enthalpies list in case that makes reading it easier. You can use the desmos online calculator. a) H2S(g) + 2H2O(g) –> 3H2(g) + SO2(g) b) 2HF(g) + HgO(s) –> H2O(l) + Hg(l) + F2(g) Use Hess’ Law and the list of standard enthalpies of formation (below) to find the change in enthalpy for the following two reactions. Show your work in the textbox but do not worry about formatting the text (subscript etc.). I will copy this question below the enthalpies list in case that makes reading it easier. You can use the desmos online calculator. a) H2S(g) + 2H2O(g) –> 3H2(g) + SO2(g) b) 2HF(g) + HgO(s) –> H2O(l) + Hg(l) + F2(g)
A person is confronted by a dangerous dog. His heart begins…
A person is confronted by a dangerous dog. His heart begins to race and beat strongly, his pupils dilate, and his hairs stand up. These signs are the result of:
You can earn up to 5 points of extra credit by successfully…
You can earn up to 5 points of extra credit by successfully completing this question. A student in IST 140 is trying to write a method, caughtSpeeding(), and to call that method from the main() method. You’re a tutor who is helping the student to find the errors in his code and to correct them. The instructions the student received were as follows: You are driving a little too fast, and a police officer stops you. Write code to compute the result, encoded as an int value: 0: no ticket 1: small ticket 2: big ticket. The int values are determined as follows: If speed is 60 or less, the result is 0. If speed is between 61 and 80 inclusive, the result is 1. If speed is 81 or more, the result is 2. For all of the above, if it is the driver’s birthday, then the speed can be 5 higher in all cases. Your method should have the name caughtSpeeding, and should have parameters for speed and for whether it is the driver’s birthday. Call the caughtSpeeding() method from main(), and print the resulting return value (i.e., do not use System.out.println() from within the caughtSpeeding() method). Example 1: In the main() method, the statement: System.out.println(caughtSpeeding(90, false)); Should result in the output: 2 Example 2: In the main() method, the statement: System.out.println(caughtSpeeding(65, true)); Should result in the output: 0 The student’s code, which is not correct, is as follows: public class Main { public static boolean caughtSpeeding(int speed, boolean isBirthday, int ticketPrice) { if (isBirthday) { speed += 5; } if (speed >= 81) { return 2; } if (speed >= 61) { return 1; } else { return 0; } } public static void main(String[] args) { System.out.println(caughtSpeeding(90, false)); System.out.println(caughtSpeeding(65, true)); } } Correct the students’ code so that it runs correctly. You do not need to, and should not, make any changes to the main() method. Instead, copy the entire code block above, paste it into IntelliJ, and make the necessary changes to the caughtSpeeding() method. Then paste your entire corrected .java file into this box. Rubric: Program compiles and runs without throwing exceptions or entering an infinite loop (1pt) Declare method caughtSpeeding() with correct type of return value (1pt) Declare method caughtSpeeding() with correct number and type(s) of parameter variables (1pt) Correct output based on call to caughtSpeeding() (2pts)
Digestion of proteins begins in the _____ where _____ and __…
Digestion of proteins begins in the _____ where _____ and _____, mix with the food to break down protein into _____.
The insertion of this muscle is the __________ of the scapul…
The insertion of this muscle is the __________ of the scapula.