Loading repository data…
Loading repository data…
Rustam-Z / repository
🦕 Learn your first programming language with projects and tasks. C++ Programming & Introduction to Computer Science. You can find Lab Assignments and solutions, interesting C++ programs, and lots of different resources to start learning coding with C++.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
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.
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
age and membership_status as user input. membership_status can be only Y or y. 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 program to calculate taxes, with the following conditions:
Hint: Formula for finding tax (salary * percentage) / 100
You must output:
Switch:
switch statement. Display Monday to Sunday.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.
Program to print Fibonacci series up to 100.
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 s