JAVA SPRİNGBOOT HOMEWORK
Budget: $10 – $30 USD
You will create a single project (with Spring Boot and Java) for all questions, and each question will correspond to a RESTful web service. Services within the project will be testable through the browser with SwaggerUI. Java 8 or higher can be used.
Question 1: Return the common words (case-insensitive) in the given two texts. (GET, Inputs {Text s, Text t})
Question 2: Remove the spaces at the beginning and end of a given text and return it in uppercase. (GET, Inputs {Text s})
Question 3: Return the area and approximate circumference of an ellipse with given short radius and long radius values according to 3 formulas in the order of the formulas below. (GET, Inputs {Integer a, Integer b})
Formulas for approximate circumference calculation:
1- π (a + b)
2- π √[ 2 (a2 + b2) ]
3- π [ (3/2)(a+b) - √(ab) ]
Question 4: Write the square root values of the numbers from zero to the given i (inclusive) line by line in the square_roots_[i].txt file you will create. Return the result (successful/unsuccessful) and the address of the file. (GET, Inputs {Integer i})
Note 1: The assignment file will be named with the student number and the file type will be zip. When the project is run and the root address is entered, the student number, name, and surname will be displayed. (http://localhost:8080/)
Note 2: All numeric inputs are positive.
Note 3: Efficient performance of solutions, usage of additional Java classes/methods, usage of Java or external libraries, and meaningful error returns will result in extra points in the evaluation
Question 1: Return the common words (case-insensitive) in the given two texts. (GET, Inputs {Text s, Text t})
Question 2: Remove the spaces at the beginning and end of a given text and return it in uppercase. (GET, Inputs {Text s})
Question 3: Return the area and approximate circumference of an ellipse with given short radius and long radius values according to 3 formulas in the order of the formulas below. (GET, Inputs {Integer a, Integer b})
Formulas for approximate circumference calculation:
1- π (a + b)
2- π √[ 2 (a2 + b2) ]
3- π [ (3/2)(a+b) - √(ab) ]
Question 4: Write the square root values of the numbers from zero to the given i (inclusive) line by line in the square_roots_[i].txt file you will create. Return the result (successful/unsuccessful) and the address of the file. (GET, Inputs {Integer i})
Note 1: The assignment file will be named with the student number and the file type will be zip. When the project is run and the root address is entered, the student number, name, and surname will be displayed. (http://localhost:8080/)
Note 2: All numeric inputs are positive.
Note 3: Efficient performance of solutions, usage of additional Java classes/methods, usage of Java or external libraries, and meaningful error returns will result in extra points in the evaluation