0% found this document useful (0 votes)
35 views

Program List

List of C programs

Uploaded by

Anurag Dwivedi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

Program List

List of C programs

Uploaded by

Anurag Dwivedi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 5

Programs List Of Subject OOP Using C++ (BCA 3rd Semester)

Sr. No. Programs Based on Simple Logic (Unit One, Chapter Two)

1. WAP to print your name on the screen (Refer Video No 12 on DEVA App)

2. WAP to calculate area of circle. (Refer Video No 13 on DEVA App)

3. WAP to calculate circumference of the circle. (Refer Video No 13 on DEVA App)

4. WAP to calculate area of right angle triangle. (Refer Video No 13 on DEVA App)

5. WAP to add two integer numbers. (Refer Video No 1 on DEVA App)

6. WAP to subtract two integer numbers. (Refer Video No 12 on DEVA App)

7. WAP to multiply two integer numbers. (Refer Video No 12 on DEVA App)

8. WAP to divide two integer numbers. (Refer Video No 12 on DEVA App)

9. WAP to add two float numbers by initializing them. (Refer Video No 12 on DEVA App)

10. WAP to find simple interest. (Refer Video No 13 on DEVA App)

11. WAP to swap two numbers using third variable. (Refer Video No 13 on DEVA App)

12. WAP to swap two numbers without using third variable. (Refer Video No 13 on DEVA App)

13. WAP to add two octal numbers. (Refer Video No 7 on DEVA App)

14. WAP to add two hexadecimal numbers. (Refer Video No 7 on DEVA App)

15. WAP to convert temperature from centigrade degree to Fahrenheit degree. (Refer Video No 13 on DEVA App)

16. WAP to convert temperature from Fahrenheit degree to centigrade degree. (Refer Video No 13 on DEVA App)

WAP to take two numbers by user and perform all arithmetic operations (all 5) on them. (Refer Video No 9 on DEVA
17.
App)

18. WAP to take a 4 digit number by user and give individual digit place vise. (Refer Video No 13 on DEVA App)

19. WAP to take a 4 digit number by user and find addition of its digits. (Refer Video No 13 on DEVA App)

20. WAP to take a 4 digit number by user and reverse the number. (Refer Video No 13 on DEVA App)

21. WAP to take two numbers by user and find addition of unit place digits.

22. WAP to find largest of two numbers using conditional operator. (Refer Video No 9 on DEVA App)

23. WAP to find largest of three numbers using conditional operator. (Refer Video No 9 on DEVA App)

24. WAP to check working of Sort hand assignment operators. (Refer Video No 9 on DEVA App)

25. WAP to check working of increment operator. (Refer Video No 9 on DEVA App)

WAP to use increment and decrement operator in expression showing pre-increment and post-increment. (Refer
26.
Video No 9 on DEVA App)

27. WAP to check working of decrement operator. (Refer Video No 9 on DEVA App)
28. WAP to check all bit wise operations. (Refer Video No 9 on DEVA App)

29. WAP to perform left shift operation on the given number (Specific). (Refer Video No 9 on DEVA App)

30. WAP to perform right shift operation on the given number (Specific). (Refer Video No 9 on DEVA App)

31. WAP to perform left shift operation on the given number (generalize). (Refer Video No 9 on DEVA App)

32. WAP to perform right shift operation on the given number (generalize). (Refer Video No 9 on DEVA App)

33. WAP to perform left/Right shift operation on the given number (generalize). (Refer Video No 9 on DEVA App)

34. WAP to calculate one’s complement of a given number. (Refer Video No 9 on DEVA App)

35. WAP to check working of scope resolution operator (::). (Refer Video No 10 on DEVA App)

36. WAP to check working of sizeof operator. (Refer Video No 9 on DEVA App)

37. WAP to check working of enum data type. (Refer Video No 6.1 on DEVA App)

38. WAP to check working of setw and endl operator. (Refer Video No 10 on DEVA App)

39. WAP to check working of preprocessor directives. (Refer Video No 7 on DEVA App)

40. WAP to check working of symbolic constant. (Refer Video No 7 on DEVA App)

41. WAP to check working of const keyword. (Refer Video No 7 on DEVA App)

42. WAP to demonstrate dynamic initialization of variable. (Refer Video No 6 on DEVA App)

43. WAP to demonstrate reference variable. (Refer Video No 6.1 on DEVA App)

44. WAP to demonstrate explicit type cast operator. (Refer Video No 8 on DEVA App)

45. WAP to find square root of given number. (Refer Video No 14 on DEVA App)

46. WAP to calculate xy using pow function. (Refer Video No 14 on DEVA App)

47. WAP to calculate area of triangle whose three sides are given. (Refer Video No 14 on DEVA App)

48. WAP to calculate compound interest. (Refer Video No 14 on DEVA App)

49. WAP to calculate amount using compound interest. (Refer Video No 14 on DEVA App)

Sr. No. Programs Based on control Structures (Unit Two, Chapter Three)

1. WAP to take two numbers by user and find larger number using if..else.

WAP which purchase cost take from user. If purchase cost is more than 1000 rupees, give 10% discount to the
2.
customer. Display payable amount.

3. WAP to take one number by user and check whether it is greater than 10 or not.

4. WAP to take one number by user and check given number is even or odd. (Refer Video No 1 on DEVA App)

5. WAP to take one number by user and check given number is divisible by 5 or not.

6. WAP to take age of the user and check whether he/she is eligible for voting or not. (Refer Video No 6 on DEVA App)
7. WAP to take one number by user and check given number is +ve or –ve. (Refer Video No 6 on DEVA App)

