C-Practical Program
Sign in

C-Practical Program

Assistant Professor
C - Program By Parag dave

1 .	W.A.P. to print “Hello from K. B. Raval Institute of Computer Studies”
2.	W.A.P. to print “Hello from K. B. Raval Institute of Computer Studies” &  “How are you ?” in different printf statement.
3.	W.A.P. to print “Hello from K. B. Raval Institute of Computer Studies” &  “How are you ?” in different printf statement using ‘\n’ .
4.	W.A.P. to read one number  from user and print that number.
5. 	W.A.P. to read two number  from user and print that number.
6.	W.A.P. to read two number  from user and print that number and print Addition of that number.
7.	W.A.P. to read two number  from user and print that number and print Subtraction of that number.
8.   	W.A.P. to read two number  from user and print that number and print Multiplication of that number.
9.	W.A.P. to read two number  from user and print that number and print  Division of that number.
10.	W.A.P. to read two number  from user and print that number and print All the answer of Arithmetic operator  of that two number.
11.	W.A.P. to find out Area of Rectangle. (Formula: area = side1*side2  )
12.	W.A.P. to find out Area of Triangle. (Formula: area = height * base * 0.5 )
13.	W.A.P. to find out Simple Interest. (Formula:  si = (p * r * n)/100  )
	Where,   si = Simple Interest,   p = Principle Amount,   r = Rate,   n =No of year.
14.	To check whether the given number is Odd.
15.	To check whether the given number is Odd or Even.
16.	To check whether the given number is Positive, Negative or Zero.
17.	To check whether the given number is One Digit, Two Digit, Three Digit or more three Digits.
18.	To check whether the given number is divisible by 7 or not.
19.	Write a program to do the following operation:
	-	Read any two positive operands ( Say ‘op1’ and ‘op2’ ) and one character type operator (say ‘opr’ )
	-	Depending upon the operator, do the appropriate operation.
	- 	ex.  If opr = ‘+’ then evaluate the following expression (op1 + op2 )
20.	A function ‘F’ is defined as follows:
	F(x)	 = 	ax3 – bx2 + cx –d   	if x > k
		= 	0		    	if x == k &
		=  	-ax3 + bx2 – cx + d	if x < k
	Write a program that read a,b,c,d,k,and x and print the value of f(x).		
21.	A company has following scheme for payment to their staff.
	Net salary 	= 	Gross Salary – Deduction
	Gross Salary 	= 	Basic + DA + HRA + Medical.
	Deduction  	= 	Insurance Premium + PF
	Where, DA = 50% of Basic, HRA= 10% of Basic, Medical = 4% of Basic, PF = 5% of Gross,
		Insurance Premium = 7% of Gross.
	Write a program to calculate Net Payment of any Employee.
22.	read any value from user in floating number and separate Rs. And Paisa from that number
	Ex.    12.50 = 12 Rupees and 50 paisa.
23.	W.A.P. to compute Fahrenheit from Centigrade. (Formula:  F = 1.8 * c + 32)
24. 	W.A.P. that read a number between 1 to 7 and display appropriate day. (Monday to Sunday)Use Switch-case.
25.	Make a simple calculator using switch-case and else…if  ladder.
26.	W.A.P.to check whether the given input number is leap year or not.

prevnew
start_blog_img