Question: IN JAVA Please CHALLENGE ACTIVITY | 52.3: Basic if-else Start Write an if-else statement for the following: If userTickets is greater than 5, execute awardPoints-10.

 IN JAVA Please CHALLENGE ACTIVITY | 52.3: Basic if-else Start Write

IN JAVA Please

CHALLENGE ACTIVITY | 52.3: Basic if-else Start Write an if-else statement for the following: If userTickets is greater than 5, execute awardPoints-10. Else, execute awardPoints-userTickets Ex: If userTickets is 14, then awardPoints-10 1import java.uti1.Scanner 3 public class TicketCounter ublic static vold main (String [] args) int awardPoints int userTickets Scanner senr-new Scanner(System.in); userTickets -senr.nextInt): // Program will be tested with values: 4, 5,6,7. 1e Your solution goes here / 12 13 14 15 16 System.out.println(awardPoints)

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!