Conditional Statement
Conditional Statement
1. Given two integer numbers return their sum. If the sum is greater than 100, then
return their product.
2. Write a Python program to calculate the sum of three given numbers, if the values
are not - equal then return four times of their sum
3. A shop will give discount of 50% if the cost of purchased quantity is more than
10000. Ask user for quantity suppose, one unit will cost 100. Judge and print total
cost for user.
7. Take input of age of 3 people by user and determine oldest and youngest among
them.
8. Write a program to input electricity unit charges and calculate total electricity bill
according to the given condition:
For first 50 units Rs. 0.50/unit
For next 100 units Rs. 0.75/unit
For next 100 units Rs. 1.20/unit
For unit above 250 Rs. 1.50/unit
An additional surcharge of 20% is added to the bill
9. A student will not be allowed to sit in exam if his/her attendence is less than 80%.
Take following input from user
Total Number of classes held
Total Number of classes attended. And print percentage of class attended. Is
student is allowed to sit in exam or not.
10. Calculate income tax for the given income by adhering to the below rules
Taxable Income Rate (in %)
First Rs.10,0000 0
Next Rs. 10,0000 10
The remaining 20