Question: Please help. Python coding on Jupyter Notebook. HW 2 Complete the code below using Jupyter Notebook. Provide a label for each problem using either a

Please help. Python coding on Jupyter Notebook.

Please help. Python coding on Jupyter Notebook. HW 2 Complete the codebelow using Jupyter Notebook. Provide a label for each problem using either

HW 2 Complete the code below using Jupyter Notebook. Provide a label for each problem using either a markup cell or a comment. Your code solutions must be solved within your notebook in the same order presented below. Be sure to run each cell to dis- play the end result. Save your work as a Jupyter file (.ipynb) and as PDF file. Up- load both files to Blackboard using one submission. PROBLEM A Instructions: Use the IF...ELIF...ELSE statement to determine the category based on the likert scale outlined below in the pseudocode. Assume the rating is Neutral. Pseudocode: Set (or define) the rating variable to "Neutral If the rating is Strongly Agree: Display the number 5 Else if the rating is Agree: Display the number 4 Else if the rating is Neutral: Display the number 3 Else if the rating is Disagree: Display the number 2 Else if the rating is strongly Disagree: Display the number 1 Anything else Display 0 PROBLEM B Instructions: Use the for statement on the average scores provided to compute the aver- age. Note: Do not use the sum() function. Use this list of average_scores: 77, 83, 87, 93, 93 Pseudocode: Set (or define) the list variable average scores Initialize a total variable to 0 Use the for statement to iterate on each score in scores: Add the score to total Display the total Display the average by dividing the total score by the number of the average scores in the list (hint: make use of the len () function) Note: do not use the sum() function for this problem PROBLEM C Instructions: Use the for statement to iterate on the ratings list and subtract each rating score by 3.5, then store the subtracted value inside a new list. Use this list of rating scores: 2,2,3,3,3,4,4,4,5,5 Pseudocode: Set the variable with the list of rating scores Initialize a list variable named mean deviations Use the for statement to iterate through the rating scores Subtract the score by 3.5 then store it in mean deviations. Display the mean deviations list. PROBLEM D Instructions: Calculate the z-score value for each rating score using a for statement and store it in a z_scores list variable. The list of rating scores: 2,2,3,3,3,4,4,4,5,5. Assume the mean is 3.5 and the standard de- viation is 1.08. Pseudocode: Set the rating scores list Set the mean rating score variable Set the standard deviation rating score variable Initialize a list named z scores For each score in scores list Calculate the z-score value and store it inside z scores Display the z_scores Note: Formula for z_score = (rating score - mean rating ) / standard deviation rating score PROBLEME Instruction: Create a program that analyzes a random sample of students who had their temperature checked at a University. Total those students without a fever and those with a fever. If the total of students with a fever is three or more, then the in-person class must be suspended. The random sample of students who were temperature checked are: 100, 99, 102.1, 98, 98.9, 98, 99.7, 98.7, 98.7, and 100. Pseudocode: Set the sample list of temperatures Initialize a no fever variable to zero Initialize a fever variable to zero For each temperature in the sample If temperature is less than or equal to 99.3 Add one to no fever Else Add one to fever Display the total number of those without a fever Display the total number of those with a fever If more than 2 have a fever Display the message: Of the number of students who had their temperature checked, have a fever. In-person class sessions must be suspended. Else display Resume normal class sessions. Note: The are filled out using the appropriate function and variable(s). PROBLEMF Create a dictionary variable with at least three key-value pairs. The keys within your dic- tionary should be anything related to you such as your name, major, hobby, etc. Use a for statement to iterate through the dictionary and display all key-value pairs. End of document

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!