Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What do I change in my if statement in order to get the output of 5? I can only change my if statement and have

What do I change in my if statement in order to get the output of 5? I can only change my if statement and have to be able to get both outputs if the user_tickets is 3 or 5. I already tried the greater than or equal too and doesnt work image text in transcribed
image text in transcribed
ACILVLEY6.1.2: Basic if else Write an if-else statement for the following If user_tickets is less than 5, assign 1 to num_tickets. Else, assign user_tickets to Ex: if user-tickets is 3, then num-tickets-1 1 user tickets e 2 if user tickets

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions

Question

The paleolithic age human life, short write up ?

Answered: 1 week ago