Question: 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

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!