Q1. WAP to accept any number and check the number is positive or negative.

Q2. WAP to accept any number and check the number is odd or even.

Q3. WAP to accept any year and check the year is leap year or not.

Q4. WAP to accept two numbers and find the largest number between them.

Q5. WAP to accept three numbers and find the largest number between them.

Q6. WAP to accept any number and check the number buzz or not.

Q7. WAP to accept any character and check the character is uper case, lower case, digit, special symbol or not.

Q8. WAP to accept the basic salary of an employee and check the salary is greater than 20000 or not. If the salary is greater then 20000 then find -

Hra=20% of basic salary

Da=15% of basic salary

Other wise

Hra=30% of basic salary

Da=25% of basic salary.

Q9. WAP to accept three angles of a triangle and check the triangle is valod or not. The triangle is valid if the total of three angle = 180 degrees.

Q10. WAP to accept three angle of a triangle and check the triangle is isosceles, equilateral, scalene.

Q11. WAP to accept cost price and selling price of an item and determine the seller has made profit or insecure loss and also determine how much profit he made or loss he insecure.

Q12. WAP to accept marks of any subject and find their grade from the given condition:

Marks                  Grade

>=90                     A

>=80 and < 90      B

>=60 and < 80      C

>=40 and < 60      D

< 40                      F

Q13. WAP to accept a consonent and check whether it is a vowel or consonent.

Q14. WAP to accept a day number from the user and print the corresponding day name.

Q15. WAP to make a calculator using if else or switch case statement.

Quick Links

_____________________

Home

Basic JS

If-Else JS

Newsletter

_____________________

Contact

_____________________

Email: garaikoushiki@gmail.com

Phone no.: 8336016549

Location

_____________________

BE-13, D.B Nagar, Baguihati, Kolkata-7000 059

© Copy Rights 2024 Koushiki Garai. All Rights Reserved.