Product Discount Solver in C++
 A program to compute the product discount of a certain product using C++ programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following,, and

My mobile number here in the Philippines is 09173084360.

Please subscribe to my channel


You can buy my C++ book online at  

Beginner’s Guide To C++ Programming
You can buy my book in introduction to computer networking at Want to support my channel? GCash Account Jake Pomperada 09173084360 Paypal Patreon Thank you very much for your support.

Program Listing

#include <iostream>
#include <iomanip>
using namespace std;

int main() {
   double originalPrice, discountPercentage, discountedPrice;

   cout << "\tProduct Discount Solver in C++\n\n";
   cout << "Enter the original price of the product: ";
   cin >> originalPrice;

   cout << "Enter the discount percentage: ";
   cin >> discountPercentage;

   discountedPrice = originalPrice - (originalPrice * (discountPercentage/100));

   cout << "The discounted price is $" << fixed << setprecision(2) << discountedPrice << endl;

   return 0;