|
{ |
|
"instruction": "Check if the requirement is linked to the method", |
|
"input": "REQUIREMENT: Calculate square root METHOD: public double sqrt(double number) {return Math.sqrt(number);}", |
|
"output": "Yes, the requirement is linked with the sqrt method." |
|
} |
|
{ |
|
"instruction": "Check if the requirement is linked to the method", |
|
"input": "REQUIREMENT: Concatenate strings METHOD: public String concat(String str1, String str2) {return str1 + str2;}", |
|
"output": "Yes, the requirement is linked with the concat method." |
|
} |
|
{ |
|
"instruction": "Check if the requirement is linked to the method", |
|
"input": "REQUIREMENT: Find the maximum of two numbers METHOD: public int max(int num1, int num2) {return num1 > num2 ? num1 : num2;}", |
|
"output": "Yes, the requirement is linked with the max method." |
|
} |
|
{ |
|
"instruction": "Check if the requirement is linked to the method", |
|
"input": "REQUIREMENT: Sort an array METHOD: public void sortArray(int[] arr) {Arrays.sort(arr);}", |
|
"output": "Yes, the requirement is linked with the sortArray method." |
|
} |
|
{ |
|
"instruction": "Check if the requirement is linked to the method", |
|
"input": "REQUIREMENT: Convert temperature from Celsius to Fahrenheit METHOD: public double celsiusToFahrenheit(double celsius) {return (celsius * 9/5) + 32;}", |
|
"output": "Yes, the requirement is linked with the celsiusToFahrenheit method." |
|
} |
|
{ |
|
"instruction": "Check if the requirement is linked to the method", |
|
"input": "REQUIREMENT: Check if a number is prime METHOD: public boolean isPrime(int number) { /* Prime checking logic */ }", |
|
"output": "Yes, the requirement is linked with the isPrime method." |
|
} |
|
{ |
|
"instruction": "Check if the requirement is linked to the method", |
|
"input": "REQUIREMENT: Reverse a string METHOD: public String reverseString(String str) { /* Reversing logic */ }", |
|
"output": "Yes, the requirement is linked with the reverseString method." |
|
} |
|
{ |
|
"instruction": "Check if the requirement is linked to the method", |
|
"input": "REQUIREMENT: Calculate factorial METHOD: public int factorial(int n) { /* Factorial logic */ }", |
|
"output": "Yes, the requirement is linked with the factorial method." |
|
} |
|
{ |
|
"instruction": "Check if the requirement is linked to the method", |
|
"input": "REQUIREMENT: Convert miles to kilometers METHOD: public double milesToKilometers(double miles) {return miles * 1.60934;}", |
|
"output": "Yes, the requirement is linked with the milesToKilometers method." |
|
} |
|
{ |
|
"instruction": "Check if the requirement is linked to the method", |
|
"input": "REQUIREMENT: Generate random number METHOD: public int randomInt(int min, int max) { /* Random number generation logic */ }", |
|
"output": "Yes, the requirement is linked with the randomInt method." |
|
} |