C++ Program to Convert Infix to Postfix Using Stack

Previous Next In this article, you will write a C++ program to convert infix expression to a postfix expression using stack operations. This program is written using Turbo C++ compiler on a Windows 7 64-bit PC. You can use any other suitable C++ compiler and it will still work. Make sure to change the syntax … Read more

C++ Program to Compute Sum of n^2/(n-1) Series

In mathematics, there are many series whose sum is calculated using computer programs to reduces the effort of doing enormous computations. This example program computes the sum of series ( ). The user has to input the value of n. To write such programs you must be careful about two things – accuracy and type … Read more

C++ Program to Find Trigonometric Ratios

This program is a demonstration of the use of C++ math header. Given 3 sides or angle values of a triangle, this program computes all 6 trigonometric ratios and print the result to the console. The trigonometric ratios are calculated using builtin function from math.h header file. Learn the basics of C programming before you … Read more

C++ Operator Classification

The C++ programming language offers different types of operators. These operators are used in expressions that evaluate to a single value. Sometimes the operator is used in decision making that changes the flow of the program. Here is the diagram that classifies C++ operators into different categories. Arithmetic Operators Operator Description + Addition operation – … Read more

C++ Program to Implement Queue using Arrays

Previous Next Queue is a linear data structure and it works on the principle of First In, Last Out (FILO). One of the common ways to implement a queue is using arrays. The elements are inserted at the front of the queue and removed from the rear of the queue. Before you learn about how … Read more

C++ Program to Compute Net Present Value (NPV)

Previous Next This is a simple C++ program to compute Net Present Value ( NPV ) for a imaginary project. The NPV is computed to analyses an investment taking into account its discounted cash inflows for a specific period of time. The program is intended for both beginners and intermediate learners of C++ programming.  Dev-C++ … Read more

C++ Program to Print Pascal Triangle

Previous Next In this article, you will learn to write a C++ program to print pascal triangle. A Pascal triangle is a very important mathematical concept. It is named after French mathematician Blaise Pascal. A Pascal triangle is used to find the coefficients of a binomial expansion . Read: C++ program to print number triangles … Read more

C++ Program to Print Number Triangles

The program to print number triangles uses two loops (usually while or for loop) and prints a triangle of numbers. In this example, we will see four such patterns of number triangle. This program is written using Dev C++ version 4.9.9.2 installed on a Windows 7 64-bit PC. You may use any standard C++ compiler … Read more

C++ Program for Compound Interest Calculations

Previous Next In this example program for interest calculations, we will compute three different types of interests given the input – the principal amount, rate and time period. The program intend to demonstrate the use of functions with return values for intermediate level learners of C++ programming. This program is written using DEV C++ compiler … Read more

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Exit mobile version