1. Learn and code every day, consistency is important.
2. Write it down - plan your code before you start coding and understand the input to your program and the output from your code.
3. Learn to debug your code - look at the code line by line to see how it works.
4. Surround yourself with other people who are learning. Teach each other.
5. Learn taking notes.
6. Build something, anything you would enjoy while coding. Be unique.
7. Focus on 1 thing! Take small steps, but every day, consistency is very important again.
8. Learn to ask GOOD questions to others:
- G: Give context on what you are trying to do, clearly describing the problem.
- O: Outline the things you have already tried to fix the issue.
- O: Offer your best guess as to what the problem might be. It helps the person who is helping you not only know what you're thinking but also know that you've thought of something yourself.
- D: Demonstrate what's going on. Include the code, the tracing error message, and an explanation of the steps you followed that resulted in the error. That way, the person helping doesn't have to try to recreate the problem.
- Harvard CS50 - Scratch, C, Arrays, Algorithms, Memory, Data structures, Python, SQL, HTML, CSS, JavaScript, Flask
- Crash Course Computer Science
- Computer Science for Everyone
- Book "Everything You Need to Ace Computer Science ..."
- C++ for beginners — CodeBeauty
- C++ Programming Tutorial — thenewboston
- C++ by The Cherno
- C++ by freeCodeCamp.org
- RU C++ by Denis Markov
- RU C++ Уроки - Гоша Дударь
- To read:
-
C++ Program to print "Hello, World!".
-
C++ Program to print an integer entered by the user.
-
C++ Program to Add/Subtract/Multiply/Divide Two Integers.
-
C++ Program to Add/Subtract/Multiply/Divide Two Integers entered by the user.
-
C++ Program to Add/Subtract/Multiply/Divide two Floating Point Numbers.
-
C++ Program to Compute Quotient and Remainder.
-
C++ Program to Calculate the Area and Circumference of a Circle.
-
C++ Program to Calculate the Area of a Scalene Triangle.
-
C++ Program to Calculate the Area of an Equilateral Triangle.
-
C++ Program to Calculate the Area of Right Angle Triangle.
-
C++ Program to Calculate the Area and Perimeter of a Rectangle.
-
C++ Program to Calculate the Area and Perimeter of a Square.
-
C++ Program to Find ASCII Value of a Character.
-
C++ Program to Find the Size of int, float, double, and char.
-
C++ Program to Swap Two Numbers.
-
C++ program that converts between Celsius and Fahrenheit temperatures based on user input. You can also add conversions for Kelvin.
-
C++ Program to Check Whether a Number is Even or Odd.
-
C++ Program to Check Whether a Number is Positive or Negative.
-
C++ Program to Check Whether a Character is a Vowel or Consonant.
-
C++ Program to find the Largest Number Among Three Numbers.
-
C++ Program to find if the entered year is a leap year or not.
-
C++ program that allows the user to perform basic arithmetic operations (addition, subtraction, multiplication, division) on two numbers. You can also add error handling for division by zero.
-
BMI Calculator: Create a program that calculates a person's Body Mass Index (BMI) based on their weight and height input. Provide a classification of whether the person is underweight, normal weight, overweight, or obese. Use cin, cout. Formula: bmi = weight / (height * height)
bmi < 18.5 Underweight bmi < 24.9 Normal Weight bmi < 29.9 Overweight Otherwise Obese -
Nested condition
- Get the
age
andmembership_status
as user input.membership_status
can be onlyY
ory
. So, if the age is bigger or equal to 18 and if the user is a member of our shop, we provide a 10% discount, else we charge fully. - Write a simple chatbot program using nested conditions.
- Get the
-
Write a program to calculate taxes, with the following conditions:
- If the salary is less than $1500, then there are no taxes
- If the salary is from 1501 to 3000 $ (1501<= salary < 3000) then the tax should be 10%
- If the salary is from 3001 to 5000 $ (3001 <= salary < 5000) then the tax should be 20%
- If the salary is above $5000, then the tax should be 30%
Hint: Formula for finding tax (salary * percentage) / 100
You must output:
- Tax percentage
- Salary after taxes
-
Switch:
- Program to use
switch
statement. Display Monday to Sunday. - Program to display arithmetic operator using switch case.
- Program to use
-
C++ Program to Find all Roots of a Quadratic equation.
-
C++ Program to Check Whether a Character is an Alphabet or not.
-
C++ Program to Calculate the Sum of Natural Numbers.
-
Program to calculate the sum of numbers from m to n.
- 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.
-
Program to print Fibonacci series up to 100.
- Hint: Fibonacci Series is 1, 1, 2, 3, 5, 8, 13, 21, ...
-
C++ program to print Even numbers up to 100.
-
C++ program to Generate a Multiplication Table.
-
C++ program to Calculate the Power of a Number.
-
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.
-
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.
-
C++ Program to Display Prime Numbers Between Two Intervals.
-
Program to print stars Sequence1.
* ** *** **** *****
-
Program to print stars Sequence2.
* ** *** **** *****
-
Program to print star Sequences3.
* *** *****
-
Program to print Sequence4.
* ** *** **** ***** ***** **** *** ** *
-
Sum of Numbers: Write a program that prompts the user for an integer n and then calculates the sum of all integers from 1 to n using a for or while loop. Also, calculate the sum of all even and odd numbers.
-
Guess the Number Game: Create a simple game where the program picks a number (int number = 42;), and the user has to guess the number, receiving hints (higher or lower). Use a while loop to handle the game process. If the user guesses the number, stop the program and display the number of attempts made by the user.
-
User Menu Interaction: Create a text menu that provides the user with several options (e.g., "1. Perform action 1", "2. Perform action 2," and so on). Use a while loop to continue the program until the user chooses the exit option (system("exit");).
-
Program to display the series and find the sum of 1 + 3 + 5 + ... + n.
-
Program to display the sum of the series 1 + 1/2 + 1/3 + ... + 1/n.
-
Write a program to add the first seven terms of the following series using a for loop: 1/1! + 2/2! + 3/3! + ...
-
C++ Program to Find GCD of Two Numbers.
-
C++ Program to Find LCM of Two Numbers.
-
C++ Program to Display Characters from A to Z Using Loop.
-
C++ Program to Count Number of Digits in an Integer.
-
C++ Program to Reverse a Number.
-
C++ Program to Calculate the Power of a Number.
-
C++ Program to Check Whether a Number is Palindrome or Not.
-
C++ Program to Check Armstrong Number.
-
C++ Program to Display Armstrong Number Between Two Intervals.
-
C++ Program to Convert Binary Number to Decimal and vice-versa.
-
C++ Program to Convert Octal Number to Decimal and vice-versa.
-
C++ Program to Convert Binary Numbers to Octal and vice-versa.
-
C++ Program to Reverse a Sentence using recursion function.
-
C++ Program to calculate the power using recursion function.
-
Build a program for calculating the area and perimeter of various geometric shapes (circle, rectangle, triangle, etc.) using separate functions for each shape.
-
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.
-
Write a program to swap two values using functions.
-
Write a program to convert time to minutes using functions. (input 3 variables namely hours, minutes, and seconds. Convert everything into minutes.)
-
Write a program to sum the Fibonacci series up to n (input n). 1, 1, 2, 3, 5, 8, 13,
-
Function Overloading and Default Arguments: Build a program for calculating the area and perimeter of various geometric shapes (circle, rectangle, triangle, etc.) using separate functions for each shape. Overload functions for shapes with different parameters.
-
Employee Payroll: ****Design a program that calculates employee payroll, including basic salary, overtime pay, and deductions. Use functions to compute each component.
-
Temperature in °C can be converted to °F using this formula: °F = (°C x 9/5) + 32. Write a function which converts °C to °F, convert_celsius_to-fahrenheit.
-
Write a function called check-season, it takes a month parameter and returns the season: Autumn, Winter, Spring or Summer.
-
Write a function called calculate_slope which return the slope of a linear equation.
-
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.
-
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. -
Write a function to merge two arrays.
-
Write a function to search the value in the array and return its index, if the value is not found print “Item not found”.
-
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.
-
Matrix Operations: Write a program for basic matrix operations, such as addition, subtraction, multiplication, and transposition.
-
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.
-
C++ Program to Calculate Standard Deviation.
-
C++ Program to Access Elements of an Array Using Pointer.
-
Write a program that declares an integer variable, assigns a value to it, and then uses a pointer to print the value.
-
Swap the values of two integer variables using pointers.
-
Write a program that finds the sum of elements in an integer array using a pointer.
-
Create a dynamic integer array and prompt the user for the array size. Fill the array with user input values.
-
C++ Program to Find Largest Number Using Dynamic Memory Allocation.
-
C++ Program to Find the Frequency of Characters in a String.
-
C++ Program to count the number of vowels, consonants, and so on.
-
C++ Program to Remove all Characters in a String Except Alphabet.
-
C++ Program to Find the Length of a String.
-
C++ Program to Concatenate Two Strings.
-
C++ Program to Copy String Without Using
strcpy()
. -
C++ Program to Sort Elements in Lexicographical Order (Dictionary Order).
-
C++ Program to Store Information(name, roll, and marks) of a Student Using Structure.
-
C++ Program to Add Two Distances (in inch-feet) System Using Structures.
-
C++ Program to Add Two Complex Numbers by Passing Structure to a Function.
-
C++ Program to Calculate Difference Between Two Time Periods.
-
C++ Program to Store Information of Students Using Structure.
-
C++ Program to Store Information Using Structures with Dynamically Memory Allocation.
-
C++ Program to Write a Sentence to a File.
-
C++ Program to Read a Line From a File and Display it.
-
C++ Program to Display its own Source Code as Output.
-
[OOP] Define a class called
Car
with attributes likemodel
, andyear
. Create an object of theCar
class and set its attributes. Then, print out the car's details. -
[OOP] Redo the same program above using
this->
-
[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. -
[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. -
[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. -
[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.
-
[OOP] Define a class student with the following specifications.
Student --- + Student_ID: String + Student_Name: String + OOP2_Score: double + Maths_Score: double + English_Score: double + Total_Score: double --- + ctotal(): Function to calculate eng + math + OOP-2 with double return type. + Takedata(): Function to accept values for student ID, Student Name, eng, OOP-2, maths and invoke ctotal() to calculate total. + Showdata(): Function to display all the data members on the screen.
-
[OOP] The class Person with private attributes name(string) and age(int).
The class contains three functions.
-
One with no parameter (for initializing default value).
-
With two parameters (one parameter with default value).
-
Function to display the data.
Person --- + Name: String + Age: int --- + Display() <constructor> + Person() <constructor> + Person(a: int)
-
-
[OOP] Inheritance: https://github.com/Rustam-Z/cpp-programming/tree/main/OOP2_Lab6
-
[OOP] Encapsulation: https://github.com/Rustam-Z/cpp-programming/tree/main/OOP2_Lab7
Write a C++ menu-driven program to get employee details, display employee details, and display monthly salary details of employees.****
Employee --- - Employee_ID: String - Employee_Name: String - No_of_Hours_Work: int - Rate_per_Hour: int --- + setEmployee_ID(String) + getEmployee_ID(): String + setEmployee_Name(String) + getEmployee_Name(): String + setNo_of_Hours_Work(int) + getNo_of_Hours_Work(): int + setRate_per_Hour(int) + getRate_per_Hour(): int + getTotal_Monthly_Salary(): double
-
[OOP] Polymorphism: https://github.com/Rustam-Z/cpp-programming/tree/main/OOP2_Lab8
More questions can be found in the LAB folders above.
- 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.
- 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.)
- Taxi/cab sharing app
- University education portal (providing all information about undergraduate, postgraduate, and doctoral programs offered, facilities available, location & map, and fee structure in all the universities)
- 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)
- Library management system
- E-content management system
- Plagiarism checker & file management system
- Hotel reservation & management portal
- Restaurant management
- Healthcare consulting system (doctors with different specializations for consultation, hospitals with all facilities for treating different diseases & abroad - one-stop portal for all consultations and treatments)
- Electronic health record management system with built-in security
- Pharmacy - medical store management
- Blood bank system
- Online shopping and delivery system (like Amazon)
- Online car shopping
- Tourism portal
- World tourism portal
- Higher education abroad portal
- Job search/recruitment portal
- Company resource management system
- Attendance monitoring system with fingerprints verification
- Face recognition - based attendance checking system
- Aircraft communication and monitoring system
- Ticket booking management system for concert ceremonies
- All store stock management (inventory control)
- Multiplayer gaming applications
- City traffic monitoring and control system
- Police traffic violation reporting & control system
- The marriage function hall booking & food/music arrangement system
- Any vehicle (car, bus, heavy vehicles for parties, functions, family picnics, long-distance travel) booking portal
- Teacher-assisted program writing environment for students
- Doctors reservation system for patients
- Bus reservation & tracking system
- Railway booking and train tracking system
- Warehouse management system
- Courier tracking, cargo, and freight transportation
- Online code testing system
- Online quiz system (with total security of identifying the students during the quiz, monitoring the students’ activities during the quiz, selection of different quiz questions for each student, development of a large quiz question bank containing hundreds of quiz questions in each subject considering all courses taught at the university)
- Land/house/apartment rental & purchase portal
- Housecleaning, plumbing, electricity service & maintenance system
- Human organ transplantation management system
- Covid-19 tracking, testing, treatment & hospital management system
- Cryptocurrency trading portal (exchange) allowing trading of all crypto coins using security, confidentiality, and authentication
- Parking management system
- Online food delivery system (linked to all restaurants in different districts in different regions in some countries)
- *Food ordering system | Get order → print cheque as PDF file → see order status on separate HTML page.
- *Weather app that recommends what to wear as a telegram bot.
- *QR code generator, as a CLI tool, as a telegram bot.
- *Remainder application (crontab tool) as a telegram bot, as a CLI application.
- *Build own URL shortener as a telegram bot, as a CLI application, web app.
- Math library with functions as a library.
- Lost and found as a web app.