Write an if-else statement for the following: If user_tickets is equal to 6, execute award_points = 1. Else, execute award_points = user_tickets. Ex: If user_tickets is 3, then award_points = 3. 1 user_tickets 2 3 4 = int(input()) # Program will be tested with values: 5, 6, 7, 8. Your code goes here 5 print (award_points) 6

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 5GZ
icon
Related questions
Question
CHALLENGE
ACTIVITY
461710.3116374.qx3zqy7
Start
4.2.2: Basic if-else.
Write an if-else statement for the following:
If user_tickets is equal to 6, execute award_points = 1. Else, execute award_points = user_tickets.
Ex: If user_tickets is 3, then award_points = 3.
1 user_tickets
123456
Check
T
int(input()) # Program will be tested with values: 5, 6, 7, 8.
Your code goes here '''
5 print(award_points)
Next
2
Transcribed Image Text:CHALLENGE ACTIVITY 461710.3116374.qx3zqy7 Start 4.2.2: Basic if-else. Write an if-else statement for the following: If user_tickets is equal to 6, execute award_points = 1. Else, execute award_points = user_tickets. Ex: If user_tickets is 3, then award_points = 3. 1 user_tickets 123456 Check T int(input()) # Program will be tested with values: 5, 6, 7, 8. Your code goes here ''' 5 print(award_points) Next 2
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT