Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1.Write a python program that asks the user to enter an integernumber. The program should validate if the number id positive, negative, or equal zero.

1.Write a python program that asks the user to enter an integernumber. The program should validate if the number id positive, negative, or equal zero. If the number is positive (greater than 0), it should display Positive.If the number is negative (lessthan 0), it should display Negative, and display Zero if itis equal to 0. Also, write the flowchart of the program.

2.Consider three ticket types at XYZ cinema: TicketA, Ticket B, and Ticket C. Ticket A cost $55, Ticket B cost $40, and Ticket C cost $25.Write a python program that asks the customer to enter the tickettype(A or B or C),andthen the program should displaythe cost of the ticket.

3.Assume that XYZ cinema awards loyalty points to its customers. According to the table below, the points are calculated based on their total spending during the year (rounded figure).

Total spending Points

$0-$200 50

$201-$500 100

More than 500 200

Write a python program that asks the customer to enter the total spending of a year and then displayits points

4.Write a python program that asks the user to enter three positive numbers. Save these numbers in three different variables. The program should find the middle of three numbers and displays it to the user.

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

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions