1.
Write a Program in python to convert a given integer (in days) to years, months and days, assuming that all months
have 30 days and all years have 365 days.
Test Data :
Input no. of days: 2535
Expected Output:
6 Year(s)
11 Month(s)
15 Day(s)
2. Write a Program in python to accepts Student Rollno, Name, Marks of five subjects and find the total, average and
division.
3. Write a Program in python to input basic salary of an employee and calculate DA, HRA, TA, Gross salary, PF, PTax,
Net Salary according to given conditions.
DA is 50% of Basic, HRA is 5% of Basic, TA is 5% of Basic, Gross salary=Basic + DA + TA + HRA, PF is 12% of Gross
Salary, PTax is 1% of Gross Salary, NetSalary=Gross Salary-PF-PTax.
4. Write a Program in python to Swap Two Numbers (using third variable).
5. Write a Program in python to Swap Two Numbers (without using third variable).
6. Write a program in python to find the greater of the two numbers.
7. Write a program in python to accept a number and find whether it is an even or odd.
8. Write a program in python to find the temperature in Fahrenheit by using input statement. If the temperature is 98.60F
or more then display “Fever” otherwise “Normal”.
9. Write a program in python to accept a character then check whether a character is Vowel or Consonant.
10. Write a program in python to accept age of a candidate’s and determine candidate’s is eligible for casting the vote or not
11. Writ e program in python to accept a year then check the year is Leap year or not.
12. Write a program in python to accept a number then check whether number is positive or Negative.
13. Write a program in python to accept three numbers and display the greatest number.
14. Write a program in python to accept check the number is buzz number or not.
15. Writ e program in python to accept a year then check the year is Leap year or not.
16. In an Examination, the grades are given according to the marks obtained. WAP in python to display the grades accordingly.
Marks Grades
80% and above Distinction
60% or more but less than 80% First Division
45% or more but less than 60% Second Division
40% or more but less than 45% Pass
Less than 40% Promotion not Granted
17. West Bengal Electricity Board charges for Electricity from their consumers according to the units consumed (per month) as per
the given tariff:
Units Consumed Charges
Up to 100 units 80 paise / unit
100 and up to 200 units 1 / unit
200 units 1.50/ unit
Moreover, every consumer has to pay 50 as Service Charge per month. WAP in python to calculate the Electricity Bill.
18. A Whole Seller offers discount to his Retailer according to the Goods purchased as per give tariff:
Goods worth Discount
up to Rs. 5000 5%
> Rs. 5000 and <Rs. 10000 10%
> Rs. 10000 and <Rs. 20000 15%
> Rs. 20000 20%
WAP in python to calculate the discount for purchasing the Goods.
19. Write a program in python to accept the sides of a triangle and display whether it is an Equilateral or Isosceles or a scalene
triangle.
(Equilateral Triangle if X = Y = Z. Isosceles Triangle: if either X = Y or X = Z or Y = Z. Scalene Triangle: A triangle is
said Scalene Triangle if none of its sides is equal.).
20. Write a program in python to accept three sides of a triangle and check whether the triangle is possible or not.
(a + b > c or a + c > b orb + c > a).
21. Syndicate Bank offers following rate of interest on fixed deposit:
Time Rate
Up to 6 months 7%
More than 6 months and up to 12 months 8%
More than 12 months and up to 36 months 9%
More than 36 months 10%