Online Classes available for different programming languages & for class IX (IT 402 Code), XII (IP 065)
Lets Learn Programming Language
Basic
1. WAP to accept two numbers and print the sum of two numbers?
2. Accept five subject marks and print the average?
3. Ram basic salary is input through keyboard. His HRA is 50% of basic salary and DA is 20 % of basic salary. Calculate the gross salary (Basic Salary + HRA + DA)?
4. Enter any 4 digits and print the sum of 4 digits?
5. WAP to swap two numbers.
6. WAP to swap two numbers without using third variable.
7. Write a program to reverse a number?
Enter-I=12345
Reverse-J=54321
8. Enter any character and change the case of that character?
9. Write a program to convert temperature in farnehite to Celsius?
Formula of Celsius = (f-32)*5/9
Farnehite = 9/5*C+32
Simple If Construct
1. Enter any number and display the day of week?
2. Enter any number and display the month?
3. Accept two numbers from a user and find the greatest of two?
4. Accept three numbers from a user and find the greatest of three?
5. Write a program to accept a number and to find out whether the number is divisible by 5 or not?
6. Write a program to accept a year and find out whether the year is leap year or not?
7. Write a program to accept a number and display a message indicating whether it is positive or negative number?
8. Enter any 4 digits and check if it is palindrome?
9. Accept age from a user and check the age, if the age is greater the 50 print OLD and if it is less then and equal to 50 it should print YOUNG.
Nest If Construct
1. Accept three numbers from a user and find the greatest of three?
2. Enter any number and display the day of week?
3. Enter any number and display the month?
4. Accept the final marks of a student and check the grade.
Grades to be printed.
If Construct with Logical Operators
1. Accept total sales and check if the sales is greater than 5000 commission is 12.5% and if sales is between 3000 and 5000 than the commission is 12% and if the sales is between 2000 and 3000 than commission should be 10% and if the sales is between 1000 and 2000 than commission should be 5% otherwise no commission?
2. Write a program to accept the book name and selling price and find out the discount on selling price. If selling price is above 1000 discount is of 20% and if selling price is between 800-1000 discount is 15% and if selling price is less than 800 no discount is given?
Switch Case
1. Enter any number and display the day of week?
2. Enter any number and display the month?
Loops
1. Print the table to 2.
2. Print the table of 2 in the following format.
2 * 1 = 2
2 * 2 = 4
2 * 3 = 6
2 * 4 = 8
2 * 5 = 10
2 * 6 = 12
2 * 7 = 14
2 * 8 = 16
2 * 9 = 18
2 * 10 = 20
3. Print the sum of first 100 natural numbers?
4. Write a C program to create function power and calculate the power of any number.
For example:
Assume number = 5
Power = 3
Result = 5*5*5 = 125
5. Print the sum of first n natural number. Where n is the number entered by the user?
6. Display all palindrome numbers from 1 to 1000?
7. W.A.P to display number from 1 to 50. Five integers per line?
8. Write a program to reverse a number?
Enter-I=12345
Reverse-J=54321
9. Outputs using loops
1
1 2 1
1 2 3 2 1
1 2 3 4 3 2 1
10. Write a program of count down and display blast?
11. Write a program to accept 10 number and display total number of odd and even?
12. Write a program to accept 20 number and find out how many are divisible by 5, display count?
13. Write a program to accept name, address and marks in 4 subjects and find the average marks. Display name, address, marks. Repeat this for 5 students?
14. Write a program to find out the highest of any ten numbers?
15. Write a program to find factorial of number?
16. Write a C program to count the no. of occurences of n's in a given number range.
For example:
random numbers : 45,78,2,65,489,6,2,6,55,9
find out how many times the digit 2 repeat? 2's digit repeat 2 times.
24. WAP to print Fibonacci numbers less than given user number?
Single Dimensional Arrays
1. Enter any 10 numbers and display them?(using Arrays)
2. Enter any 10 numbers and print the sum of them? (using Arrays)
3. Enter any 10 numbers and check how many of them are even?
4. Enter any 10 numbers and check the lowest of all?
5. Enter any two strings and check them if they are equal of not?
6. Write a program to find string entered by a user is a palindrome?
7. Write a program to find length of string?
8. Write a program to reverse a string?
9. Write a program to find out a vowel in a string?
10. Write a program to find character in a string?
11. Write a program to find character in a string and replace it with another?
12. Write a program to accept a string and find the occurrence in a string?
13. Write a program to find words in a string?
14. Write a program to print string in this format:
Jatinder
Jatinder Singh
Jatinder Singh Randhawa
15. Write a program to reverse words in a string?
Enter- jatinder singh randhawa
Reverse- randhawa singh jatinder
16. Write a program to replace a word with new word?
17. Write a program to concatenate two string?
Enter-jatinder
singh
Concatenate-jatinder singh
18. Write a program to create jumble dance?
Enter-JaTiNdEr
Jumble-jAtInDeR
19. Write a program to accept 10 number and print it in reverse order?
20. WAP for searching minimum and maximum number in ten numbers
21. WAP for counting the number of characters and words in a given string
Two Dimensional Arrays
1. Enter any 2 matrix and add them?
2. Enter any 2 matrix and print the product?
3. Enter any number and print it in words?
4. Write a program to accept the number and print in words format?
Enter-14
Words- one four
Functions
1. Print the sum of digits using recursion?
2. Write a program to swap two numbers?
3. Write a C program to generate Fibonacci series using recursion method.
4. All above functions using functions.