8. WAP to take one number by user and check given number is +ve, -ve or zero. (Refer Video No 1 on DEVA App)

WAP to take age and gender by user and check whether he/she is eligible for wedding or not. (Refer Video No 6 on
9.
DEVA App)

10. Take a year by user and check given year is leap year or not. (Refer Video No 3 on DEVA App)

WAP program to take three numbers by user and give largest of them using nested if else statement. (Refer Video
11.
No 1 on DEVA App)

12. WAP to take percentage of the user and display division.

13. WAP to check a given character is alphabet, digit or special symbol. (Refer Video No 5 on DEVA App)

WAP to take a character by user and display message, entered charter is in lower case or upper case. (Refer Video
14.
No 5 on DEVA App)

15. WAP to take a charter by user and convert it lower to upper or upper to lower case. (Refer Video No 5 on DEVA App)

16. WAP to take two numbers by user and check both are same or not.

17. WAP to take two numbers by user and check which is lower/upper or equal.

18. WAP to print HELLO message 10 times using for/while/do-while loop. (3 Programs) (Refer Video No 2 on DEVA App)

19. WAP to print first N natural numbers using for/while/do-while loop. (3 Programs) (Refer Video No 2 on DEVA App)

WAP to take a number by user and print multiplication table using for/while/do-while loop. (3 Programs) (Refer
20.
Video No 6 on DEVA App)

21. WAP to demonstrate working of break statement. (Refer Video No 3 on DEVA App)

22. WAP to demonstrate working of continue statement. (Refer Video No 3 on DEVA App)

23. WAP to demonstrate working of goto statement. (Refer Video No 3 on DEVA App)

24. WAP to calculate factorial of the given number. (Refer Video No 6 on DEVA App)

25. WAP to find summation of first n natural numbers.

26. WAP to find summation of first n odd natural numbers.

27. WAP to find summation of first n even natural numbers.

28. WAP to find summation of first n even and odd natural numbers.

29. WAP to check given number is prime or not. (Refer Video No 6 on DEVA App)

30 WAP to generate a series of prime numbers up to 300. (Refer Video No 6 on DEVA App)

31. WAP to generate multiplication table up to 10.

32. WAP to generate multiplication table up to the limit given by user.

WAP to take two numbers from user then take choice from user for addition, subtraction, multiplication, or division.
33.
Perform operation and display result according to the choice. (Refer Video No 3 on DEVA App)
WAP to take one digit by user and display day accordingly 1-MONDAY, 2-TUESDAY, ……, 7-SUNDAY, any other digit
34.
print INVALID DIGIT. (Refer Video No 6 on DEVA App)
35. WAP to find root of quadratic equation.

36. WAP to find square, cube, square root and cube root of a given number. (Refer Video No 6 on DEVA App)

WAP using switch statement that will examine the value of a char type variable called color and print one of the
following messages, depending on the character assigned to color.
i) RED, if either r or R is assigned to color.
37.
ii) Green if either g or G is assigned to color.
iii) BLUE if either b or B is assigned to color.
iv) BLACK if color is assigned any other character.

38. WAP to calculate sum and average of first N natural numbers. (Refer Video No 2 on DEVA App)

39. WAP that accepts ten different integers from the keyboard and gives the sum and average of these ten integers.

40. WAP to reverse the digits in a given four-digit integer number. (Use modulus operator and while loop).

WAP to find Greatest Common Devisor (GCD) and Least Common Multiplier (LCM) of two numbers. (Refer Video No
41.
6 on DEVA App)

42. WAP to print 3 digit numbers is Armstrong number. (Refer Video No 6 on DEVA App)

43. WAP to print whether the given 3 digit number is Armstrong number or not. (Refer Video No 6 on DEVA App)

44. WAP to count numbers between 1 to 100 which are divisible by 5 only using while statement. Find sum also.

45. WAP to calculate the value of series 1 + x + x2 + ……+ xn. Take x and n by user.

46. WAP to convert lower case letter to upper case letter.

47. WAP to calculate factorial of a given number. (Refer Video No 6 on DEVA App)

48. WAP to generate Fibonacci Series. (Refer Video No 6 on DEVA App)

WAP using while loop to reverse the digits of the numbers. For example, the number 894623 should be written as
49.
326498.
WAP to print the following output using for/while/do-while loop. (36 Programs) (Refer Video No 7 on DEVA App)

50.

WAP to print the following output using for/while/do-while loop. (36 Programs). (Refer Video No 8 on DEVA App)

51.

and all format as above problem


WAP to print the following output using for/while/do-while loop. (36 Programs). (Refer Video No 9 on DEVA App)

52.

and all format as above problem


WAP to print the following output using for/while/do-while loop. (36 Programs). (Refer Video No 10 on DEVA App)

53.

and all format as above problem


WAP to print the following output using for/while/do-while loop. (36 Programs). (Refer Video No 11 on DEVA App)

54.

and all format as above problem


WAP to print the following output using for/while/do-while loop. (36 Programs). (Refer Video No 12 on DEVA App)

55.

and all format as above problem


WAP to print the following output using for/while/do-while loop. (36 Programs).

56.

and all format as above problem


WAP to print the following output using for/while/do-while loop. (9 Programs)

57.

WAP to print the following output using for/while/do-while loop for the given string. For example if given string is
“COMPUTER” then required following output. (3 programs)
C
C O
C O M
58.
C O M P
C O M P U
C O M P U T
C O M P U T E
C O M P U T E R

You might also like