Answered step by step
Verified Expert Solution
Question
1 Approved Answer
6.30 duringLab: Green Ticket 6.30 duringLab: Green Ticket You have a green lottery ticket, with ints a, b, and c on it. If the numbers
6.30 duringLab: Green Ticket
6.30 duringLab: Green Ticket You have a green lottery ticket, with ints a, b, and c on it. If the numbers are all different from each other, the result is 0. If all of the numbers are the same, the result is 20. If two of the numbers are the same, the result is 10. greenTicket(1,2,3) > 0 greenTicket(2,2,2) 20 greenTicket(1,1,2) - 10 287212.1778258 LAB ACTIVITY 6.30.1: during Lab: Green Ticket 0/3 Main.java Load default template... 1 public class Main { 2 3 public int greenTicket(int a, int b, int c){ 4 /* Type your code here. */ 5 6 } 7 8 // this method not used but needed for testing 9 public static void main(String[] args) { 10 } 11 ) 12 Develop mode Submit mode Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second boxStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started