P-Assignment 3: Conditional Statements
Hi,
Today’s Assignment:
1. Write a “Python” Program to Check which number is greater among the given two numbers.
2. Write a “Python” Program to Check which number is smaller among the given two numbers.
3 Write a “Python” Program to Check which number is greater among the given three numbers.
4. Write a “Python” Program to Check which number is smaller among the given three numbers.
5. Write a “Python” Program to Check whether a number is positive or negative.
6. Write a “Python” Program to Check whether a given number is greater than 100 or not?
7. Write a “Python” Program to Check the given number is in the range of 500 to 1000 or not?
8. Write a “Python” Program to Check the given number is a positive number or negative number or zero.
Note: if the user enters 0, it should display zero, -5 means negative, 5 means positive.
9. Write a “Python” Program to Check which number is greater among the given three numbers using nested if.
10. Write a “Python” Program to check whether the given character is a Vowel or Not?
11. Write a “Python” Program to check whether the student is Pass or Fail in an exam. The student is pass if he gets more than 50 marks, otherwise he is fail.
12. Write a “Python” Program to check the total bill of a person to be paid in a restaurant.
If the total bill is less than 500 INR no discount is given.
If the total bill is between 500 and 1000, the discount will be 5%
If the total bill is between 1000 and 2000, the discount will be 10%
If the total bill is greater than 2000 then, the discount will be 20%.
However the maximum discount eligible for a customer is 300.