🎁BACK-TO-SCHOOL DEAL. Subscribe Now to get 40% OFF at only 8.49 USD/month, only valid until Sep 30th, 2024

Question

Question
Part II. Equilibria Involving Sparingly Soluble Salt. 10. To 0.5 mL (10 drops) of 0.1 M Na2CO3 in a clean test tube add 10 drops of 0.01 M AgNO3. Observation: Write the equilibrium reaction: 11. Add 6 M HNO3 dropwise into the above test tube in 10 Observation: Write the equilibrium reaction: 12. Add 0.1 M HCl dropwise into the above test tube in 10 Observation: Write the equilibrium reaction: 13. Add 15 M NH3 dropwise into the above same test tube until some visible changes occurs Observation: Write the equilibrium reaction: Did the precipitate AgCl dissolve? Explain 14. Acidify the above solution in test tube 10 by dropwise addition of 6 M HNO3 Observation: Write the equilibrium reaction: What effect did the addition of HNO3 have on the contents of the test tube? Explain 15. Add 15 M NH3 dropwise into the same test tube What effect did the addition of NH3 have on the contents of the test tube? Explain Part III. Effect of Temperature on Equilibrial Take about 1 mL of 1.0 M CoCl2 solution in a test tube and place the test tube in a boiling water bath without spilling the contents. 17. Color of cold CoCl2 solution Color of the hot CoCl2 solution Write the equilibrium reaction Identify the exothermic and endothermic conversions from the equilibrium

Asked By MysticSkyline31 at

Answered By Expert

Adam

Expert · 2.1k answers · 2k people helped

Solution-\n14.) observation - On adding nitric acid white precipitate\nReaction - [Ag (NH₂), ]Cl¯ + 2 HNO3 → AgCl + 2NH ₂ NG 3

I am happy to help you for any doubt please comment and upvote

🧑‍🏫 More Questions

