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
Sunday, March 6, 2022
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 Listingclass 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#
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
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++
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++
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 hereif(input == number_to_guess){found = true;std::cout << "You found it!\n";break;}}if(!found) // only wrong guessesstd::cout << "Sorry, you didn't guess it.\n";}
Multiplication Table Using Nested For Loop in C
A program that I wrote to generate a multiplication table using nested for loop 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 <stdio.h>int main(){int a=0, b=0;printf("\n\n");printf("\Multiplication Table Using Nested For Loop in C");printf("\n\n");for (a=1; a<=10; a++) {for (b=1; b<=10; b++){printf("%4d",a*b);}printf("\n");}}
Wednesday, March 2, 2022
Gallons To Liters in Python
A simple program to ask the user to give value in gallons and it will convert into liters equivalent 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
# gallons_liters.py
# Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.blogspot.com and www.jakerpomperada.com
# jakerpomperada@gmail.com
# Barangay Mandalagan, Bacolod City, Negros Occidental Philippines
print("");
print("\tGallons To Liters in Python");
print("");
gallons = float(input("Enter Gallons Value : "))
#Convert gallons to liters
liters = float(gallons * 3.9)
#Display the result
print("");
print("There are " + str(format(liters,'5.2f')) + " Liter(s) in " + str(gallons) + " Gallon(s), ")
print("");
print("End of Program")
print("");
Tuesday, March 1, 2022
Payroll in Python
A simple payroll program that I wrote as one of the requested by one of my subscribers of my youtube channel.
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
# payroll.py
# Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.com and www.jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# March 1, 2022 Tuesday 7:45 PM
# Bacolod City, Negros Occidental
print()
print("\tPayroll in Python");
print()
name = str(input("Employees Name : "))
hours = int(input("Enter Number of Hours : "))
sss = float(input("SSS Contribution : "))
phil_health = float(input("PhilHealth Contribution : "))
housing_loan = float(input("Housing Loan : "))
rate = 500
tax = 500
gross = hours * rate
deductions = (sss+phil_health+housing_loan+tax)
netsalary = (gross - deductions)
print();
print("\t=================PAYSLIP====================");
print("\t=================EMPLOYEE INFORMATION====================\n");
print("Employee Name : " + name.upper())
print("Rendered Hours : " + str(hours))
print("Rate Per Hour : " + str(rate))
print("Gross Salary = {:5.2f}" .format(gross))
print("\t=================DEDUCTIONS====================\n");
print("SSS : {:5.2f}" .format(sss))
print("PhilHealth : {:5.2f}" .format(phil_health))
print("Other Loan : {:5.2f}" .format(housing_loan))
print("Tax : {:5.2f}" .format(tax))
print("Total Deductions : {:5.2f}" .format(deductions))
print();
print("Net Salary : PHP {:5.2f}".format(netsalary) )
print();
print("\tEND OF PROGRAM");
print();
Count Capital and Small Letters in a Word Using Python
A program that will ask the user to give a string or a sentence and then the program will count the number of upper case and lower case letters 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
Prorgam Listing
# Capital_Small.py
# Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.blogspot.com and www.jakerpomperada.com
# jakerpomperada@gmail.com
# Barangay Mandalagan, Bacolod City, Negros Occidental Philippines
print("");
print("Count Capital and Small Letters in a Word Using Python");
print("");
word = input("Kindly give a word : ")
print("No. of Capital Letters: ", sum(1 for a in word if a.isupper()))
print("No. of Lower Letters: ", sum(1 for a in word if a.islower()))
print("");
print("End of Program")
print("");
Monday, February 28, 2022
Remove duplicate numbers from vector in C++
A program to remove the duplicate numbers using vectors by the user using a C++ programming language. The program will work on C++ 11 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 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 <algorithm>
#include <vector>
int main()
{
std::cout << "Remove duplicate numbers from vector in C++\n\n";
std::cout << "How many numbers: ";
int numberCount;
std::cin >> numberCount;
std::vector<int> numbers(numberCount);
for (int i = 0; i < numberCount; ++i) {
std::cout << "Give value in item no " << i+1 << " : ";
std::cin >> numbers[i];
}
std::sort(numbers.begin(), numbers.end());
auto newEnd = std::unique(numbers.begin(), numbers.end());
numbers.resize(std::distance(numbers.begin(), newEnd));
std::cout <<"\n\n";
std::cout << "List of numbers that are not duplicate:\n";
for(int num : numbers) {
std::cout << num << " ";
}
}