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
Thursday, April 29, 2021
String Length in Java
In this tutorial I will show you how the program will ask the user to give a string and then the program will count the number of characters in the given string using Java programming language. I am using eclipse as my IDE and OpenJDK.
Wednesday, April 28, 2021
Product of Two Numbers in Pointers Using C++
A simple program to ask the user to give two numbers that will compute the product of two numbers using pointers in C++ programming language.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
// product.cpp
// Jake Rodriguez Pomperada, MAED-IT, MIT
// www.jakerpomperada.blogspot.com www.jakerpomperada.com
// jakerpomperada@gmail.com
#include <iostream>
int main()
{
int val1=0,val2=0;
int *ptr1,*ptr2;
int solve_product = 0;
std::cout << "\n\n";
std::cout << "\tProduct of Two Numbers in Pointers Using C++";
std::cout << "\n\n";
std::cout << "\tGive First Value : ";
std:: cin>>val1;
std::cout << "\n\n";
std::cout << "\tGive Second Value : ";
std:: cin>>val2;
ptr1=&val1;
ptr2=&val2;
// Solving the product here
solve_product=*ptr1 * *ptr2;
std::cout << "\n\n";
std::cout << "\tThe product of " << val1 << " and " << val2
<< " is " << solve_product << ".";
std::cout << "\n\n";
std::cout << "\tEnd of Program";
std::cout << "\n\n";
system("pause");
}
Sunday, April 25, 2021
String Palindrome in Python
In this tutorial, I will show you how to write a string palindrome using Python programming.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
palindrome.py
# palindrome.py
# Jake Rodriguez Pomperada,MAED-IT,MIT
# www.jakerpomperada.blogspot.com www.jakerpomperada.com
# jakerpomperada@gmail.com
# Bacolod City, Negros Occidental Philippines
print("\n\n")
print("\tString Palindrome in Python")
print("\n")
str_value = input("Give a String : ")
print("\n")
if(str_value.lower() == str_value.lower()[:: - 1]):
print("\tThe given string ", str_value.upper(), " is a Palindrome.\n")
else:
print("\tThe given string ", str_value.upper(), " is not a Palindrome.\n")
print("\tEnd of Program")
Arithmetic Operators in C#
In this article I would like to share about arithmetic operators in C# programming languages. I hope you will find my work useful.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
using System;
namespace Aritmetic_Operators
{
class Program
{
static void Main(string[] args)
{
// Arithmetic Operators in C#
// Jake Rodriguez Pomperada,MAED-IT, MIT
// www.jakerpomperada.com
// www.jakerpomperada.blogspot.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental Philippines
int a = 40;
int b = 6;
int sum = a + b;
int sub = a - b;
int mul = a * b;
float div = (float)a / (float)b;
int rem = a % b;
Console.WriteLine("\n\n");
Console.WriteLine("\tArithmetic Operators in C#");
Console.WriteLine("\n");
Console.WriteLine("\tThe Addition of {0} and {1} is = {2}", a, b, sum);
Console.WriteLine("\tThe Subtraction of {0} and {1} is = {2}", a, b, sub);
Console.WriteLine("\tThe Multiplication of {0} and {1} is = {2}", a, b, mul);
Console.WriteLine("\tThe Division of {0} and {1} is = {2}", a, b, div);
Console.WriteLine("\tThe Remainder of {0} and {1} is = {2}", a, b, rem);
Console.WriteLine("\n");
Console.WriteLine("\tEnd of Program");
Console.ReadLine();
}
}
}
Saturday, April 24, 2021
Area of the Circle in C#
I wrote this simple program to ask the user to give radius of the circle and then program will compute the area of the circle using C# programming language.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
Program.cs
using System;
namespace Area_of_Circle
{
class Program
{
// Area of the circle in C#
// Jake Rodriguez Pomperada,MAED-IT, MIT
// www.jakerpomperada.com
// www.jakerpomperada.blogspot.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental Philippines
static void Main(string[] args)
{
double radius, area;
Console.WriteLine("\n\n");
Console.WriteLine("\tArea of the Circle in C#");
Console.WriteLine("\n");
Console.Write("\tEnter Radius: ");
radius = Convert.ToDouble(Console.ReadLine());
area = Math.PI * radius * radius;
Console.WriteLine("\n");
Console.WriteLine("\tArea of circle: {0:0.##} " , area);
Console.WriteLine("\n");
Console.WriteLine("\tEnd of Program");
Console.ReadKey();
}
}
}
Friday, April 23, 2021
Odd and Even Number Checker in JavaScript
A simple program that I wrote to ask the user to give a number and then the program will check if the given number is odd or even number using JavaScript programming language.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
Thursday, April 22, 2021
Addition of Three Numbers Using VB.NET
A simple program that I wrote using VB.NET to ask the user to give three numbers and then the program will allow the user to compute the sum of the three numbers.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs)
MessageBox.Show("Addition of two Numbers")
End Sub
Private Sub Button1_Click_1(sender As Object, e As EventArgs) Handles Button1.Click
TextBox4.Text = Val(TextBox1.Text) + Val(TextBox2.Text) + Val(TextBox3.Text)
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox1.Focus()
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
Me.Close()
End Sub
End Class
Wednesday, April 21, 2021
CRUD in Go and MySQL
In this tutorial I share with you a CRUD program that I wrote using Go, HTML, CSS and MySQL I hope you will find my work useful.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Tuesday, April 20, 2021
Login System in Go and MySQL
Here is a simple login system that I wrote using Go and MySQL I hope you will find my work useful.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Saturday, April 17, 2021
Difference between the largest and smallest value in C#
A simple program to ask the user to give a series of numbers and then the program will compute the difference between the largest and smallest number in C# programming language.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
// High_Low.cs
// Prof. Jake Rodriguez Pomperada,MAED-IT, MIT
// www.jakerpomperada.blogspot.com / www.jakerpomperada.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental Philippines
using System;
namespace exercises
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("\n");
Console.WriteLine("\tDifference between the largest and smallest value in C# ");
int[] arr = new int[10];
int small_num = 0, biggest_num = 0;
int i;
Console.WriteLine("\n");
Console.Write("\tInput 10 elements in the array :\n");
Console.WriteLine("\n");
for (i = 0; i < 10; i++)
{
Console.Write("\tGive value in Item No. {0} : ", (i+1));
arr[i] = Convert.ToInt32(Console.ReadLine());
}
if (arr.Length > 0) small_num = biggest_num = arr[0];
for ( i = 1; i < arr.Length; i++)
{
small_num = Math.Min(small_num, arr[i]);
biggest_num = Math.Max(biggest_num, arr[i]);
}
Console.WriteLine("\n");
Console.Write("\tThe difference is {0}. ", biggest_num- small_num);
}
}
}