Thursday, March 10, 2022

Do You Want To Continue Yes Or No in Python

 A simple program to demonstrate do you want to continue yes or no in a 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 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.



Program Listing

while True:
print()
print("\tDo You Want To Continue Yes Or No in Python")
print()

print("Hello Again")
print()
cont = input("Another one? yes/no > ")

while cont.lower() not in ("yes", "no"):
cont = input("Another one? yes/no > ")

if cont == "no":
print()
print("\tThank you for using this software.")
break

Login Program in PHP and MySQL

Login Program Using PHP and MySQL

 A login program that I wrote using PHP and MySQL I hope you will learn from it and thank you for your support.

 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.





DOWNLOAD THE COMPLETE AND FREE SOURCE CODE HERE


Wednesday, March 9, 2022

Record Keeping App With Delete Function in Python

Record Keeping App With Delete Function in Python

 A record keep app with delete function that I wrote using Python programming language it demonstrate text file database programming. I hope you will like it.

 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.






Program Listing


# record keeping app with delete function in python
# Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.com and www.jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# Bacolod City, Negros Occidental Philippines

import os
import sys
from pathlib import Path


class Records:
def __init__(self, choice):
self.choice = choice
if choice == "A":
with open("record.txt", "r") as records:
for last_line in records:
pass
if last_line[0] == "#":
num = 1
else:
num = int(last_line[0]) + 1

name = input("Enter Name: ")
email = input("Enter Email: ")
address = input("Enter Address: ")
with open("record.txt", "a") as writeRecord:
writeRecord.write(f"{num}\t\t\t{name}\t\t\t{email}\t\t\t{address}\n")
elif choice == "B":
with open("record.txt", "r") as countRecords:
count = len(countRecords.readlines()[1:])

if count == 0:
print("There are no records!!")
print()
else:
with open("record.txt", "r") as readRecords:
print(readRecords.read())
elif choice == "C":
record_id = input("Enter Record #: ")
with open("record.txt", "r") as f:
lines = f.readlines()
with open("record.txt", "w") as readRecords2:
for line in lines:
if not line.startswith(record_id):
readRecords2.write(line)
print("Record Deleted.")
elif choice == "D":
print("No records found.")
with open("record.txt", "r+") as f:
f.truncate(0)
elif choice == "E":
sys.exit("Thank you!")
else:
print("Invalid response. Please try again.")


while True:
def createFile():
with open("record.txt", "w+") as create:
create.write("#\t\t\tName\t\t\t Email\t\t\t Address\n")
if Path("record.txt"):
if os.stat("record.txt").st_size != 0:
with open("record.txt", "r+") as readFirstLine:
first = readFirstLine.readlines()[0][0]
if first != "#":
readFirstLine.write("#\t\t\tName\t\t\t Email\t\t\t Address\n")
else:
createFile()
else:
createFile()

print("==========================================================")
print(" ~ Record Keeping App With Delete Function in Python ~")
print("===========================================================")
print("Available Operators:")
print("A) Add Record\t\tB) View Record")
print("C) Delete record\tD) Clear Records")
print("E. Exit\n")

selection = input('Enter selection: ').upper()
Records(selection)

Tuesday, March 8, 2022

Divide Two Numbers in Python

Divide Two Numbers in Python

 A simple program to ask the user to give two numbers and then the program will divide the given numbers and display the result on the screen 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 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.





Program Listing

while True:
print()
print("\tDivide Two Numbers in Python")
print()
# take inputs
num1 = float(input('Enter first number: '))
num2 = float(input('Enter second number: '))

# Divide numbers
division = num1 / num2

# print value
print("The division of {0} and {1} is {2}"
.format(num1, num2, division))
cont = input("Another one? yes/no > ")

while cont.lower() not in ("yes", "no"):
cont = input("Another one? yes/no > ")

if cont == "no":
print()
print("\tThank you for using this software.")
break

Monday, March 7, 2022

Factorial a Number Using For Loop in C

Factorial a Number Using For Loop in C

 A simple program that I wrote using C programming language to ask the user to give a number and then the program will compute the factorial value of a given number using for loop statement.

 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.





Program Listing

#include <stdio.h>  

int main()    
{    
 int i,fact=1,number=0;
int a=0;  char ch='x';
char equal = '=';

 printf("\n\n");
 printf("\tFactorial a Number Using For Loop in C");
 printf("\n\n");
 printf("\tGive a number: ");    
  scanf("%d",&number); 
    printf("\n\n");
    
    for(i=1;i<=number;i++){    
      fact=fact*i;  
     
  }  
  printf("\t");
  for (a=number; a>=1;a--) {
  if (a==1) {
  ch='\0';
 
  } 
   
  printf("%2d %c",a,ch);
 
  }
  printf("%c %d",equal,fact);
 
 printf("\n\n");
 printf("\tEnd of Program");
 printf("\n\n");
    
return 0;  
}   

Sunday, March 6, 2022

