Friday, December 18, 2020

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();
        }
    }
}


Tuesday, December 15, 2020

Odd and Even Numbers Using Flowgorithm (TAGALOG VERSION)

Bubble Sort in Java

One Dimensional Array Declaration in Java

Bubble Sort in Java

  Machine Problem in Java

 Write a program that will a series of numbers and then it will sort it using bubble sort algorithm in Java 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

import java.util.Scanner;


/**

 * Machine Problem in Java

 * 

 * Write a program that will a series of numbers and then it will sort it using 

 * bubble sort algorithm in Java programming language.

 * 

 @author Jake Rodriguez Pomperada,MAED-IT, MIT

 www.jakerpomperada.com / www.jakerpomperada.blogspot.com

 jakerpomperada@gmail.com

 Bacolod City, Negros Occidental Philippines

 December 15, 2020  Tuesday   10:22

*/


public class Bubble_Sort {


public static void main(String[] args) {

// TODO Auto-generated method stub

Scanner input=new Scanner(System.in);  

 

int elements[]=new int[100];

System.out.println("\n");

     System.out.print("\t\tBubble Sort in Java");

System.out.println("\n");

 


System.out.print("Enter the number of elements you want to store: ");  

  

int n=input.nextInt();  

  

System.out.println();

for(int i=0; i<n; i++)  

{  

System.out.print("Enter the element No. " + (i+1) + " : ");     

     elements[i]=input.nextInt();  

 

}  

 

System.out.println();

    System.out.println("UnSorted Items of Arrays");

    System.out.println();

    

for(int i=0; i<n; i++)  

{  

//reading array elements from the user   

    System.out.print("" + elements[i] + " ");

 

}  


     // Bubble Sort Routine Here

 

        for (int i = 0; i < n-1; i++)

            for (int j = 0; j < n-i-1; j++)

                if (elements[j] > elements[j+1])

                {

                    

                    int temp = elements[j];

                    elements[j] = elements[j+1];

                    elements[j+1] = temp;

                 }

        

        System.out.println("\n");

        System.out.println("Sorted Items of Array");

        System.out.println();

for(int i=0; i<n; i++)  

{  

    System.out.print("" + elements[i] + " ");

 

}  

 

System.out.println("\n");

     System.out.print("\tEnd of Program");

      System.out.println("\n");

input.close();

        

        

}


}


 

One Dimensional Array Declaration in Java

  Machine Problem in Java

 Write a program that will a series of numbers 10, 20, 30, 40, 50, 60, 70. and 80  using a one-dimensional array in Java 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

package One_Dimensional_Array;


/**

 * Machine Problem in Java

 * 

 * Write a program that will a series of numbers 10, 20, 30, 40, 50, 60, 70, and 80

 * using a one-dimensional array in Java programming language.

 * 

 @author Jake Rodriguez Pomperada,MAED-IT, MIT

 www.jakerpomperada.com / www.jakerpomperada.blogspot.com

 jakerpomperada@gmail.com

 Bacolod City, Negros Occidental Philippines

 December 15, 2020  Tuesday   10:22

*/



public class One_Dimensional_Array {


public static void main(String[] args) {

// TODO Auto-generated method stub

int elements[]=new int[8];//declaration and instantiation  

elements[0]=10;//initialization  

elements[1]=20;  

elements[2]=30;  

elements[3]=40;  

elements[4]=50;

elements[5]=60;  

elements[6]=70;  

elements[7]=80;  

System.out.println("\n");

     System.out.print("\t\tOne Dimensional Array Declaration in Java");

System.out.println("\n");

 

//traversing array  

System.out.print("\t");

for(int a=0; a<elements.length;a++)//length is the property of array  

System.out.print(" " + elements[a] + " ");

 

        System.out.println("\n");

    System.out.print("\tEnd of Program");

        System.out.println("\n");

}


}


  

Sunday, December 13, 2020

Addition of Three Numbers Using Modern C++

Addition of Three Numbers Using Modern C++

 Machine Problem in C++

Write a program that will ask the user to give three numbers and then the program will compute its sum using Modern C++ approach.

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_of_three_numbers.cpp
   Jake Rodriguez Pomperada,MAED-IT,MIT
   www.jakerpomperada.com
   www.jakerpomperada.blogspot.com
   jakerpomperada@gmail.com
   December 13, 2020
   Bacolod City, Negros Occidental


Machine Problem in C++

Write a program that will ask the user to give three numbers
and then the program will compute its sum using Modern C++
approach.

*/

#include <iostream>


int main()
{
    int a=0, b=0, c=0, sum=0;
    
    std::cout << "\n\n";
    std::cout << "\tAddition of Three Numbers Using Modern C++";
    std::cout << "\n\n";
    std::cout << "\tEnter First Number  : ";
    std::cin >> a;
    std::cout << "\tEnter Second Number : ";
    std::cin >> b;
    std::cout << "\tEnter Third Number  : ";
    std::cin >> c;

    sum = (a+b+c);
    
    std::cout << "\n\n";
    std::cout << "\tThe sum of " <<a << "," << b << ","
              << " and " << c << " is "  << sum << ".";
   
    std::cout << "\n\n";
    std::cout << "\tEnd of Program";
    std::cout << "\n";
}

Sum and Product of Two Numbers Using Modern C++