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
Monday, October 31, 2022
Area of the Triangle in TypeScript
Machine Problem
Write a program that will compute the area of the triangle with the base value 4 and height value of 6 and display the results on the screen.
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
=================================================
You can buy my C++ book online at
https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/
You can buy my book in introduction to computer networking at
https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking
Want to support my channel?
GCash Account
Jake Pomperada
09173084360
Paypal
https://paypal.me/jakerpomperada
Patreon
https://www.patreon.com/jakerpomperada
Thank you very much for your support.
/* triangle.ts Jake Rodriguez Pomperada, MAED-IT, MIT www.jakerpomperada.com and www.jakerpomperada.blogspot.com jakerpomperada@gmail.com July 18, 2022 10:23 PM Monday Bacolod City, Negros Occidental */ const baseValue = 4 const heightValue = 6; // calculate the area of the triangle const areaValue = (baseValue * heightValue) / 2; console.log(); console.log("Area of the Triangle in TypeScript\n"); console.log("Base Value : " + baseValue + "\n"); console.log("Height Value : " + heightValue + "\n"); console.log("The area of the triangle : " + areaValue + "\n"); console.log("End of Program\n");
Sunday, October 30, 2022
Swap Two Numbers in Ruby
Machine Problem
Design and create a program that will ask the user to give two integer numbers and then the program will swap the arrangement of two numbers and display the result on the screen.
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
=================================================
You can buy my C++ book online at
https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/
You can buy my book in introduction to computer networking at
https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking
Want to support my channel?
GCash Account
Jake Pomperada
09173084360
Paypal
https://paypal.me/jakerpomperada
Patreon
https://www.patreon.com/jakerpomperada
Thank you very much for your support.
Program Listing
# swap.rb
# Author : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date : May 15, 2019 Wednesday 3:07 PM
# Address : Bacolod City, Negros Occidental
# Tools : Eclipse IDE and Ruby Version 2.6.3
# Location : Bacolod City, Negros Occidental
# Emails : jakerpomperada@gmai.com and jakerpomperada@yahoo.com
puts "\n\n"
print "\tSwap Two Numbers in Ruby";
puts "\n\n"
print "\tGive First Value : ";
a = gets;
print "\tGive Second Value : ";
b = gets;
a = a.to_i;
b = b.to_i;
print "\n\n";
print "\tBefore Swapping";
print "\n\n";
print "\tA = #{a} and B = #{b} ";
# Swapping of values here
temp = a;
a = b;
b = temp;
print "\n\n";
print "\t===== DISPLAY RESULT ====="
print "\n\n";
print "\tAfter Swapping";
print "\n\n";
print "\tA = #{a} and B = #{b} ";
print "\n\n\n";
print "\tEND OF PROGRAM";
print "\n\n";
Basic Math Operations in Ruby
Machine Problem
Create and Design a program that will ask the user to give two numbers and then the program will compute the sum,difference,product and quotient of the given numbers and display the results on the screen.
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
=================================================
You can buy my C++ book online at
https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/
You can buy my book in introduction to computer networking at
https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking
Want to support my channel?
GCash Account
Jake Pomperada
09173084360
Paypal
https://paypal.me/jakerpomperada
Patreon
https://www.patreon.com/jakerpomperada
Thank you very much for your support.
Program Listing# math.rb # Author : Jake Rodriguez Pomperada,BSCS,MAED-IT # Date : May 15, 2019 Wednesday 2;16 PM # Address : Bacolod City, Negros Occidental # Tools : Eclipse IDE for JavaScript and Web Developers # and Ruby Version 2.6.3 # Location : Bacolod City, Negros Occidental # Emails : jakerpomperada@gmai.com and jakerpomperada@yahoo.com puts "\n\n" print "\tBasic Math Operations in Ruby"; puts "\n\n" print "\tGive First Value : "; val1 = gets; print "\tGive Second Value : "; val2 = gets; val1 = val1.to_i; val2 = val2.to_i; sum = (val1 + val2); difference = (val1 - val2); product = (val1 * val2); quotient = (val1 / val2); print "\n\n"; print "\t===== DISPLAY RESULT =====" print "\n\n"; print "\tThe sum of ",val1," and ",val2," is ",sum,".\n"; print "\tThe difference between #{val1} and #{val2} is #{difference}.\n"; print "\tThe product of #{val1} and #{val2} is #{product}.\n"; print "\tThe quotient between #{val1} and #{val2} is #{quotient}."; puts "\n\n" print "\tEnd of Program"; puts "\n"
Saturday, October 29, 2022
Count Number of Money Bills in TypeScript
Machine Problem
Write a program that will count how many one thousand, five hundred, two hundred, one hundred, fifty and twenty bills based on Philippine money currency denomination in the amount of 10950.
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
=================================================
You can buy my C++ book online at
https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/
You can buy my book in introduction to computer networking at
https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking
Want to support my channel?
GCash Account
Jake Pomperada
09173084360
Paypal
https://paypal.me/jakerpomperada
Patreon
https://www.patreon.com/jakerpomperada
Thank you very much for your support.
Program Listing
/* money.ts
Jake Rodriguez Pomperada, MAED-IT, MIT
www.jakerpomperada.com and www.jakerpomperada.blogspot.com
jakerpomperada@gmail.com
July 17, 2022 10:04 PM Sunday
Bacolod City, Negros Occidental
*/
var amt = 10950;
var given_amt = amt;
var thousand = 0; var five_hund = 0 ;
var two_hundreds = 0; var hundreds = 0;
var fifty = 0; var twentys = 0;
thousand = amt/1000;
amt = amt%1000;
five_hund = amt/500;
amt = amt%500;
two_hundreds = amt/200;
amt = amt%200;
hundreds = amt/100;
amt = amt%100;
fifty = amt/50;
amt = amt%50;
twentys = amt/20;
amt = amt%20;
console.log();
console.log("\tDisplay Report\n")
console.log("\tThe given amount : PHP " + given_amt + "\n");
console.log("\tNumber of 1000 Notes : " + Math.floor(thousand));
console.log("\tNumber of 500 Notes : " + Math.floor(five_hund));
console.log("\tNumber of 200 Notes : " + Math.floor(two_hundreds));
console.log("\tNumber of 100 Notes : " + Math.floor(hundreds));
console.log("\tNumber of 50 Notes : " + Math.floor(fifty));
console.log("\tNumber of 20 Notes : " + Math.floor(twentys) + "\n");
console.log("\tEnd
Employee's Information System in C
A simple program to demonstrate how to use and declare different data types in C programming language I called this program employee's information system.
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
=================================================
You can buy my C++ book online at
https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/
You can buy my book in introduction to computer networking at
https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking
Want to support my channel?
GCash Account
Jake Pomperada
09173084360
Paypal
https://paypal.me/jakerpomperada
Patreon
https://www.patreon.com/jakerpomperada
Thank you very much for your support.
Program Listing/* variables.c Written By : Mr. Jake R. Pomperada,BSCS, MAED-IT Date : November 18, 2018 Sunday 7:53 PM Tool : Dev C++ 5.11 Location : Bacolod City, Negros Occidental Email : jakerpomperada@yahoo.com and jakerpomperada@gmail.com */ #include <stdio.h> int main() { char full_name[200]; char position[200]; int age=0; float wage=0.00; double yearly_salary=0.00; char gender,ch; printf("\n\n"); printf("\t Bacolod Software Inc. Employee's Information System"); printf("\n\n"); printf("\tGive Employee's Name : "); fgets(full_name,200, stdin); printf("\tGive Employee's Age : "); scanf("%d",&age); ch = getchar (); printf("\tGive Employee's Position : "); fgets(position,200, stdin); printf("\tWhat is Employee's Wage : "); scanf("%f",&wage); printf("\tWhat is Employee's Yearly Salary : "); scanf("%lf",&yearly_salary); ch = getchar (); printf("\tWhat is Employee's Gender : "); scanf("%c",&gender); printf("\n\n"); printf("\t ===== DISPLAY RESULT ====="); printf("\n\n"); printf("\t Employee's Name : %s",strupr(full_name)); printf("\t Employee's Age : %d\n " ,age); printf("\t Employee's Position : %s" ,strupr(position)); printf("\t Employee's Wage : PHP %.2f\n" ,wage); printf("\t Employee's Yearly Salary : PHP %.2lf\n" ,yearly_salary); printf("\t Employee's Gender : %c\n" ,toupper(gender)); printf("\n\n"); printf("\t ===== END OF PROGRAM ====="); printf("\n\n"); return 0; }
Friday, October 28, 2022
Odd and Even Number Using Ternary Operator in Python
A program that will check for odd and even numbers using ternary operator in python programming language.
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
=================================================
You can buy my C++ book online at
https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/
You can buy my book in introduction to computer networking at
https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking
Want to support my channel?
GCash Account
Jake Pomperada
09173084360
Paypal
https://paypal.me/jakerpomperada
Patreon
https://www.patreon.com/jakerpomperada
Thank you very much for your support.
print()
print("\tOdd and Even Number Using Ternary Operator in Python\n")
given_number = 5
result = "\tIt is an Even Number." if given_number %2 == 0 else "\tIt is an Odd Number."
print("\tThe given number ",given_number,".\n")
print(result)
Thursday, October 27, 2022
Addition of Decimal Numbers in Python
A simple program to show how to add decimal numbers using Python programming language.
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
=================================================
You can buy my C++ book online at
https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/
You can buy my book in introduction to computer networking at
https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking
Want to support my channel?
GCash Account
Jake Pomperada
09173084360
Paypal
https://paypal.me/jakerpomperada
Patreon
https://www.patreon.com/jakerpomperada
Thank you very much for your support.
Program Listing
print()
print("\tAddition of Decimal Numbers in Python\n")
a = 12.34
b = 3.12
sum = round(a+b,2)
print("\tThe sum of",a, " and ",b, " is",sum)
Age Checking Using Ternary Operator in C#
A simple program that I wrote to check if the given age is already an adult or still a minor using C# programming language.
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
=================================================
You can buy my C++ book online at
https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/
You can buy my book in introduction to computer networking at
https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking
Want to support my channel?
GCash Account
Jake Pomperada
09173084360
Paypal
https://paypal.me/jakerpomperada
Patreon
https://www.patreon.com/jakerpomperada
Thank you very much for your support.
Program Listingusing System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Age_Checker { class Program { static void Main(string[] args) { int age = 0; age = 12; string check_age = (age >=18) ? "\tYou are already an Adult." : "\tYou are still a Minor."; Console.WriteLine("\n"); Console.WriteLine("\tAge Checker Using Ternary Operator in C#"); Console.Write("\n\n"); Console.WriteLine(check_age); Console.WriteLine("\n\tAt the age of {0} years old.",age); Console.Write("\n\n"); Console.Write("\tEnd of Program"); Console.WriteLine(); Console.ReadKey(); } } }