Categories
C++

Automatic Teller Machine Simulation in C++

A simple program that I wrote using a C++ programming language to simulate the Automatic Teller Machine operation.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, IT projects, school and application development, programming projects, thesis, and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in 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 jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.
Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.
My personal website is http://www.jakerpomperada.comMy programming website is http://www.jakerpomperada.blogspot.com
I am also a book author you can purchase my books on computer programming and information technology in the following links below.
https://www.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/

Sample Program Output
#include <iostream>

// Created By Mr. Jake R. Pomperada, MAED-IT
// C++   October 19, 2018
// www.jakerpomperada.com

using namespace std;


int main()

{
		int bill500=0, bill200=0, bill100=0, total_balance=0;
		int withdraw=0, money_left=0;
		int reciv500=0, reciv200=0, reciv100=0;
		char withdraw_again[2] = "N";
		 
		 system("COLOR F0");  
	     cout <<"\n\n";
         cout <<"\t Automatic Teller Machine Simulation in C++";
		 cout <<"\n\n";
		 cout <<"\tHow many P500 bills: ";
		 cin >>bill500;
		 cout <<"\tHow many PHP 200 bills: ";
		 cin >>bill200;
		 cout <<"\tHow many PHP 100 bills: ";
		 cin >> bill100;
		 total_balance = 	(bill500 * 500 + (bill200 * 200 +  (bill100 * 100)) );

		 cout <<"\tTotal Balance: PHP :" << total_balance;

	 do

	 {
		 cout <<"\n";
		 cout <<"\n";

		 cout <<"\tEnter amount to withdraw: PHP ";
		 cin >>withdraw;
		 money_left = withdraw ;

		 if  (withdraw > total_balance)
				{
				cout <<"\tWithdraw amount greater than total balance.  ";
				cout <<"\n";
				}
		 if (withdraw < total_balance)
		 {
		 if  (money_left >= 500) 
				{
				 reciv500 = int(money_left / 500);
				 if (reciv500 > bill500)  reciv500 = bill500;

				 money_left = money_left - (reciv500 * 500);
				 bill500 = bill500 - reciv500;
				}

		 if (money_left >= 200) 
			 {
				 reciv200 = int(money_left / 200);
				 if (reciv200 > bill200)  reciv200 = bill200;
				 money_left = money_left - (reciv200 * 200);
				 bill200 = bill200 - reciv200;
			 }

		 if (money_left >= 100) 
			  {
				 reciv100 = int(money_left / 100);
				 if (reciv100 > bill100)  reciv100 = bill100;
				 money_left = money_left - (reciv100 * 100);
				 bill100 = bill100 - reciv100;
				}

				cout <<"\n";
				cout <<"\n";
				cout <<"\tYou will receive:";
				cout <<"\n";
				cout <<"\t  PHP 500 bill : " << reciv500;
				cout <<"\n";
				cout <<"\t  PHP 200 bill : " << reciv200;
				cout <<"\n";
				cout <<"\t  PHP 100 bill : " << reciv100;
				cout <<"\n";


				total_balance = total_balance - withdraw;

				cout <<"\tYour current balance is: PHP " <<total_balance;
				cout <<"\n";
				cout <<"\n";
				cout <<"\tYou only have balance of:";
				cout <<"\n";
				cout <<"\t PHP 500 bill   : "  << bill500;
				cout <<"\n";
				cout <<"\t  PHP 200 bill  : " << bill200;
				cout <<"\n";
				cout <<"\t  PHP 100 bill  : " << bill100;
				cout <<"\n"; 
 				cout <<"\n\n";
				cout <<"\tAnother Withdraw Again ? Y/N : ";
				cin >>withdraw_again;

		 }

	 }  while (withdraw_again == "Y" || withdraw_again == "y");
     cout <<"\n\n";
     cout <<"\tEnd of Program";
     cout <<"\n\n";
}

Categories
C++

cout in C++

I wrote this program to show how to declare and use the cout statement in the C++ programming language. I am using code blocks as my text editor and g++ as my c++ compiler in writing this simple program.


My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.comMy programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

Home

https://www.unlimitedbooksph.com/

Sample Program Output

Program Listing
// cout.cpp
// February  19, 2020
// Bacolod City, Negros Occidental Philippines

#include <iostream>

using namespace std;


int main()
{
    cout <<"\n\n";
    cout <<"\tAuthor : Jake Rodriguez Pomperada";
    cout <<"\n\n";
    cout << "\tSample Text Display Using cout in C++";
    cout <<"\n\n";
    cout <<"\tEnd of Program";
    cout <<"\n\n";
}
Categories
C++

Leap Year Checker in C++

I wrote this simple program in C++ to ask the user to give a year and then the program will check and determine if the year is a leap year or not a leap year.

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 in 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 jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.
https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/

My tutorial video in my YouTube channel

Sample Program Output
Sample Program Output

Program Listing

leap_year.cpp

#include <iostream>
#include <stdlib.h>

using namespace std;

int main()
{
    int year=0;

    cout <<"\n\n";
    cout <<"\tLeap Year Checker in C++";
    cout <<"\n\n";
    cout <<"\tGive a Year : ";
    cin >> year;
    cout <<"\n\n";
        
    if (year % 4 == 0) 
    {
      if (year % 100 == 0) 
       {
          if (year % 400 == 0)
               cout <<"\t"<< year << " is a Leap Year.";
             else
               cout <<"\t"<< year << " is Not a Leap Year.";              
       }       
     else 
        cout <<"\t"<< year << " is a Leap Year.";
        }
     else 
      cout <<"\t"<< year << " is Not a Leap Year.";    
      
    cout <<"\n\n";
    cout <<"\tEnd of Program";
    cout <<"\n\n";  
    system("pause");
}