Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is my code in PYTHON: #defining the function extract_temps which take one argument temps def extract_temps(temps): #we will use try catch block here so
This is my code in PYTHON:
#defining the function extract_temps which take one argument temps def extract_temps(temps): #we will use try catch block here so that if there occurs #some error the it will ignore it new = [] #converting the items in temps from string to float for i in range(len(temps)): try: new.append(float(temps[i])) except: pass return new #defining selection_sort function which takes one argument def selection_sort(nums): #first let's create a copy for nums arr = copy.copy(nums) #applying selection sort to the array to sort it # Traverse through all array elements for i in range(len(arr)): # Find the minimum element in remaining # unsorted array min_index = i for j in range(i+1, len(arr)): if arr[min_index] > arr[j]: min_index = j # Swap the found minimum element with # the first element arr[i], arr[min_index] = arr[min_index], arr[i] return arr #defining calculate_median function which takes one argument def calculate_median(nums): if len(nums)Can you help with test plans: ( need 1 normal case test plan, boundary test and abnormal test plan)
Test Plan (6 Marks) Develop a test plan for your program. Your test plan should have at least three test cases: one normal case, one boundary case, and one abnormal case. You can test any function but you must test at least two different functions. Please use the following format for your test cases: Function: Input: Output: Excepted Output: Pass/Fail: An example test case is shown below: Function: extract_temps (temps) Input: temps = ["1", "NA","5.5"] Excpected Output: [1.0,5.5] Output: [1.0,5.5] Pass/Fail: Pass Implement your testing plan in the cell below! DOUBLE CLICK TO EDIT THIS CELL. DO NOT DELETE QUOTATION MARKS Test Plan (6 Marks) Develop a test plan for your program. Your test plan should have at least three test cases: one normal case, one boundary case, and one abnormal case. You can test any function but you must test at least two different functions. Please use the following format for your test cases: Function: Input: Output: Excepted Output: Pass/Fail: An example test case is shown below: Function: extract_temps (temps) Input: temps = ["1", "NA","5.5"] Excpected Output: [1.0,5.5] Output: [1.0,5.5] Pass/Fail: Pass Implement your testing plan in the cell below! DOUBLE CLICK TO EDIT THIS CELL. DO NOT DELETE QUOTATION MARKS
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started