1.
WAP
to enter age and check if it greater than equal to 18 then print “Eligible to
vote” else print “Not eligible to vote”.
WAP to check whether a number is odd or even.
1.
WAP
to check whether a number is Positive or Negative.
- WAP to enter year and check whether it is leap year or
not.
WAP to enter character and check whether it
is a vowel or not
4.
WAP
to calculate the commissutiln of a salesman which is 10% if the sale made by
the employee is above 10,000.
- WAP to calculate the commissutiln of a salesman which
is 10% if the sale made by the employee is above 10,000 and 5% if sales is
below it.
- WAP to find the grade of the students depending upon
the marks given as below :
Marks >= 90
Grade ‘A’
Marks >= 80 and Marks < 90
Grade ‘B’
Marks >= 70 and Marks < 80
Grade ‘C’
Marks >= 60 and Marks < 70
Grade ‘D’
Marks < 60
Grade ‘F’
2.
WAP
to enter any two numbers and find the greater of the two.
WAP to enter any three numbers and find the
greatest of the three.
4.
A
library charges a fine for books returned late. Following are the fines.
First 5 days
: 40 paise per day
6 to 10 days
: 65 paise per day
Above 10 days
: 80
paise per day
WAP to calculate the fine assuming
that a book is returned ‘n’ days late.
5.
WAP
to compute charges for sending parcels where the charges are as follows:
For the first 1 kg Rs.15.00.For additutilnal
weight for every 500gm or fractutiln there of Rs. 8.00.
6.
WAP
to calculate the telephone bill amount as per instructutilns.
For 1st 100 calls – Rs. 100
For additutilnal 50 calls – Rs. 2 per call
For calls > 150 – Rs. 2.50 per call
7.
WAP
to enter any character and check if it is a character, digit or a special
character.