Input amount of purchase and calculate discount if amount is greater than 1000 than 15% discount is given otherwise 5%.

Input 3 angles of triangle and check whether a triangle is valid or not. A triangle is valid if the sum of all the three angles equal to 180 degrees and no angle is equals to 0.

Input 5 subjects marks and find percentage & print its division on the following slabs:
Per above or equal to 60 – 1st division
Per between 50 and 59 – 2nd division
Per between 40 and 49 – 3rd division
Per less than 40 - Fail.

WAP to input working hour of a employee and find per day salary on the following conditions: (Solution)
First 8 hrs – Rs 600 per hour
Next 4 hrs – Rs 400 per hour
Next 4 hrs – Rs 300 per hour
Next 4 hrs – Rs 200 per hour

WAP to Calculate tax on the following slabs:

Below 50000

Nil

50001 – 90000

20%

90001 – 150000

30%

Above 150001

35%

If basic salary is less than Rs.1500, then HRA=10% of basic salary and DA=90% of basic salary. If salary is equal to or above Rs.1500, then HRA = Rs.500 and DA = 98% of basic salary. If the employee's salary is input through the keyboard WAP to find his gross salary.

WAP to generate electricity bill for n customers, Keeping in mind different rates. (Solution)

Units

Rates

1 - 50

1.45

51 - 100

2.6

101 - 200

3.6

Above 200

6.9

A cashier has currency notes of denominations 10, 50 and 100. If the amount to be withdrawn is input through the keyboard, find the total number of currency notes of each denomination the cashier will have to give to the withdrawer.