We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
1.
Print Prime nos within a Range
2. Check whether the given number is prime or not 3. Given no is Armstrong or not 4. Reverse the given Number 5. Sum of digits 6. Leap year or not 7. Odd or even 8. Odd or even within a range 9. Factorial 10. Fibonacci 11. Roots of a quadratic equation 12. Sum of n natural numbers 13. Sum of odd numbers 14. Sum of even numbers 15. 12+22+32+……….+n2 16. Sin series 17. Cos series 18. Student Grade Calculation 19. Employee salary 20. Sum of first and last digit in a given number. 21. Calculate the bill according to the given conditions: a. For first 50 units, Rs. 0.50/unit b. For next 100 units, Rs. 0.75/unit c. For next 100 units, Rs. 1.20/unit d. For units above 250, Rs. 1.50/unit An additional surcharge of 20% is to be added to the bill (Use conditional statements) 22. Write an algorithm that accepts roll number, name and total mark obtained by a student and assign grades according to the following conditions, and display the roll number, name, total mark and grade.
Total Mark Grade
>=90 A
>=80 and <90 B
>=70 and <80 C
>=60 and <70 D
>=50 and <60 E
<50 Fail
23. Given the following constrains and we have to calculate
net salary of an employee. Given the Basic pay compute the following DA : 12% of Basic salary HRA : 10% of Basic Pay TA : 3% of Basic Pay