Can you help me create a JAVA program with a public method called funDecision?
It also takes a double parameter called money, and two boolean parameters called isWeatherNice and hasCar.
Use the following rules:
If money is not available (money < $50), the recommendation is to stay home and watch TV or go to the park, depending upon the weather. If money is available and the weather is nice, the choices are to go to the park or go to the beach, depending upon the availability of a car (the park is nearby, the beach is not). If money is available but the weather is uncooperative, the choices are to stay home and either play poker or go to the movies, again depending upon the availability of a car. If the money input is less than zero, return "Invalid input". The EXACT output of the method must be one of: "Go to the beach" "Go to the park" "Go to the movies" "Play poker at home" "Watch TV" "Invalid input" //============================== Test Program ============== public class FunDecision { // Write your method here // Some test cases (not complete) for your code public static void main(String[] args) { System.out.println(funDecision(40, true, false)); // park System.out.println(funDecision(40.0, false, false)); // TV System.out.println(funDecision(-1, false, false)); // Invalid System.out.println(funDecision(99.9, false, false)); // poker } }