Question: 1. Write a Floor) method that takes a single double as an argument and returns an int. The returned value is always rounded down to

 1. Write a Floor) method that takes a single double as

1. Write a Floor) method that takes a single double as an argument and returns an int. The returned value is always rounded down to the nearest integer. Do not use the built-in Java Math methods here. Eg. If 0.25 is the argument, 0 is returned. If 11.59 is the argument, 11 is returned Write a method that takes two strings as arguments and returns a boolean. The method returns true if the first argument is the same as the second argument but is case insensitive. Eg. If the first argument is "Aaron" and the second argument is AaRoN" return true. If the first argument is "Aaron" and the second argument is Apples" return false. Do NOT use the equalsignoreCase) method. 2. Hints: Use a loop and compare the characters one at a time. Use the charAt) method like we did in class. Use the String length) method to control your loop. Return false right away if the string are different sizes 3. Write a brief main method that collects input from the user and shows off your methods. (est. 15 mins)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!