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
Tuesday, October 5, 2021
Word Count in JavaScript
A simple program that I wrote that will ask the user to give a string or sentence and then the program will count the number of words in the given string or sentence using JavaScript programming.
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.
Program Listing
word.htm
<html>
<title>Word Count in JavaScript </title>
<body>
<style type="text/css">
body {
font-family: arial;
font-weight: bold;
font-size: 15px;
}
</style>
<script type="text/javascript">
function countWords(){
s = document.getElementById("inputString").value;
s = s.replace(/(^\s*)|(\s*$)/gi,"");
s = s.replace(/[ ]{2,}/gi," ");
s = s.replace(/\n /,"\n");
document.getElementById("wordcount").value = s.split(' ').length;
}
function clear_text_area() {
document.getElementById("wordcount").value = "";
document.getElementById("inputString").value = "";
document.getElementById("inputString").focus();
}
</script>
<h1>Count Words Using JavaScript </h1>
<h4> Jake Rodriguez Pomperada, MAED-IT, MIT</h4>
<form name="form1" method="post" action="">
<textarea name="inputString" id="inputString" cols="50" rows="4"></textarea>
<br /><br><br>
Number of Words <input name="wordcount" id="wordcount" type="text" value="" size="6"><br><br>
<input type="button" name="Convert" value="Count Words" onClick="countWords();">
<input type="button" name="Clear" value="Clear" onClick="clear_text_area();">
</form>
</body>
</html>
Monday, October 4, 2021
Hyperlinks in HTML
A simple program to demonstrate how to declare and use hyperlinks in a web page using HTML and CSS.
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.
Program Listing
index.htm
<html>
<title>Simple HTML Document </title>
<style>
body {
font-family: arial;
font-weight: bold;
font-size: 20px;
color : white;
}
h1 {color:black; font-size: 45px;
}
</style>
<body bgcolor="lightblue">
<h1 align="center"> This is an HTML Document </h1>
<a href="second.htm" title="Click here to go to second page.">
Second Page </a>
</body>
</html>
<html>
<title>Simple HTML Document </title>
<style>
body {
font-family: arial;
font-weight: italic;
font-size: 20px;
color:red;
}
</style>
<body bgcolor="lightgreen">
<h1 align="center"> This is the second document </h1>
<a href="index.htm" title="Click here to go back.">
Main Page </a>
</body>
</html>
Sunday, October 3, 2021
Word Count in C++
A simple program to ask the user to give a string and then the program will count the number of words in the given string 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 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.
Program Listing
#include <iostream>
#include <string>
int main ()
{
char str[100];
int count = 0, a=0;
std::cout <<"\n\n";
std::cout <<"\tWord Count in C++";
std::cout <<"\n\n";
std::cout << "\tGive a string : ";
gets(str);
for (a = 0; str[a] != '\0';a++)
{
if (str[a] == ' ')
count++;
}
std::cout <<"\n\n";
std::cout << "\tNumber of words : " << count + 1;
std::cout <<"\n\n";
std::cout <<"\tEnd of Program";
std::cout <<"\n";
return 0;
}
Saturday, October 2, 2021
Ordinal Numbers in C
A simple program that will ask the user to give number and then the program will display the list of ordinal numbers 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 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.
Program Listing
#include <stdio.h>
const char *get_suffix(int num)
{
switch(num)
{
case 10:
case 11:
case 12:
case 13:
return "th";
default:
{
switch(num % 10)
{
case 1: return "st";
case 2: return "nd";
case 3: return "rd";
default:
return "th";
}
}
}
}
int main()
{
int years = 0,i=0;
printf("\n\n");
printf("\tOrdinal Numbers in C");
printf("\n\n");
printf("\tHow many years: ");
scanf("%d", &years);
for(i = 1; i <= years; ++i) {
printf("\t");
printf("%d%s year\n", i, get_suffix(i));
}
printf("\n\n");
printf("\tEnd of Program");
printf("\n\n");
}
Friday, October 1, 2021
Hello World in Microsoft Visual Basic 6
A simple hello world program in Microsoft Visual Basic 6 that I wrote.
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.
Program Listing
Private Sub Form_Load()
MsgBox ("Hello World in Visual Basic 6")
End Sub
Thursday, September 30, 2021
Ordinal Numbers in Python
A simple program that I wrote to solve ordinal 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.
Program Listing
# ordinal_numbers.py
# Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.blogspot.com and www.jakerpomperada.com
# jakerpomperada@gmail.com
# Bacolod City, Negros Occidental Philippines
def get_suffix(num):
if num in [10, 11, 12, 13]:
return "th"
else:
rem = num % 10
if rem == 1:
return "st"
elif rem == 2:
return "nd"
elif rem == 3:
return "rd"
else:
return "th"
print()
print("\tOrdinal Numbers in Python")
print()
for i in range(1, 11):
print(f"{i}{get_suffix(i)}")
print()
print("\tEnd of Program")
print()
Ordinal Numbers in Modern C++
A simple program to demonstrate ordinal numbers 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.
Program Listing
// ordinal.cpp
// rules :
//https://www.woodwardenglish.com/lesson/ordinal-numbers-in-english/
// standard: c++17
// IDE : Code Blocks
// Jake Rodriguez Pomperada, MAED-IT, MIT
// www.jakepromperada.blogspot.com and www.jakerpomperada.com
// jakerpomperada@gmail.com
#include <iostream>
#include <string_view>
//https://en.cppreference.com/w/cpp/string/basic_string_view
std::string_view get_suffix(int number)
{
switch (number)
{
case 10:
case 11:
case 12:
case 13: return "th";
default:
{
switch (number % 10)
{
case 1: return "st";
case 2: return "nd";
case 3: return "rd";
default: return "th";
}
}
}
}
int main()
{
int num_years=0;
std::cout << "\n\n";
std::cout << "\tOrdinal Numbers in Modern C++";
std::cout << "\n\n";
std::cout << "\tHow many years: ";
std::cin >> num_years;
std::cout << "\n";
for (int i = 1; i <= num_years; ++i)
std::cout <<"\t" << i << get_suffix(i) << " year" << "\n";
std::cout << "\n\n";
std::cout << "\tEnd of Program";
std::cout << "\n\n";
}
Wednesday, September 29, 2021
Car Objects in Java
Machine Problem
Create a class called Car. The Car class has the following fields:
1. Color
2. Model
3. Manufacturer
Instantiate 3 Car objects and display all their properties. Modify their defined properties and display their new properties.
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.
Tuesday, September 28, 2021
Finding the Largest Between Two Numbers in C#
In this sample program that I wrote it will ask the user to give two numbers and then the program will check and determine which of the two given numbers has a largest value 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 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.
Program Listing
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Finding_Largest
{
class Program
{
static void Main(string[] args)
{
int a;
int b;
int large;
Console.WriteLine("\n");
Console.WriteLine("\t================================================");
Console.WriteLine("\tFinding the Largest Between Two Numbers in C#");
Console.WriteLine("\t================================================");
Console.WriteLine("\n");
//input the numbers
Console.Write("\tEnter first number : ");
a = Convert.ToInt32(Console.ReadLine());
Console.Write("\tEnter second number: ");
b = Convert.ToInt32(Console.ReadLine());
//finding largest number using if-else
if (a > b)
large = a;
else
large = b;
Console.WriteLine("\n");
Console.WriteLine("\tLargest number is {0}.", large);
Console.WriteLine();
Console.WriteLine("\tEnd of Program");
Console.ReadLine();
}
}
}