Object-Oriented Programming in Python

Object Oriented Programming in Python

 An object-oriented programming demonstration program that I wrote 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 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.




Program Listing

class Cellphone:
color = "Blue"
model = "Liquid Z6 Plus"
manufacturer = "Acer"


phone1 = Cellphone()
phone1.color = "Silver"
phone1.model = "iPhone 12 Pro"
phone1.manufacturer = "Apple"
print("First phone color: ", phone1.color)
print("First phone model: ", phone1.model)
print("First phone manufacturer: ", phone1.manufacturer)
print()

phone2 = Cellphone()
phone2.color = "Black"
phone2.model = "Evolve X"
phone2.manufacturer = "Blackberry"
print("Second phone color: ", phone2.color)
print("Second phone model: ", phone2.model)
print("Second phone manufacturer: ", phone2.manufacturer)
print()

phone3 = Cellphone()
phone3.color = "Sorta Sage"
phone3.model = "Pixel 5"
phone3.manufacturer = "Google"
print("Third phone color: ", phone3.color)
print("Third phone model: ", phone3.model)
print("Third phone manufacturer: ", phone3.manufacturer)
print()

phone4 = Cellphone()
phone4.color = "Frost Crystal"
phone4.model = "Honor 50 Pro"
phone4.manufacturer = "Honor"
print("Fourth phone color: ", phone4.color)
print("Fourth phone model: ", phone4.model)
print("Fourth phone manufacturer: ", phone4.manufacturer)
print()

Phone5 = Cellphone()
Phone5.color = "Blue"
Phone5.model = "Wildfire E3"
Phone5.manufacturer = "HTC"
print("Fifth phone color: ", Phone5.color)
print("Fifth phone model: ", Phone5.model)
print("Fifth phone manufacturer: ", Phone5.manufacturer)
print()

Saturday, March 5, 2022

Multiplication Table in C#

Multiplication Table in C#

 A simple multiplication table 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 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.





Program Listing

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;


namespace ConsoleApplication1

{

    class Program

    {

        static void Main(string[] args)

        {

            Console.Write("\n");

            Console.WriteLine("\t   MULTIPLICATION TABLE IN C#");


            for (int i = 1; i <= 10; i++)

            {

                Console.WriteLine("\n");


                for (int j = 1; j <= 10; j++)

                {

                    Console.Write("{0,4}", i * j);

                }


            }


            Console.Read();

        }

    }

}


Friday, March 4, 2022

Multiplication Table in JavaScript

Multiplication Table in JavaScript

 A simple program to display multiplication table using JavaScript 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 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.




Program Listing

<html>

  <head>

<title>Multiplication Table in JavaScript </title>

  </head>


 <style>

  body {

  font-family:arial;

    size: 16px;

 } 

</style>

 <body> 

  <script type="text/javascript">

document.write("<h2 align='center'> Multiplication Table in JavaScript</h2>");

document.write("<center><table border='1px'>");

for (var a = 1; a < 11; a++) {

  document.write("<tr style='height:40px'>");

  for (var b = 1; b < 11; b++) {

    document.write("<td style='width:40px'><center><font size='4'>" + a * b + "</center></font></td>");

  }

  document.write("</tr>");

}

document.write("</table></center>");

</script>

</body>

</html>

String Copy and String Reverse in C++

String Copy and String Reverse in C++

 A simple program to demonstrate string copy and string reverse 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 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.





Prorgam Listing


#include <iostream>

#include <cstring>


using namespace std;


int main()

{

  char str1[50]="COMPUTER PROGRAMMING IS MY HOBBY.";

  char str2[7];

  

  

  strncpy(str2,str1,20);

  

  cout <<"\n\n";

  cout <<"\tString Copy and String Reverse in C++";

  cout <<"\n\n";

  cout<<"str1:"<<str1<<endl

      <<"str2:"<<str2<<endl;

 

cout<<strrev(str2)<<endl;

}

Thursday, March 3, 2022

Guess a Number in C++

Guess a Number in C++

 A simple guess a number program written in 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 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.





Program Listing

#include <iostream>
#include <ctime>

const int MaxGuesses = 10;

int main()
{
     int num_guesses = 0, input = 0;
     bool found = false;

     srand(time(nullptr));
     int number_to_guess = (rand() % (999 - 100 + 1)) + 100;
     std::cout << "Number to guess: " << number_to_guess << "\n";
  std::cout << "\n\n";
      std::cout << "\tGuess a Number in C++ ";
      std::cout << "\n\n";
     while (num_guesses < MaxGuesses && !found)
     {

         std::cout << "Enter number between 100 and 999: ";
         std::cin >> input;
         num_guesses++;
         // maybe do some input validation here
         if(input == number_to_guess)
         {
             found = true;
             std::cout << "You found it!\n";
             break;
         }
     }
     if(!found) // only wrong guesses
         std::cout << "Sorry, you didn't guess it.\n";
}

Multiplication Table Using Nested For Loop in C