Discrimination is the ________ component of negative attitudes toward a group of people.
Hyundai and Kia make it to the news headline again because o…
Hyundai and Kia make it to the news headline again because of the risk of engine compartment fires of multiple models from 2010 to 2019. More than 30 fires have been reported for these models. As a result, they announced nearly 3.4 million vehicles will be recalled this year. What risk control technique is illustrated here?
During a meeting, the CRO of this firm told you that the max…
During a meeting, the CRO of this firm told you that the maximum premium he would pay for full insurance would be $3,200. What is the CRO’s worry value for retention?
Describe and provide an example of: 1.) conformity; 2) obedi…
Describe and provide an example of: 1.) conformity; 2) obedience; 3) one other social compliance concept that is not #1 or #2 – and both forms of “social influence” related to conformity fall within #1.
During the fight or flight response, which of the following…
During the fight or flight response, which of the following endocrine glands is most likely to increase activity?
What is the output of the following code snippet? def 1994_w…
What is the output of the following code snippet? def 1994_weekly_gas_prices_print(gas_prices): print(gas_prices) def main(): gas_prices = 1994_weekly_gas_prices_print(gas_prices) main()
In general, what is an attitude? Provide an example of an at…
In general, what is an attitude? Provide an example of an attitude toward some person or thing, and identify the affective, cognitive, and behavioral components of that attitude.
Reza and Eyad are both salesmen. Eyad is more persuasive tha…
Reza and Eyad are both salesmen. Eyad is more persuasive than Reza. If we only consider peripheral cues he’s probably _________ than Reza.
You are administering an IM injection. Upon aspiration, you…
You are administering an IM injection. Upon aspiration, you detect blood. What would be an appropriate nursing action?
Coding Problem How to start: Make a python file in IDLE/Spy…
Coding Problem How to start: Make a python file in IDLE/Spyder or IDE of your choice named Exam2_{YourFirstName}{LastNameInitial}.py and save it in your PC. Write the code for the given problem statement and test it. How to submit: Once code is written, click ‘Add a File’ button and attach the .py file to this question’s response section Problem Statement: Click on the link -> feedback.txt. This will open a text file contents. Copy the content and paste it in a text file. Name the file as feedback.txt. Save this file in the same folder as your Exam2_{YourFirstName}{LastNameInitial}.py file. This text file has customer feedback entries, one per line. Each line follows the following format: customer_id:feedback_text Example: C101:Excellent service and fast delivery.C102:Poor packaging and slow response. Write a Python program that performs the following task: Reads each line of feedback.txt file and extracts the customer id and feedback text. Then the program stores the customer id in a list and feedback text in different list. The program should handle exception FileNotFoundError for missing file. The program should handle exception ValueError for incorrectly formatted lines like missing ‘:’ Define a function named summarize_results that accepts the feedback list as argument. The function should print: Total number of feedbacks Count of positive feedback which has the word ‘excellent’ in it Count of negative feedback which has the word ‘bad’ in it Grading rubric Criteria Points Details File Reading and Exception Handling 4 Uses try-except block to handle the exceptions Data Extraction and Storage 4 Correctly splits each line and stores data in separate lists Function Definition 2 Function summarize_results defined and correctly called. Accepts the feedback list as parameter String processing and keyword matching 4 Uses necessary string processing functions to find the total feedbacks, count of positive feedbacks and count of negative feedbacks Output formatting and summary report 2 Prints the total number of feedback, count of positive feedback and negative feedback Comments 4 Comments are written for file opening, data extraction, exception handling and logic for calculating the feedback counts Total 20 Expected Output: Test Case 1: File is correctly read and feedback counts are printed. Total Entries: 10Positive comments: 2Negative comments: 1 Test Case 2: File is not found Error: feedback.txt file not found. Test Case 3: Line in text does not have ‘:’ Error splitting feedback. No ‘:’ in the line.