* q1: Write a public static method named ql that takes a double as a parameter a
ID: 3738367 • Letter: #
Question
* q1: Write a public static method named ql that takes a double as a parameter and returns a double. The method will represent a line with slope 11.04 and y-intercept 8.51 by interpreting the input double as an x-value and returning the corresponding y-value on the s line * q2: Write a public static method named q2 that takes a String as a parameter and returns a * String. The method will return the input String with the adjective "northern" appended to the beginning of it separated by a space. For example, if the input String is "basis" your * method should return "northern basis" 1 23 25 26 27 28 q3: Write a public static nethod named q3 that takes a double as a parameter and returns a ' double. The method will represent a parabola written in standard form (https://wo.desmos.com/calculator/zukjgk9iry) where a-3.72, b-2.44, and c-0.29 by " interpreting the input double as an x-value and returning the corresponding y-value on the * parabola 29 30Explanation / Answer
public static double q1(double x) { return (11.04 * x) - 8.51; } public static String q2(String str) { return "northern " + str; } public static double q3(double x) { return (10.58 * x) - 5.51; }
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.