100% found this document useful (1 vote)
51 views

WAP Program

This document contains a practical list of 89 programming problems covering basic C/C++ programs, if-else conditional statements, switch case statements, loops, arrays, functions, structures, classes, inheritance, polymorphism, and basic data structures. The problems are assigned to students for a basic computer engineering lab course taught by Pawan Kumar Gupta to help students learn and practice fundamental programming concepts.

Uploaded by

Aayush Tripati
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
51 views

WAP Program

This document contains a practical list of 89 programming problems covering basic C/C++ programs, if-else conditional statements, switch case statements, loops, arrays, functions, structures, classes, inheritance, polymorphism, and basic data structures. The problems are assigned to students for a basic computer engineering lab course taught by Pawan Kumar Gupta to help students learn and practice fundamental programming concepts.

Uploaded by

Aayush Tripati
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

BCE Practical List

(BT205 Lab)
Basic Computer Engineering
Faculty Name: Pawan Kumar Gupta

1. Study & Practice Internal and External DOS commands.


2. Study & Practice Basic Linux commands.
3. Study & Practice MS Windows.
4. Creation & editing of text filter using MS Word.
5. Creation & operation of Spreadsheet using MS Excel.
6. Creation & Editing of PowerPoint slides using MS PowerPoint.
7. Study & Practice of Flowchart & Algorithm.

Simple Program
8. WAP to print Hello World in C.
9. WAP to print Hello World in C++.
10. WAP to find the addition of two integer numbers.
11. WAP to find the addition of two float numbers.
12. WAP to find the average of two numbers (integer & float)
13. WAP to find the average marks scored in five subjects.
14. WAP to exchange the value of two variables.
i. Using the third variable.
ii. Without using a third variable.
15. WAP to convert.
i. Temperature C to F
ii. Temperature F to C
16. WAP to find the area of a circle.
17. WAP to find the reverse of the number (five-digit number).
18. WAP to find the sum of all digits (five-digit number).

If-Else
19. WAP to find the maximum age of two students.
20. WAP to find the largest number among three numbers.
21. WAP to find whether a number is negative or positive.
22. WAP to check if the number is even or odd.
23. WAP to check whether a year is a leap year or not.
24. WAP to check whether the entered character is a vowel or consonant.
25. WAP to find the largest number among the two numbers.

Switch Case
26. WAP to make the simple calculation for all arithmetic operations (+, -, *, /, %).
27. WAP to check whether the entered character is a vowel or consonant.
28. WAP to display the day of the week as a user choice.

Loops Statements
29. WAP to print Hello World five times.
30. WAP to print natural numbers (1 to 10).
31. WAP to print natural numbers in reverse order (10 to 1).
32. WAP to find the factorial of a number using a while loop.
33. WAP to print the Fibonacci series until given terms.
34. WAP to display the sum of n natural numbers where n is entered by the user.
35. WAP to display the reverse of any number using a loop.
36. WAP to sum all the numbers entered by the users until the user enters 0.
37. WAP to display the reverse of five digits numbers using a loop.
38. WAP to print numbers within the range given by the user.
39. WAP to print number table using multiplication operation.
40. WAP to print number table using addition operation.
41. WAP to generate prime numbers of series up to n numbers using for loop.
42. WAP to find the sum of all digits of a digit using a loop.
43. WAP to print pattern (Where n=5).
* 1 A 1 ***** 12345
** 12 AB 23 **** 1234
*** 123 ABC 345 *** 123
**** 1234 ABCD 4567 ** 12
***** 12345 ABCDE 56789 * 1

ABCDE 12345 * 1 A 1
ABCD 2345 ** 12 AB 23
ABC 345 *** 123 ABC 345
AB 45 **** 1234 ABCD 4567
A 5 ***** 12345 ABCDE 56789

&&&&& 12345 ABCDE 12345 & &&&&&


&&&& 1234 ABCD 2345 && &&&&
&&& 123 ABC 345 &&& &&&
&& 12 AB 45 &&&& &&
& 1 A 5 &&&&& &

& &&&&&&&&&
&&& &&&&&&&&&
& &&&&&&&&& &&&&& &&&&&&&&&
&&& &&&&&&& &&&&&&& &&&&&&&&&
&&&&& &&&&& &&&&&&&&& &&&&&&&&&
&&&&&&& &&& &&&&&&& &&&&&&&&&
&&&&&&&&& & &&&&& &&&&&&&&&
&&& &&&&&&&&&
& &&&&&&&&&

Array
44. WAP to demonstrate the array.
45. WAP to input number from the user and display in an array.
46. WAP to sum n different numbers by an array (find total marks secured by students in all subjects).
47. WAP to search for an element in an array.
48. WAP to print the largest element of an array.
49. WAP to print the smallest element of an array.
50. WAP to print the second largest element of an array.
51. WAP to print the addition of two matrices using a multidimensional array.
52. WAP to print multiplication of two matrices using a multidimensional array.

Functions
53. WAP for the sum of two numbers using function.
54. WAP to build a calculator using functions.
55. WAP to find the largest element in each array using function.
56. WAP to find the factorial of a number using function.
57. WAP to print Fibonacci series using function.
58. WAP to check whether a year is a leap year or not using function.
59. WAP to swap values of two numbers using function.
i. Call by value.
ii. Call by reference.
iii. Call by address.
60. WAP to find simple interest (float as return type).
61. WAP to find the factorial of a number using a function (int return type).
62. WAP to access the value of a variable through a pointer.
63. WAP to find the sum of the first N natural number using recursion.
64. WAP to print the Fibonacci series using recursion.
65. WAP to find the factorial of a number using recursion.

Structure & Union


66. WAP to display records of students using Structure.
67. WAP to display records of students using the Union.
68. WAP to display records of five students using Structure.

Class and object


69. WAP to demonstrate the use of classes and objects.
70. WAP to add two numbers using member functions of a class and display the results.
71. WAP to demonstrate the use of scope resolution operators.

Constructor and destructor


72. WAP to display the concept of constructor & destructor.
73. WAP to Constructor overloading.

Inheritance
74. WAP to demonstrate single inheritance.
75. WAP to demonstrate multilevel inheritance.
76. WAP to demonstrate multiple inheritance.
77. WAP to demonstrate hierarchical inheritance.
78. WAP to demonstrate hybrid inheritance.
Friend Function
79. WAP to demonstrate the use of the friend function.
80. WAP to demonstrate the use of operator overloading using the friend function.

Polymorphisms
81. WAP to demonstrate the use of function overloading.
82. WAP to demonstrate the use of function overriding.
83. WAP to demonstrate the use of unary operator overloading.
84. WAP to demonstrate the use of binary operator overloading.
85. WAP to demonstrate the use of virtual functions.

Data Structure
86. WAP to demonstrate the array using row major order and column major order.
87. WAP to demonstrate the use of Stack.
88. WAP to demonstrate the use of Queue.
89. WAP to demonstrate the use of Linked List.

You might also like