Answered step by step
Verified Expert Solution
Question
1 Approved Answer
6.25 during Lab: Blue Ticket 6.25 duringLab: Blue Ticket You have a blue lottery ticket, with ints a, b, and con it. This makes three
6.25 during Lab: Blue Ticket
6.25 duringLab: Blue Ticket You have a blue lottery ticket, with ints a, b, and con it. This makes three pairs, which we'll call ab, bc, and ac. Consider the sum of the numbers in each pair. If any pair sums to exactly 10, the result is 10. Otherwise if the ab sum is exactly 10 more than either bc or ac sums, the result is 5. Otherwise the result is 0. blue Ticket(9,1,0) 10 blue Ticket(9,2,0) 0 blue Ticket(6, 1, 4) 10 287212.1778258 LAB ACTIVITY 6.25.1: duringLab: Blue Ticket 0/3 Main.java Load default template... 1 public class Main { 2 3 public int blueTicket(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 Ac Go 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 theStep 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