Saturday, December 19, 2020

Addition of Two Numbers in Python

Addition of Two Numbers in Python

 In this article I would like to discuss how to write a program to ask the user to give two numbers and then the program will compute the sum of two numbers using Python programming language.

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 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.






Program Listing


# Addition_Two_Numbers.py

# Jake Rodriguez Pomperada, MAED-IT, MIT

# www.jakerpomperada.com

# www.jakerpomperada.blogspot.com

# jakerpomperada@gmail.com

# Bacolod City, Negros Occidental Philippines


print()

print("\tAddition of Two Numbers in Python")

print()

a = int(input("\tEnter First Value    :  "))

b = int(input("\tEnter Second Value   :  "))


addition = (a+b)


print()

print("\tThe sum of {0} and {1} is {2}.".format(a,b,addition))

print()

print("\tEnd of Program")

print()


Product of Two Numbers in Python

Product of Two Numbers in Python

 A program to ask the user to give two numbers and then the program will compute the product of two given numbers using Python 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 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.







Program Listing


# product.py
# Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.com
# www.jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# Bacolod City, Negros Occidental Philippines

print()
print("\tProduct of Two Numbers in Python")
print()
a = int(input("\tEnter First Value    :  "))
b = int(input("\tEnter Second Value   :  "))

product = (a*b)

print()
print("\tThe product of {0} and {1} is {2}.".format(a,b,product))
print()
print("\tEnd of Program")
print()

Friday, December 18, 2020

Payroll System in C++ Using OOP Approach

Payroll System in C++ Using OOP Approach

  Machine Problem in C++

  Write a program to ask the user to give the employee's name, the number of days work, and rate per day. The program will compute the salary of the employee using object-oriented programming approach in C++.

 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 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing

/* 

 Machine Problem in C++
 
 Write a program to ask the user to give the employees name,
 number of days work, and rate per day. The program will
 compute the salary of the employee using object-oriented
 programming approach in C++.
 
 payroll.cpp
 Mr. Jake Rodriguez Pomperada, MAED-IT,MIT
 www.jakerpomperada.com
 www.jakerpomperada.blogspot.com
 jakerpomperada@gmail.com
 Bacolod City, Negros Occidental Philippines
 
 */

#include <iostream>
#include <iomanip>

using namespace std;


class payroll {

    private:

    string name;
    int days_work;
    float rate;
    float solve;

    public :

      int get_info();
      void display_info();
};

 int payroll :: get_info()
 {

     cout << "\n\n";
     cout << "\tPayroll System in C++ Using OOP Approach";
     cout << "\n\n";
cout << "\tEnter Employees Name     : ";
     getline(cin,name);
     cout << "\tEnter No. of Days Worked : ";
     cin >> days_work;
     cout << "\tEnter Daily Rate         : ";
     cin >> rate;
     cout << fixed << setprecision(2);
     solve = (days_work * rate);
 }

 void payroll ::display_info()
    {

     cout << "\n\n";
     cout << "\t==== DETAILED REPORT =====";
     cout << "\n\n";
     cout << "\tEmployees Name     : " << name <<"\n";
     cout << "\tEmployees Salay is : $" << solve <<"\n";
     cout << "\n\n";
    }


    main() {
        payroll emp;
        emp.get_info();
        emp.display_info();

    }



Login System With Asterisk in C++

Login System With Asterisk in C++

 Machine Problem in C++

 Write a program to ask the user to give a password and the program will check if the password is right or not.  The program will hide the password using an asterisk character and the user can press the backspace for correction of the password. The program will repeat running itself if the given password is incorrect and exit when the right password is given by the user of the program.

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 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.




Program Listing

/* 

 Machine Problem in C++
 
 Write a program to ask the user to give a password
 and the program will check if the password is right or not.
 The program will hide the password using an asterisk character
 and the user can press the backspace for correction of the
 password. The program will repeat running itself if the 
 given password is incorrect and exit when the right password
 is given by the user of the program.
 
 password.cpp
 Mr. Jake Rodriguez Pomperada, MAED-IT,MIT
 www.jakerpomperada.com
 www.jakerpomperada.blogspot.com
 jakerpomperada@gmail.com
 Bacolod City, Negros Occidental Philippines
 
 */

#include <iostream>
#include <conio.h>
#include <string>

using namespace std;

const int PASSLEN = 4;

string passget();


void start()
{

string password;
cout << "\n\n";
cout << "\tLogin System With Asterisk in C++";
cout << "\n\n";
cout << "\tEnter Your Password: ";
password = passget();

if (password == "jake") {
    cout << "\n\n";
    cout << "\tPassword Accepted";
    cout << "\n\n\n";
    cout << "\t\t Thank You For Using this Software";

}
else {
    cout << "\n\n";
    cout << "\tPassword Denied Try Again !!!";
    start();
}
}  // End of Start Function


int main()
{
    start();
getch();
}

string passget()
{
char password[PASSLEN], letter;
int loop;
int len;
string password2;

//Get Password and replace letters with *--------------
loop = 0;
while(loop != PASSLEN)
{
password[loop] = '\0';
loop++;
}
loop = 0;
len = 0;
letter = '\0';
while( letter != '\r' )
{
letter = getch();
if( letter == '\b' && password[0] == '\0')
{
loop = 0;
len = 0;
}
else
{
if( letter == '\b' && password[0] != '\0')
{
cout << "\b";
cout << " ";
cout << "\b";
loop--;
password[loop] = '\0';
len--;
}
else
{
if( isprint( letter ) != 0 && loop < PASSLEN)
{
password[loop] = tolower(letter);
cout << "*" ;
}
loop++;
if (loop <= PASSLEN)
len++;
}
}
}

//Convert Password from character array to string
loop = 0;
len = len;
password2 = "";
while (loop != len)
{
password2 = password2+password[loop];
loop++;
}

return password2;
 } // End of Function Password


