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
Friday, July 9, 2021
Simple Room Reservation System in PHP
A simple room reservation system that I wrote using 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 at my email address also. Thank you.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
My mobile number here in the Philippines is 09173084360.
Program Listing
reservation.sql
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 07, 2021 at 01:49 PM
-- Server version: 10.4.18-MariaDB
-- PHP Version: 8.0.3
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: `room_reservation`
--
-- --------------------------------------------------------
--
-- Table structure for table `reservations`
--
CREATE TABLE `reservations` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL,
`room` varchar(100) NOT NULL,
`date_reserved` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `reservations`
--
ALTER TABLE `reservations`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `reservations`
--
ALTER TABLE `reservations`
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 */;
Wednesday, July 7, 2021
Simple Math Calculator in JavaScript
A simple math calculator that I wrote 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 at the following email address for further details. If you want to advertise on my website, kindly contact me also at my email address also. Thank you.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
My mobile number here in the Philippines is 09173084360.
Program Listing
index.htm
<html>
<style>
body {
background-color:lightgreen;
font-family:arial;
font-size:20px;
font-weight:bold;
color:blue;
}
p {
font-family:arial;
font-size:20px;
font-weight:bold;
color: blue;
}
div.text {
margin: 0;
padding: 0;
padding-bottom: 1.25em;
}
div.text label {
margin: 0;
padding: 0;
display: block;
font-size: 100%;
padding-top: .1em;
padding-right: 2em;
width: 8em;
text-align: right;
float: left;
}
div.text input,
div.text textarea {
margin: 0;
padding: 0;
display: block;
font-size: 100%;
}
input:active,
input:focus,
input:hover,
textarea:active,
textarea:focus,
textarea:hover {
background-color: lightyellow;
border-color: yellow;
}
</style>
<body><br>
<h2 align="left"> Simple Math Calculator in JavaScript </h2>
<br>
<div class="text">
<label for="val1">Item Value No. 1</label>
<input type="text" size="5" name="val1" id="val1" maxlength="5"/>
</div>
<div class="text">
<label for="val2">Item Value No. 2</label>
<input type="text" size="5" name="val2" id="val2" maxlength="5"/>
</div>
<button onclick="compute()" title="Click here to find the result."> Ok </button>
<button onclick="clear_all()" title="Click here to clear the text fields."> Clear </button>
<br><br><br>
<p id="display1"> </p>
<p id="display2"> </p>
<p id="display3"> </p>
<p id="display4"> </p>
<script>
function compute()
{
var val1 = document.getElementById('val1').value;
var val2 = document.getElementById('val2').value;
var sum = parseInt(val1) + parseInt(val2);
var subtract = parseInt(val1) - parseInt(val2);
var product = parseInt(val1) * parseInt(val2);
var quotient = parseInt(val1) / parseInt(val2);
document.getElementById("display1").innerHTML = "The sum of " + val1 + " and " + val2 + " is " + sum + ".";
document.getElementById("display2").innerHTML = "The difference between " + val1 + " and " + val2 + " is " + subtract + ".";
document.getElementById("display3").innerHTML = "The product between " + val1 + " and " + val2 + " is " + product + ".";
document.getElementById("display4").innerHTML = "The quotient between " + val1 + " and " + val2 + " is " + quotient + ".";
}
function clear_all()
{
document.getElementById("display1").innerHTML ="";
document.getElementById("display2").innerHTML ="";
document.getElementById("display3").innerHTML ="";
document.getElementById("display4").innerHTML ="";
document.getElementById("val1").value="";
document.getElementById("val2").value="";
document.getElementById("val1").focus();
}
</script>
</body>
<html>
Tuesday, July 6, 2021
Basic OOP in Python
In this tutorial I will show you how to write basic object oriented programming in 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 at my email address also. Thank you.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
My mobile number here in the Philippines is 09173084360.
Program Listing
class Dog:
#class attribute
breed = "German Shepherd"
#instance attributes (pangalan,edad)
def __init__(self,name,age): # name and age are called paramaters
self.pangalan = name
self.edad = age
#instance method
def run(self):
return f"{self.pangalan} is running"
#instance objects
preppy = Dog("Preppy",3) #instantation statement
browny = Dog("Browny",8) #instantation statement
#accessing instance attributes
print()
print("\tBasic OOP in Python")
print()
print(f"{preppy.pangalan} is {preppy.edad} years old")
print(f"{browny.pangalan} is {browny.edad} years old")
#accessing class attribute
print(f"Preppy is a {preppy.breed}")
print(f"Browny is also a {browny.breed}")
#accesing instance method using preppy object
print(preppy.run())
#accesing instance method using browny object
print(browny.run())
print()
print("\tEnd of Program")
print()
Sunday, July 4, 2021
Multiplication Table Using For Statement in Python
A simple multiplication table generated using for statement in 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 at my email address also. Thank you.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
My mobile number here in the Philippines is 09173084360.
Program Listing
# Multiplication_Table_For.py
# Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.com and www.jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# Bacolod City, Negros Occidental
print("-" * 60)
print("\tMULTIPLICATION TABLE USING FOR STATEMENT IN PYTHON")
print("-" * 60)
for a in range(1, 13):
for n in range(1, 13):
print("%4d" % (a * n), end=' ')
print()
print("-" * 60)
Saturday, July 3, 2021
Friday, July 2, 2021
Multiplication Table in C#
A simple multiplication table that I wrote 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 at the following email address for further details. If you want to advertise on my website, kindly contact me also at my email address also. Thank you.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
My mobile number here in the Philippines is 09173084360.
Program Listing
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Multiplication_Table
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("\n");
Console.WriteLine("\t\tMultiplication Table in C#");
for (int i = 1; i <= 12; i++)
{
Console.WriteLine("\n");
for (int j = 1; j <= 12; j++)
{
Console.Write("{0,4}", i * j);
}
}
Console.Read();
}
}
}
Multiplication Table in Modern C++
I simple multiplication table that I wrote 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 at my email address also. Thank you.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
My mobile number here in the Philippines is 09173084360.
Program Listing
// multiplication_table.cpp
// Jake Rodriguez Pomperada, MAED-IT,MIT
// www.jakerpomperada.blogspot.com and www.jakerpomperada.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental Philippines.
#include <iostream>
#include <iomanip>
#include <string>
int main()
{
const std::string line(60, '-');
std::cout <<"\n";
std::cout << line << "\n";
std::cout << "\t\tMULTIPLICATION TABLE IN MODERN C++" << "\n";
std::cout << line << "\n";
for (int a = 1; a < 13; ++a)
{
for (int n = 1; n < 13; ++n)
{
std::cout << std::setw(4) << a*n << ' ';
}
std::cout << "\n";
}
std::cout << line << "\n";
}
Wednesday, June 30, 2021
Multiplication Table in Python
A simple multiplication table that I wrote using Python programming language I hope you will find my work useful.
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 at my email address also. Thank you.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
My mobile number here in the Philippines is 09173084360.
Program Listing
# Multiplication_Table.py
# Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.com and www.jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# Bacolod City, Negros Occidental
a = 1
print("-" * 60)
print("\t\t\t\tMULTIPLICATION TABLE ")
print("-" * 60)
while a < 13:
n = 1
while n <= 12:
print("%4d" % (a * n), end=' ')
n += 1
print()
a += 1
print("-" * 60)
Simple Interest Calculator in JavaScript
A simple interest calculator in JavaScript I wrote a long time ago while teaching JavaScript programming in one of the colleges here in the Philippines.
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 at my email address also. Thank you.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
My mobile number here in the Philippines is 09173084360.