SELECTION
1-WAP TO FIND WHETHER A GIVEN NUMBER IS EVEN OR ODD (using if, if-else)?
2-WAP TO FIND WHETHER A GIVEN NUMBER IS POSITIVE, NEGATIVE, OR ZERO?
3-WAP TO CALCULATE THE ABSOLUTE VALUE?
4- THE FOLLOWING CALCULATES VALUE OF F(X) IF X HAS DIFFERENT RANGES OF VALUE AS BELOW
F(X) =X2+2 IF 0<=X<=10
F(X) =X2+2X IF 11<=X<=20
F(X) =X3+2X2 IF 21<=X<=30
F(X) =0 IF X>30
5-WAP TO FIND THE LARGEST OF THREE NUMBERS AND GIVE THE OUTPUT IN ASCENDING ORDER?
6-Any year is entered through the keyboard, write a program to DETERMINE WHETHER the year is leap year or not.
7-WAP TO FIND THE SIMPLE INTEREST IF PRINCIPAL AMOUNT IS LESS THAN 10000 ELSE CALCULATES COMPUND INTEREST?
8- POGRAM TO find grade of the student for four subjects marks for each subject to be entered by the user.
Per>=85 grade=A
Per<85 and per>=70 grade=B
Per<70 and per>=55 grade=C
Per<55 and per>=40 grade=D
Per<40 grade=F
9-WAP TO CALCULATE THE BILL FOR A SHOPKEEPER WHO SALES MANGO @ 5 RS per MANGO.IF BILL IS GREATER THAN 500 THAN GIVE DISCOUNT OF 10%. ELSE NO DISCOUNT.
10-WAP TO INPUT THREE SIDE OF A TRAINGLE THEN VALIDATES IT. IF TRAINGLE IS VALID ALSO CALCULATE AREA OF TRIANGLE.
11-WAP TO SIMULATE THE CALCULATOR USING SWITCH STATEMENT?
12-WAP TO FIND WHETHER A GIVEN CHARACTER IS VOWEL OR CONSONANT?
13-Any character is entered through the keyboard, write a program to determine whether the character entered is a capital letter, a small case letter, a digit or a special symbol.
14-If the three sides of a triangle are entered through the KEYBOARD; WRITE a program to check whether the triangle is isosceles, equilateral, scalene or right angled triangle.
15-WAP TO FIND LARGER NUMBER BETWEEN TWO NUMBERS.
16- A library charges a fine for every book returned late. For first 5 days the fine is 50 rupees, FOR 6-10 days fine is 100 rupee and above 10 days fine is 150 rupees. If you return the book after 30 days your membership will be cancelled. Write a program to accept the number of days the member is late to return the book and display the fine or the appropriate message.
17-wap to detect person has made profit or loss.(input cost price and sell price.).also calculate profit and loss?
18-wap to find sqrt, LOG, EXP of a given number using switch case?
solution of these question will be after a short time...