WAP to Input number and find it is odd or even. 
	Solution:   
	C  
	Python 
	C# 
        WAP to Input year and find it is leap year or not. 
	Solution:   
	C  
	Python 
		WAP to Input 2 numbers and find greater. 
 Solution:   
	C  
	Python 
	PHP 
		WAP to Input 2 numbers and find smaller. 
	Solution:   
	C 
		WAP to check whether the input number is Positive or Negative. 
 Solution:   
	C  
	Python 
		WAP to Input user age and find it is eligible for vote or not. 
	Solution:   
	C 
		WAP to Input 3 numbers and find the largest number. 
	Solution:  
	C 
	Python 
		WAP to Input shopping amount and calculate discount, if amount is greater than or equals to 1000 than 15% discount is given otherwise 5%. 
 Solution:   
	C  
	Python 
		WAP to 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. 
	Solution:   
	C  
		WAP to Input 5 subjects marks of a student and find percentage & grade on the following slabs: 
		
			
				Percentage  Grade  
			
				81 - 100  A 71 - 80  B 61 - 70  C 40 - 60  D 0 - 39  F  
		
 Solution:   
	C  
		WAP to input working hours of an employee and find wages on the following conditions: 
		
			
				Hours  Wages  
			
				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  
		
 Solution:  
	C 
		WAP to input annual salary and calculate tax based on the following slab: 
        
			
				Annual Salary  Tax  
			Below 50000  Nil 50001 – 90000  20% 90001 – 150000  30% Above 150001  35% 
 Solution:  
	C 
		WAP to Input the value of basic salary and calculate the HRA, DA, PF and total salary. (Total salary=basic salary + HRA + DA – PF). 
		
			
				Basic salary  HRA  DA  PF  
			>25000 	10.25%  8.5%  5.5% >15000 to <=25000  8.25%  5.5%  3.5% >7500 to <=15000  5.5%  3.5%  1.5% >=2500 to <=7500  3.5%  2.5%  1.05% <2500  2.5%  1.0%  0.5% 
 Solution:  
	C 
		WAP to generate electricity bill for a customer, keeping in mind different rates. 
		
			
				Units  Rate per unit  
			0 - 200  Rs 3.00 201 - 400  Rs 4.50 401 - 800  Rs 6.50 801 - 1200  Rs 7.00 Above 1200  Rs 8.00 Free upto 200 units 
 Solution:  
	C 
		A cashier has currency notes of denominations 10, 50 and 100. If the amount to be withdrawn is input through the keyboard, WAP to find the total number of currency notes of each denomination the cashier will have to give to the withdrawer. 
 Solution:  
	C 
	 
 
	
Advertisement 
 
	
 
	
Advertisement 
 
 
 
					 
				 
				
  
 
	C Language Feedback, Questions, Suggestions, Discussion.