This document provides 15 tasks to write C programs that demonstrate various programming concepts: 1) Find ASCII value of a character, 2) Swap two numbers, 3) Find size of data types, 4) Calculate employee net salary, 5) Perform math operations, 6) Check voter eligibility, 7) Check student placement eligibility, 8) Find biggest of three numbers, 9) Print student grade, 10) Print thought using switch, 11) Demonstrate shift operators, 12) Accept and display character, 13) Accept and display string, 14) Limit input digits to 4, and 15) Accept string using scanf() and gets().
This document provides 15 tasks to write C programs that demonstrate various programming concepts: 1) Find ASCII value of a character, 2) Swap two numbers, 3) Find size of data types, 4) Calculate employee net salary, 5) Perform math operations, 6) Check voter eligibility, 7) Check student placement eligibility, 8) Find biggest of three numbers, 9) Print student grade, 10) Print thought using switch, 11) Demonstrate shift operators, 12) Accept and display character, 13) Accept and display string, 14) Limit input digits to 4, and 15) Accept string using scanf() and gets().
This document provides 15 tasks to write C programs that demonstrate various programming concepts: 1) Find ASCII value of a character, 2) Swap two numbers, 3) Find size of data types, 4) Calculate employee net salary, 5) Perform math operations, 6) Check voter eligibility, 7) Check student placement eligibility, 8) Find biggest of three numbers, 9) Print student grade, 10) Print thought using switch, 11) Demonstrate shift operators, 12) Accept and display character, 13) Accept and display string, 14) Limit input digits to 4, and 15) Accept string using scanf() and gets().
1. Write a C program to find the ASCII value of a character.
2. Write a C Program to swap two numbers.
3. Write a C program to find the Size of int, float, double and char. 4. Write a C program to calculate the net salary of an employee. Calculate DA=10% of Basic Pay, HRA=15% of Basic pay, IT deduction=5% of basic pay. Display Employee Name, age, Net Salary. 5. Write a prog in C to perform the following (a=10, b = 5, c=4, d=3) i. a+b*c/d ii. a–b%c+d iii. a–b/c*c+d 6. Write a program in C to print “Eligible to vote” if the age of the person is greater than 18 7. Write a program in C to find whether a student is eligible to sit for placement in MOP (Criteria to appear for placement: cgpa > 7 and backlog=No) 8. Write a program in C to find the biggest of three numbers (Use Nested if) 9. Write a program in C to print the grade of the student using if..elseif ladder 10.Write a program in C to print thought for the day using switch..case statement 11.Write a C program to demonstrate the usage of shift operators. 12.Write a C program to accept and display a character. 13.Write a C program to accept and display a string. 14.Write a C program to accept input using scanf(), but limit the number of digits in the input to 4 digits. 15. Write a C program to demonstrate the usage of accepting string using scanf() and gets () function.