<h2>Movie ticket discounts revisited</h2><h2>CSW8 Learning Goals</h2><p>In this lab, you will:</p><ul><li>build on the solution to the <strong>3.15 LAB: Movie ticket discounts</strong></li><li>define and call a function with multiple parameters - you will need to add a new parameter to your previous solution</li><li>use the result of a function as part of the main program - the function will now return a <strong>list</strong> and a new <strong>error code</strong></li><li>practice creating a new list and <code>append</code>ing new elements to it</li><li>check the type of the variable is a list by using <code>if type(variableName) == list</code></li></ul><h2>Main Idea</h2><p>This lab is based on the <strong>3.15 LAB: Movie ticket discounts</strong>.</p><p>Your goal is to write a new function <code>get_ticket_price_discount()</code>, that builds on the <code>get_ticket_price()</code> and takes the following parameters:</p><ul><li>a base price (float) - <i>no longer hard-coded in the function</i></li><li>an age (integer)</li><li>a student status (Boolean)</li><li>a military status (Boolean)</li><li>a first-responder status (Boolean)</li></ul><p>The function returns <i><strong>a list</strong></i> that has <strong>any discounts that were applied</strong> to the resulting price (<i>in the order they were applied</i>) and the computed movie ticket price <strong>as the last element of the list</strong>.</p><p>The function returns error codes if the base price or the age are not valid.</p><h2>Instructions to write the function</h2><p><i>If the <strong>base price</strong> is 1 or less, the function returns </i><code><i>0</i></code><i> as an integer.</i></p><p><i>Otherwise, the function sets the ticket base price to be <strong>the provided base price parameter</strong>.</i></p><p>If the age is not valid, the function returns <code>-1</code> as an integer.</p><ul><li>If the Age 12 and under, the function subtracts $3 from the base price.</li><li>If the Age 65 and older, the function subtracts $2.</li></ul><p>In preparation for applying discounts, the function creates an empty list.</p><p>The function then independently checks the provided statuses <strong>in the order listed below</strong> and applies the following discounts:</p><ul><li>30% discount to students</li><li>25% - to military</li><li>20% - to first-responders</li></ul><p><strong>If any of the discounts were applied, the function stores the </strong><i><strong>discount percentage</strong></i><strong> as an integer in a list.</strong></p><ul><li>E.g., if the discount was 30% for a student ticket, the list would store <code>[30]</code>.</li><li>Make sure you write the the checking of the statuses in the order specified above.</li></ul><p>The function returns <i><strong>a list</strong></i> that has <i><strong>all</strong></i><strong> discounts that were applied</strong> to the resulting ticket price (<i>in the order that they were applied</i>) and includes the computed movie ticket price (as a float) <strong>as the last element of the list</strong>.</p><p>The function should <strong>not</strong> be rounding the result.</p><h2>The main program</h2><p>Get the price as a float input from the user.</p><p>Get the age as an integer input from the user.</p><p>Get the necessary statuses as an input string from the user:</p><ul><li>next, collect their response whether they are a student, then if they are military, and then if they are a first-responder.</li><li>If the user input <code>"yes"</code>, then convert the variable to the Boolean <code>True</code>; otherwise, set the status to <code>False</code>.</li><li>To convert the user input, use the <code>convert_yes_no()</code> function that was developed in class.</li></ul><p><i>Before</i> calling the function output a debugging print statement showing the arguments that are going to be passed into the function.</p><ul><li><code>print("Calling the function with", ..., ..., ..., ..., ...)</code></li></ul><p>Call the function <code>get_ticket_price_discount()</code> with the provided input arguments to get the result.</p><ul><li>Display the value that was returned from the function: <code>print("The function returned", ...)</code></li></ul><p>After we call the function, we can examine the returned value/object to determine what to output.</p><ol><li>If the function <strong>returns a list</strong> (check using the <code>type()</code> function):<ul><li>If the list contains a single element:<ul><li>Display the output as follows: <code>print(f'No discounts were applied.\nMovie ticket price: ${...:.2f}')</code>.</li><li>Remember to retrieve/index the first element of the list, otherwise, you will see the <code>[</code> <i>square brackets</i> <code>]</code> in the output.</li></ul></li><li>Otherwise, the list has more than one element, which means that the discounts were applied and we can display them.<ul><li>Use the <code>if len(...)</code> branches to detect how many discounts to output: you will need <strong>3 branches</strong> in order to display the result correctly.</li><li>Display the output as follows: <code>print(f'Discount applied: {...}%')</code> for each discount that is stored in the list.</li><li>Finally, display the <code>print(f'Movie ticket price: ${...:.2f}')</code> using the <strong>last element</strong> stored in the list. You can use <code>list_name[-1]</code> or <code>list_name[len(list_name)-1]</code> substituting your list's name for <code>list_name</code>.</li></ul></li></ul></li><li>Otherwise, if the function didn't return a list (i.e., it returned an integer error) display <code>Invalid input</code></li></ol><p>As before, remember to round the price to 2 decimal places in your <i>main program</i>!</p><h2>Testing the code</h2><p>The set up is the same as in the <strong>3.15 LAB: Movie ticket discounts</strong>, except that you are providing one more input value - the base ticket price - as the input in the main program, which uses it as the argument into your function.</p><p>If we call the new function with the same base price as what we used before, we should see that the returned value should still be the same as what we calculated previously.</p><h4>A 67-year old veteran (not a student nor a first-responder)</h4><p>For example, if the input is</p><pre><code class="language-plaintext">14.0 67 no yes no </code></pre><p>the <strong>return value from the function</strong> is</p><pre><code class="language-plaintext">[25, 9.0] </code></pre><p>and the <strong>output from the main program</strong> is</p><pre><code class="language-plaintext">Calling the function with 14.0 67 False True False The function returned [25, 9.0] Discount applied: 25% Movie ticket price: $9.00 </code></pre><h2>Troubleshooting / Hints</h2><ul><li>check for the validity of the <strong>price</strong> and then the <strong>user age</strong> <i>first</i>, before computing any prices.</li><li>Make sure you write the function logic in the <i>order specified by the instructions</i>.</li><li>remember that the function expects <strong>Boolean</strong> values, not strings "yes" or "no" (as indicated in the documentation)</li><li>To get the <strong>last element</strong> stored in the list, you can use <code>list_name[-1]</code> or <code>list_name[len(list_name)-1]</code> substituting your list's name for <code>list_name</code>.</li><li>The unit test is calling your function with the values that you are outputting as part of your debugging print statements in the main program.</li></ul><h3>Debugging your code</h3><p>If you take that output and then give it as the arguments into your function, you can print the result that comes back from the function to see if it is correct.</p><p>For example, for the test that is “Calling the function with <code>14.0 35 True False True</code>”, you can check what the function returns by <strong>hard-coding</strong> these values at the end of your main program to see the output:</p><pre><code class="language-plaintext">print("Calling the function with 14.0 35 True False True") result = get_ticket_price(14.0, 35, True, False, True) print("The function returned", result) </code></pre><p>&nbsp;</p><p>This is 3.15 code below:</p><p>&nbsp;</p><p>def get_ticket_price(age, is_student, is_military, is_first_responder):<br>&nbsp; &nbsp;"""<br>&nbsp; &nbsp;This function takes as an argument<br>&nbsp; &nbsp;param: age (int) - the age of the customer<br>&nbsp; &nbsp;param: is_student (bool) - whether the customer is a student<br>&nbsp; &nbsp;param: is_military (bool) - whether the customer is/was in the military<br>&nbsp; &nbsp;param: ... (bool) - whether the customer is a first responder<br>&nbsp; &nbsp;<br>&nbsp; &nbsp;The function returns a floating-point value corresponding to the&nbsp;<br>&nbsp; &nbsp;computed movie ticket price.<br>&nbsp; &nbsp;<br>&nbsp; &nbsp;If the age is not a value greater than 0,<br>&nbsp; &nbsp;the function returns an integer -1.<br>&nbsp; &nbsp;"""<br>&nbsp; &nbsp;ticket_price = 14.0<br>&nbsp; &nbsp;if age &lt;= 0:<br>&nbsp; &nbsp; &nbsp; &nbsp;return -1<br>&nbsp; &nbsp;elif age &lt;= 12:<br>&nbsp; &nbsp; &nbsp; &nbsp;ticket_price -= 3<br>&nbsp; &nbsp;elif age &gt;= 65:<br>&nbsp; &nbsp; &nbsp; &nbsp;ticket_price -= 2<br>&nbsp; &nbsp;if is_student:<br>&nbsp; &nbsp; &nbsp; &nbsp;ticket_price *= 0.7<br>&nbsp; &nbsp;if is_military:<br>&nbsp; &nbsp; &nbsp; &nbsp;ticket_price *= 0.75<br>&nbsp; &nbsp;if is_first_responder:<br>&nbsp; &nbsp; &nbsp; &nbsp;ticket_price *= 0.8<br>&nbsp; &nbsp;return ticket_price</p><p>def convert_yes_no(input_string):<br>&nbsp; &nbsp;<br>&nbsp; &nbsp;if input_string.lower() == "yes":<br>&nbsp; &nbsp; &nbsp; &nbsp;return True<br>&nbsp; &nbsp;elif input_string.lower() == "no":<br>&nbsp; &nbsp; &nbsp; &nbsp;return False<br>&nbsp; &nbsp;else:<br>&nbsp; &nbsp; &nbsp; &nbsp;return None</p><p>&nbsp; &nbsp;<br>if __name__ == "__main__":<br>&nbsp; &nbsp;age = int(input())<br>&nbsp; &nbsp;<br>&nbsp; &nbsp;student_response = input()<br>&nbsp; &nbsp;is_student = convert_yes_no(student_response)<br>&nbsp; &nbsp;<br>&nbsp; &nbsp;military_response = input()<br>&nbsp; &nbsp;is_military = convert_yes_no(military_response)<br>&nbsp; &nbsp;<br>&nbsp; &nbsp;responder_response = input()<br>&nbsp; &nbsp;is_responder = convert_yes_no(responder_response)<br>&nbsp; &nbsp;<br>&nbsp; &nbsp;print("Calling the function with", age, is_student, is_military, is_responder)<br>&nbsp; &nbsp;result = get_ticket_price(age, is_student, is_military, is_responder)<br>&nbsp; &nbsp;if result == -1:<br>&nbsp; &nbsp; &nbsp; &nbsp;print("Invalid age")<br>&nbsp; &nbsp;else:<br>&nbsp; &nbsp; &nbsp; &nbsp;print(f"Movie ticket price: ${result:.2f}")</p>