Reverse a String in C++

Reverse a String in C++

 Machine Problem in C++

  Write a program to ask the user to give a string and then the program will reverse the given string and display the results on the screen.

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 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing


/* 


 Machine Problem in C++

 

 Write a program to ask the user to give a string and then

 the program will reverse the given string and display the

 results on the screen.

 

 reverse_string.cpp

 Mr. Jake Rodriguez Pomperada, MAED-IT,MIT

 www.jakerpomperada.com

 www.jakerpomperada.blogspot.com

 jakerpomperada@gmail.com

 Bacolod City, Negros Occidental Philippines

 

 */

 

#include <iostream>



int main() {

 

  std::string greeting,display_original;

  

  std::cout << "\n\n";

  std::cout << "\tReverse a String in C++";

  std::cout << "\n\n";

  std::cout << "\tGive a String : ";

  std::getline(std::cin,greeting);

  

  display_original = greeting;

  

  int len = greeting.length();

  int n=len-1;

  for(int i=0;i<(len/2);i++){

  

    std::swap(greeting[i],greeting[n]);

    n = n-1;


  }

    

  std::cout << "\n\n";

  std::cout << "\tDisplay Results";

  std::cout << "\n\n";

  std::cout << "\t Original String : " << display_original;

  std::cout << "\n\n";

  std::cout << "\t Reverse  String : " << greeting;

  std::cout << "\n\n";

  std::cout << "\tEnd of Program";

  std::cout << "\n\n";

  }



Positive and Negative Number Checker in Flowgorithm

Addition of Two Numbers in C Tagalog Version

Addition of Two Numbers in C (Tagalog Version)

 In this video I will teach how to write a C program to add two numbers in tagalog version.

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 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.




Program Listing

/* addition.c

   Jake Rodriguez Pomperada, MAED-IT, MIT

   jakerpomperada.blogspot.com

   jakerpomperada.com

   jakerpomperada@gmail.com

   Bacolod City, Negros Occidental Philippines

 */

 

 #include <stdio.h>

 

 int main() {

 

  int sum=0,a=0,b=0;

 

  printf("\n\n");

  printf("\tAddition of Two Numbers in C ");

  printf("\n\n");

  printf("\tEnter First  Value : ");

  scanf("%d",&a);

  printf("\tEnter Second Value : ");

  scanf("%d",&b);

 

  sum = a + b;

 

  printf("\n\n");

  printf("\tThe sum of %d and %d is %d."

     ,a,b,sum);

printf("\n\n");

printf("\tEnd of Program");     

printf("\n\n");

 }

   

Thursday, December 17, 2020

Automatic Teller Machine Simulation in C++

Automatic Teller Machine Simulation in C++

 Machine Problem in C++

 Write a C++ program to simulates the operation of an Automatic Teller Machine.

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 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.




Program Listing

#include <iostream>


/*

 Machine Problem in C++

 

 Write a C++ program to simulates the operation of an

 Automatic Teller Machine.

*/

// Created By Mr. Jake R. Pomperada, MAED-IT, MIT

// www.jakerpomperada.blogspot.com

// www.jakerpomperada.com

// jakerpomperada@gmail.com

// Bacolod City, Negros Occidental Philippines


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;

 

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";

}


Average of Three Numbers in C# Windows Form

Average of Three Numbers in C# Windows Form

 Machine Problem in C#

Create a C# program that accepts three numbers from the user and returns the average of the three numbers.

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 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





 

Program Listing

Form1.cs


 // Machine Problem in C#

//

// Create a C# program that accepts three numbers from the user and returns the average of the three numbers.

// 

//  Mr. Jake Rodriguez Pomperada, MAED-IT, MIT

//  www.jakerpomperada.com

//  www.jakerpomperada.blogspot.com

//  jakerpomperada@gmail.com

//  Bacolod City, Negros Occidental


 

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;


namespace WindowsFormsApplication1

{

    public partial class Form1 : Form

    {

        public Form1()

        {

            InitializeComponent();

        }


        public static double Average(double n1, double n2, double n3)

        {

            double avrg = (n1 + n2 + n3) / 3;

            return avrg;

        }


        private void button1_Click(object sender, EventArgs e)

        {

            double num1, num2, num3;

            double avg;


            num1 = Convert.ToInt32(textBox1.Text);

            num2 = Convert.ToInt32(textBox2.Text);

            num3    = Convert.ToInt32(textBox2.Text);


            avg = Average(num1, num2, num3);


            textBox4.Text = avg.ToString("0.00");

        }


        private void button2_Click(object sender, EventArgs e)

        {

            textBox1.Text = "";

            textBox2.Text = "";

            textBox3.Text = "";

            textBox4.Text = "";

            textBox1.Focus();

        }


        private void button3_Click(object sender, EventArgs e)

        {

            this.Close();

        }

    }

}


Wednesday, December 16, 2020

Addition and Product of Two Numbers in C# Windows Form

Addition and Product of Two Numbers in C# Windows Form

 In this tutorial I will show you how to write a program that will ask the user to give two numbers and then it will compute the addition and product of two  numbers using C# windows form.

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 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            int first,second;
            int add,product;

            first = Convert.ToInt32(textBox1.Text);
            second = Convert.ToInt32(textBox2.Text);
            add = first + second;
            product = first * second;
            textBox3.Text = (add.ToString());
            textBox4.Text = (product.ToString());
        }

        private void button3_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            textBox1.Text = "";
            textBox2.Text = "";
            textBox3.Text = "";
            textBox4.Text = "";
            textBox1.Focus();
        }
    }
}