|
80 | 80 | - Write a simple chatbot program using nested conditions.
|
81 | 81 | 24. Switch
|
82 | 82 | - Program to use `switch` statement. Display Monday to Sunday.
|
83 |
| - - Program to display arithmetic operator using switch case |
84 |
| -25. C++ Program to Swap Two Numbers |
85 |
| -26. C++ Program to Find all Roots of a Quadratic equation |
86 |
| -27. C++ Program to Check Whether a Character is an Alphabet or not |
87 |
| -28. C++ Program to Calculate the Sum of Natural Numbers |
| 83 | + - Program to display arithmetic operator using switch case. |
| 84 | +25. C++ Program to Swap Two Numbers. |
| 85 | +26. C++ Program to Find all Roots of a Quadratic equation. |
| 86 | +27. C++ Program to Check Whether a Character is an Alphabet or not. |
| 87 | +28. C++ Program to Calculate the Sum of Natural Numbers. |
88 | 88 | 29. Program to calculate the sum of numbers from m to n.
|
89 | 89 | - Hint: Input two numbers m and n. Find the sum of all numbers from m to n. For example m=3 and n=8 then sum will be 3 + 4 + 5 + 6 + 7 + 8 = 33.
|
90 | 90 | 30. Program to print Fibonacci series up to 100.
|
91 |
| - - Hint: Fibonacci Series is 1, 1, 2, 3, 5, 8, 13, 21,... |
92 |
| -31. C++ program to print Even numbers up to 100 |
| 91 | + - Hint: Fibonacci Series is 1, 1, 2, 3, 5, 8, 13, 21, ... |
| 92 | +31. C++ program to print Even numbers up to 100. |
93 | 93 | 32. C++ program to Generate a Multiplication Table.
|
94 |
| -33. C++ program to Calculate the Power of a Number |
| 94 | +33. C++ program to Calculate the Power of a Number. |
95 | 95 | 34. **Factorial Calculator:** Write a program that calculates the factorial of a given positive integer. Factorial of a number is the product of all positive integers from 1 to that number.
|
96 | 96 | 35. **Prime Number Checker:** Create a program that determines whether a given number is prime or not. A prime number is a positive integer greater than 1 that has no positive divisors other than 1 and itself.
|
97 | 97 | 36. C++ Program to Display Prime Numbers Between Two Intervals.
|
|
143 | 143 | 44. Program to display the series and find the sum of 1 + 3 + 5 + ... + n.
|
144 | 144 | 45. Program to display the sum of the series 1 + 1/2 + 1/3 + ... + 1/n.
|
145 | 145 | 46. Write a program to add the first seven terms of the following series using a for loop: 1/1! + 2/2! + 3/3! + ...
|
146 |
| -47. C++ Program to Find GCD of Two Numbers |
147 |
| -48. C++ Program to Find LCM of Two Numbers |
148 |
| -49. C++ Program to Display Characters from A to Z Using Loop |
149 |
| -50. C++ Program to Count Number of Digits in an Integer |
150 |
| -51. C++ Program to Reverse a Number |
151 |
| -52. C++ Program to Calculate the Power of a Number |
152 |
| -54. C++ Program to Check Whether a Number is Palindrome or Not |
153 |
| -54. C++ Program to Check Armstrong Number |
154 |
| -55. C++ Program to Display Armstrong Number Between Two Intervals |
155 |
| -56. C++ Program to Convert Binary Number to Decimal and vice-versa |
156 |
| -57. C++ Program to Convert Octal Number to Decimal and vice-versa |
157 |
| -58. C++ Program to Convert Binary Numbers to Octal and vice-versa |
158 |
| -59. C++ Program to Reverse a Sentence Using Recursion |
159 |
| -50. C++ Program to calculate the power using recursion |
| 146 | +47. C++ Program to Find GCD of Two Numbers. |
| 147 | +48. C++ Program to Find LCM of Two Numbers. |
| 148 | +49. C++ Program to Display Characters from A to Z Using Loop. |
| 149 | +50. C++ Program to Count Number of Digits in an Integer. |
| 150 | +51. C++ Program to Reverse a Number. |
| 151 | +52. C++ Program to Calculate the Power of a Number. |
| 152 | +54. C++ Program to Check Whether a Number is Palindrome or Not. |
| 153 | +54. C++ Program to Check Armstrong Number. |
| 154 | +55. C++ Program to Display Armstrong Number Between Two Intervals. |
| 155 | +56. C++ Program to Convert Binary Number to Decimal and vice-versa. |
| 156 | +57. C++ Program to Convert Octal Number to Decimal and vice-versa. |
| 157 | +58. C++ Program to Convert Binary Numbers to Octal and vice-versa. |
| 158 | +59. C++ Program to Reverse a Sentence Using Recursion. |
| 159 | +50. C++ Program to calculate the power using recursion. |
160 | 160 | 51. Write a program to calculate the area of a circle using functions.
|
161 | 161 | 52. Simple Calculator Program: ****Create a program that acts as a basic calculator, allowing users to perform addition, subtraction, multiplication, and division. Use functions for each operation.
|
162 | 162 | 53. Write a program to swap two values using functions.
|
|
166 | 166 | 57. Employee Payroll: ****Design a program that calculates employee payroll, including basic salary, overtime pay, and deductions. Use functions to compute each component.
|
167 | 167 | 58. **Student Grade Tracker:** Create a program that allows teachers to enter student grades and calculate averages, find the highest and lowest scores, and display statistics.
|
168 | 168 | 59. **Library Management System:** Create a simple library management system where you can store and manage a list of books using arrays. Ask the user to enter the book names. You should have the function display the book names. Create a `void` function. You should have the functionality to update the book name. To do this create another function. And pass index as argument.
|
169 |
| -60. C++ Program to merge two arrays |
| 169 | +60. C++ Program to merge two arrays. |
170 | 170 | 61. C++ Program to search the value in the array and return its index, if the value is not found print “Item not found”.
|
171 | 171 | 62. ****Number Sorting:** Write a program that reads a list of numbers into an array and sorts them in ascending or descending order using a sorting algorithm.
|
172 | 172 | 63. **Matrix Operations:** Write a program for basic matrix operations, such as addition, subtraction, multiplication, and transposition.
|
173 | 173 | 64. In a small company, there are five salesmen. Each salesman is supposed to sell three products. Write a program using a 2D array to print **(Input from user)**. The total sales by each salesman and Total sales of each item.
|
174 |
| -65. C++ Program to Calculate Standard Deviation |
175 |
| -66. C++ Program to Multiply two Matrices by Passing Matrix to a Function |
176 |
| -67. C++ Program to Access Elements of an Array Using Pointer |
| 174 | +65. C++ Program to Calculate Standard Deviation. |
| 175 | +66. C++ Program to Multiply Two Matrices by Passing the Matrix to a Function. |
| 176 | +67. C++ Program to Access Elements of an Array Using Pointer. |
177 | 177 | 68. Write a program that declares an integer variable, assigns a value to it, and then uses a pointer to print the value.
|
178 | 178 | 69. Swap the values of two integer variables using pointers.
|
179 | 179 | 70. Write a program that finds the sum of elements in an integer array using a pointer.
|
180 | 180 | 71. Create a dynamic integer array and prompt the user for the array size. Fill the array with user input values.
|
181 |
| -72. C++ Program Swap Numbers in Cyclic Order Using Call by Reference |
182 |
| -62. C++ Program to Find Largest Number Using Dynamic Memory Allocation |
183 |
| -63. C++ Program to Find the Frequency of Characters in a String |
184 |
| -64. C++ Program to count the number of vowels, consonants, and so on |
185 |
| -65. C++ Program to Remove all Characters in a String Except Alphabet |
186 |
| -66. C++ Program to Find the Length of a String |
187 |
| -67. C++ Program to Concatenate Two Strings |
188 |
| -68. C++ Program to Copy String Without Using `strcpy()` |
189 |
| -69. C++ Program to Sort Elements in Lexicographical Order (Dictionary Order) |
190 |
| -70. C++ Program to Store Information(name, roll, and marks) of a Student Using Structure |
191 |
| -71. C++ Program to Add Two Distances (in inch-feet) System Using Structures |
192 |
| -72. C++ Program to Add Two Complex Numbers by Passing Structure to a Function |
193 |
| -73. C++ Program to Calculate Difference Between Two Time Periods |
194 |
| -74. C++ Program to Store Information of Students Using Structure |
195 |
| -75. C++ Program to Store Information Using Structures with Dynamically Memory Allocation |
196 |
| -76. C++ Program to Write a Sentence to a File |
197 |
| -77. C++ Program to Read a Line From a File and Display it |
198 |
| -78. C++ Program to Display its own Source Code as Output |
199 |
| -79. C++ Programming Code To Create Pyramid and Pattern |
| 181 | +72. C++ Program Swap Numbers in Cyclic Order Using Call by Reference. |
| 182 | +62. C++ Program to Find Largest Number Using Dynamic Memory Allocation. |
| 183 | +63. C++ Program to Find the Frequency of Characters in a String. |
| 184 | +64. C++ Program to count the number of vowels, consonants, and so on. |
| 185 | +65. C++ Program to Remove all Characters in a String Except Alphabet. |
| 186 | +66. C++ Program to Find the Length of a String. |
| 187 | +67. C++ Program to Concatenate Two Strings. |
| 188 | +68. C++ Program to Copy String Without Using `strcpy()`. |
| 189 | +69. C++ Program to Sort Elements in Lexicographical Order (Dictionary Order). |
| 190 | +70. C++ Program to Store Information(name, roll, and marks) of a Student Using Structure. |
| 191 | +71. C++ Program to Add Two Distances (in inch-feet) System Using Structures. |
| 192 | +72. C++ Program to Add Two Complex Numbers by Passing Structure to a Function. |
| 193 | +73. C++ Program to Calculate Difference Between Two Time Periods. |
| 194 | +74. C++ Program to Store Information of Students Using Structure. |
| 195 | +75. C++ Program to Store Information Using Structures with Dynamically Memory Allocation. |
| 196 | +76. C++ Program to Write a Sentence to a File. |
| 197 | +77. C++ Program to Read a Line From a File and Display it. |
| 198 | +78. C++ Program to Display its own Source Code as Output. |
| 199 | +79. C++ Programming Code To Create Pyramid and Pattern. |
| 200 | +80. [OOP] Define a class called **`Car`** with attributes like **`model`**, and **`year`**. Create an object of the **`Car`** class and set its attributes. Then, print out the car's details. |
| 201 | +81. [OOP] Redo the same program above using `this->` |
| 202 | +82. [OOP] Temperature converter. Write a class called **`TemperatureConverter`** with methods to convert between Celsius and Fahrenheit. From Celsius Kelvin. to Create an object of this class, and use it to convert a temperature from one scale to another. |
| 203 | +83. [OOP] Simple calculator. Create a class called **`Calculator`** that can perform basic arithmetic operations (addition, subtraction, multiplication, division). Create an object of the class and use it to perform some calculations. |
| 204 | +84. [OOP] Create a class **`Rectangle`** with attributes for its length and width. Implement a method to calculate the area of the rectangle. Create an object and compute the area for a specific rectangle. |
| 205 | +85. [OOP] Simple To-Do List: Design a basic to-do list application where users can add, remove, and display tasks. You can save tasks in an array. |
| 206 | +86. [OOP] Define a class student with the following specifications. |
200 | 207 |
|
| 208 | + ```cpp |
| 209 | + Student |
| 210 | + --- |
| 211 | + + Student_ID: String |
| 212 | + + Student_Name: String |
| 213 | + + OOP2_Score: double |
| 214 | + + Maths_Score: double |
| 215 | + + English_Score: double |
| 216 | + + Total_Score: double |
| 217 | + --- |
| 218 | + + ctotal(): Function to calculate eng + math + OOP-2 with double return type. |
| 219 | + + Takedata(): Function to accept values for student id, Student Name, eng, OOP-2, maths and invoke ctotal() to calculate total. |
| 220 | + + Showdata(): Function to display all the data members on the screen. |
| 221 | + ``` |
| 222 | +87. [OOP] The class Person with private attributes name(string) and age(int). |
| 223 | + |
| 224 | + The class contains three functions. |
| 225 | + |
| 226 | + - One with no parameter (for initializing default value). |
| 227 | + - With two parameters (one parameter with default value). |
| 228 | + - Function to display the data. |
| 229 | + |
| 230 | + ```cpp |
| 231 | + Person |
| 232 | + --- |
| 233 | + + Name: String |
| 234 | + + Age: int |
| 235 | + --- |
| 236 | + + Display() |
| 237 | + <constructor> + Person() |
| 238 | + <constructor> + Person(a: int) |
| 239 | + ``` |
| 240 | +88. [OOP] Inheritance: https://github.com/Rustam-Z/cpp-programming/tree/main/OOP2_Lab6 |
| 241 | +89. [OOP] Encapsulation: https://github.com/Rustam-Z/cpp-programming/tree/main/OOP2_Lab7 |
| 242 | + |
| 243 | + Write a C++ menu-driven program to get employee details, display employee details, and display monthly salary details of employees.**** |
201 | 244 |
|
| 245 | + ```cpp |
| 246 | + Employee |
| 247 | + --- |
| 248 | + - Employee_ID: String |
| 249 | + - Employee_Name: String |
| 250 | + - No_of_Hours_Work: int |
| 251 | + - Rate_per_Hour: int |
| 252 | + --- |
| 253 | + + setEmployee_ID(String) |
| 254 | + + getEmployee_ID(): String |
| 255 | + + setEmployee_Name(String) |
| 256 | + + getEmployee_Name(): String |
| 257 | + + setNo_of_Hours_Work(int) |
| 258 | + + getNo_of_Hours_Work(): int |
| 259 | + + setRate_per_Hour(int) |
| 260 | + + getRate_per_Hour(): int |
| 261 | + + getTotal_Monthly_Salary(): double |
| 262 | + ``` |
| 263 | +91. [OOP] Polymorphism: https://github.com/Rustam-Z/cpp-programming/tree/main/OOP2_Lab8 |
| 264 | + |
| 265 | +**More questions can be found in the LAB folders above.** |
| 266 | + |
| 267 | + |
202 | 268 | ## Projects Ideas
|
203 |
| -1. Banking system with all banking facilities like – deposit, withdrawal, foreign exchange to any currency, availability of loans for purchasing vehicles, apartments, houses, setting up business, education loan, management of ATMs and all other features. |
204 |
| -2. Airline flight reservation system (online booking of tickets on different flights for different destinations all over the world, cancellation of tickets, clear display of cancellation amount, refund of amount after cancellation, showing availability of all flights, showing flights timings for all 7 days of a week, seats availability, seat selection for travelers by giving the complete layout of the seating arrangement inside the flights, food availability/non-availability inside the flights, change of travel dates and amount charged.) |
| 269 | +1. Banking system with all banking facilities like – deposit, withdrawal, foreign exchange to any currency, availability of loans for purchasing vehicles, apartments, houses, setting up business, education loan, management of ATMs, and all other features. |
| 270 | +2. Airline flight reservation system (online booking of tickets on different flights for different destinations all over the world, cancellation of tickets, clear display of cancellation amount, refund of the amount after cancellation, showing availability of all flights, showing flights timings for all 7 days of a week, seats availability, seat selection for travelers by giving the complete layout of the seating arrangement inside the flights, food availability/non-availability inside the flights, change of travel dates and the amount charged.) |
205 | 271 | 3. Taxi/cab sharing
|
206 |
| -4. University education portal (providing all information about undergraduate, postgraduate and doctoral programs offered, facilities available, location & map, and fee structure in all the universities) |
| 272 | +4. University education portal (providing all information about undergraduate, postgraduate, and doctoral programs offered, facilities available, location & map, and fee structure in all the universities) |
207 | 273 | 5. Online exam management system (with total security of identifying the students during exam, monitoring the student's activities during the exam, selection of different questions for each student, development of a large question bank containing hundreds of questions in each subject considering all courses taught at the university)
|
208 | 274 | 6. Library management system
|
209 | 275 | 7. E-content management system
|
|
0 commit comments