Learn Computer Programming Free from our source codes in my website.
Sponsored Link Please Support
https://www.techseries.dev/a/27966/qWm8FwLb
https://www.techseries.dev/a/19181/qWm8FwLb
My Personal Website is http://www.jakerpomperada.com
Email me at jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Saturday, April 3, 2021
Count Number of Words From a Text File in Python
In this program I will show you how to count the number of words from a text file 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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
data.txt
Python Programming is Fun and Profit
Professor Jake Rodriguez Pomperada
reading_textfile.py
# reading_textfile.py
# Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.com www.jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# April 3, 2021
# Bacolod City, Negros Occidental
print()
print("\tCount Number of Words From a Text File in Python");
print()
try:
print()
fr = open("data.txt","r")
for line in fr:
line = line.strip("\n")
print(line.upper())
words = line.split()
print()
print('Total number of words: ', len(words))
print("-----------------------------------------------")
print()
print("\tEND OF PROGRAM");
print()
fr.close()
except FileNotFoundError:
print("File is not found")
Factorial Using Functions in Go
A simple program that I wrote to solve a factorial value of a given number using a function and recursion concepts in go 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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
Two Dimensional Arrays in Go
In this article I would like to share how to declare and use two-dimensional arrays using Go 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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Friday, April 2, 2021
Simple CRUD with Search in PHP and MySQL
A simple crud and search in php and mysql 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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
crud_search.sql
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 01, 2021 at 11:29 PM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.4.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `crud_search`
--
-- --------------------------------------------------------
--
-- Table structure for table `contacts`
--
CREATE TABLE `contacts` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL,
`email` varchar(100) NOT NULL,
`contact` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `contacts`
--
ALTER TABLE `contacts`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `contacts`
--
ALTER TABLE `contacts`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Thursday, April 1, 2021
How to connect to database in PHP and MySQL
In this tutorial I will show you how to connect in database in PHP and MySQL.
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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
index.php
<?php
$servername = "localhost";
$database = "crude";
$username = "root";
$password = "";
// Create connection
$conn = mysqli_connect($servername, $username, $password, $database);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully to the database.";
mysqli_close($conn);
?>
Paper,Scissors, and Rocks Game in Python
A simple program paper,scissors, and rocks game that I wrote 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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
# Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.com www.jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# February 23, 2021
# Bacolod City, Negros Occidental
print()
print("\tPaper,Scissors, and Rocks Game in Python");
print()
p1 = str(input("Player1: "))
p2 = str(input("Player2: "))
if (p1.lower() =='p') and (p2.lower() =='r'):
print("Player 1 wins! Paper covers rock!")
elif (p2.lower() == 'p') and (p1.lower() == 'r'):
print("Player 2 wins! Paper covers rock!")
elif (p1.lower() == 's') and (p2.lower() == 'p'):
print("Player 1 wins! Scissors cuts paper!")
elif (p2.lower() == 's') and (p1.lower() == 'p'):
print("Player 2 wins! Scissors cuts paper!")
elif (p1.lower()=='r') and (p2.lower()=='s'):
print("Player 1 wins!. Rock breaks scissors")
elif (p2.lower()=='r') and (p1.lower()=='s'):
print("Player 2 wins!. Rock breaks scissors")
elif (p1.lower()=='p') and ( p2.lower()=='p'):
print("Draw!")
elif (p1.lower()=='r') and (p2.lower()=='r'):
print("Draw!")
elif (p1.lower() == 's') and (p2.lower() == 's'):
print("Draw!")
else:
if (p1.lower()!= 'p' or p1.lower() !='r' or p1.lower()!='s') \
and ( p2.lower()=='p' or p2.lower() == 'r' or p2.lower()=='s'):
print(f"Player 1 entered an invalid value \"{p1}\" ")
elif (p2.lower()!= 'p' or p2.lower()!='r' or p2.lower() !='s') \
and (p1.lower()=='p' or p1.lower() == 'r' or p1.lower() =='s'):
print(f"Player 2 entered an invalid value \"{p2}\" ")
else:
print(f"Player 1 entered an invalid value \"{p1}\" ")
print(f"Player 2 entered an invalid value \"{p2}\" ")
print()
print("\tEND OF PROGRAM");
print()
How to use Error_Reporting in PHP
In this tutorial I will teach you how to use error_reporting in PHP 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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Wednesday, March 31, 2021
Date in Modern C++
Machine Problem In C++
Write a program that will accept dates
written in the numerical form and then display them as a complete form. For
example, the input: 6 8 1978 the output
should be June 8, 1978.
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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
// date.cpp
// Mr. Jake R. Pomperada, MAED-IT, MIT
// www.jakerpomperada.com / www.jakerpomperada.blogspot.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental
#include <iostream>
#include <array>
#include <string>
const std::array<std::string, 13> month_names =
{
"Dummy", "January", "February", "March", "April", "Mai", "June",
"July", "August", "September", "October", "November", "December"
};
int main(int argc, char **argv)
{
int day, month, year;
std::cout <<"\n\n";
std::cout << "\tDate in Modern C++";
std::cout <<"\n\n";
std::cout << "\tEnter day month year(seperated by whitespace) : ";
std::cin >> month >> day >> year;
std::cout <<"\n\n";
std::cout << "\tDate : " <<month_names[month] << ' ' << day << ", " << year;
std::cout <<"\n\n";
std::cout << "\tEnd of Program";
std::cout <<"\n\n";
}