Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

7.3 LAB 1: Basic if-else. (3 attempts) Note: Do not type the prompts. Instead copy them from the instructions then paste them into your code

image text in transcribed
image text in transcribed
7.3 LAB 1: Basic if-else. (3 attempts) Note: Do not type the prompts. Instead copy them from the instructions then paste them into your code Note: Use standard spacing Prompt "Enter the user tickets:" then read user_tickets from the keyboard. If user tickets is less than 5, assign 1 to num_tickets. Else, assign user_tickets to num_tickets. Display num tickets, "The number of tickets is:" Ex if usertickets is'3, then numtickets 1 Note Use standard spacing ompt "Enter the user tickets: then read user tickets from the keyboard. tt user tickets is loss than 5, ansign 1 to num_tickets. Ele, asnign user tickots to num_ ticketa Display nun tickets, "The number of tickete ia:" Ex iIf usertickets i3'3 then numtickets 1

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_2

Step: 3

blur-text-image_3

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

SQL For Data Science Data Cleaning Wrangling And Analytics With Relational Databases

Authors: Antonio Badia

1st Edition

3030575918, 978-3030575915

More Books

Students also viewed these Databases questions