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
Saturday, August 29, 2020
Positive and Negative Number Checker in Bash
A simple program that I wrote using that will ask the user to give a number and then the program will check if the given number is a positive or negative number using bash scripting language.
I am currently accepting programming work inventory system, enrollment system, accounting system, point of sale, school programming assignments and projects, payroll system, information system, website design and development using WordPress, 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. My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675. Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com
Program Listing
# positive_negative.sh
#Bash Script to check whether a number is positive or not
#Jake R. Pomperada,MAED-IT,MIT
# Bacolod City, Negros Occidental
# jakerpomperada@gmail.com
printf "\n\n"
printf "\tPositive and Negative Number Checker in Bash"
printf "\n\n"
read -p "Enter a number: " number
printf "\n"
if [ $number -ge 0 ]
then
printf "\tThe given number $number is positive."
else
printf "\tThe given number $number is negative."
fi
printf "\n\n"
printf "\tEnd of Program"
printf "\n"
Friday, August 28, 2020
Thursday, August 27, 2020
Addition of Two Numbers in PHP
A simple program to add the sum of two numbers in php programming language.
I am currently accepting programming work inventory system, enrollment system, accounting system, point of sale, school programming assignments and projects, payroll system, information system, website design and development using WordPress, 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. My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.
Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com
Sunday, August 23, 2020
Odd and Even Numbers in C#
I wrote this simple program using C# programming language to ask the user to give a number and then the program will check and determine whether the given number is an odd or even number.
I am currently accepting programming work inventory system, enrollment system, accounting system, point of sale, school programming assignments and projects, payroll system, information system, website design and development using WordPress, 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. My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.
Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com
Sample Program Output
Program Listing
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Odd_and_Even_Numbers
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button3_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void button1_Click(object sender, EventArgs e)
{
int a = 0;
a = Convert.ToInt32(textBox1.Text);
if (a % 2 == 0)
{
MessageBox.Show("The given number " + a + " is a Even Number.",
"The Result");
}
else
{
MessageBox.Show("The given number " + a + " is a Odd Number.",
"The Result");
}
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Text = "";
textBox1.Focus();
}
}
}
Saturday, August 22, 2020
Positive and Negative Numbers in C#
A simple program that I wrote using C# to ask the user to give a number and then the program will check and determine whether the given number is a positive or negative number.
I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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. My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.
Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com
Sample Program Output
Program Listing
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Positive_and_Negative_Numbers
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int a = 0;
a = Convert.ToInt32(textBox1.Text);
if (a >= 0)
{
MessageBox.Show("The given number " + a + " is a Positive Number.",
"The Result");
} else
{
MessageBox.Show("The given number " + a + " is a Negative Number.",
"The Result");
}
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Text = "";
textBox1.Focus();
}
}
}
Wednesday, August 19, 2020
Tuesday, August 18, 2020
Loan Interest Solver
A simple program that I wrote to solve the loan interest of a customer using the C programming language.
Area of the Circle Solver in C
A simple program that I wrote to solve the area of the circle using the C programming language.
fgets Demonstration in C
A simple program using the C programming language to show how to use the fgets statements.
Program Listing
/* fgets.c */
/* Jake R. Pomperada,MAED-IT, MIT */
/* jakerpomperada@gmail.com */
#include <stdio.h>
#include <stdlib.h>
int main()
{
char name[50] = {0};
printf("\n");
printf("\tfgets Demonstration in C");
printf("\n\n");
printf("\tEnter your name: ");
if (fgets(name, 30, stdin)) {
printf("\n\n");
printf("\tYour name is: %s", name);
}
else {
printf("\n\n");
printf("\tIf you don't want to...");
}
return EXIT_SUCCESS;
}
Sunday, August 16, 2020
Age Checker in C
A simple program that I wrote that will ask the user to give their age and the program will check and determine whether that user age is still a minor or already an adult using C programming language.
Volume of a Sphere Converter in C
A simple program that I wrote that will ask the user to give value in radius and then the program will compute the volume of a sphere using C programming language.
Program Listing
#include <stdio.h>
#define PI 3.14
int main()
{
float volume_sphere = 0.00;
float radius = 0.00;
printf("\n\n");
printf("\tVolume of a Sphere Converter");
printf("\n\n");
printf("\tEnter Radius Value : ");
scanf("%f",&radius);
/* Compute the volume of Sphere */
volume_sphere = (4.0/3.0)*(PI*radius*radius*radius);
printf("\n\n");
printf("\tThe Volume of Sphere is %5.2f.",volume_sphere);
printf("\n\n");
printf("\tEnd of Program");
printf("\n");
}
Temperature Checker in C
A temperature program that I wrote using C programming language.
US Dollar To Philippine Peso Converter Using C language
A simple program to ask the user to give a value in US Dollar and then convert into Philippine Peso using C programming language.
Thursday, August 13, 2020
Memory Allocation in C
A program was written by my friend and fellow software engineer Thomas to demonstrate how to use memory allocation using C programming language. Thank you Tom for sharing your code to us.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
void* alloc_mem(size_t size, const char *file, unsigned line)
{
assert(size > 0);
assert(file != NULL);
void* res = malloc(size);
if (res == NULL)
fprintf(stderr, "malloc failed at %s(%u)\n",file, line);
else {
fprintf(stderr, "alloc\t%u\t%u\t%s\t%u\n", (unsigned int)res,
size,file, line);
memset(res, 0xCC, size);
}
return res;
}
void free_mem(void *p, const char *file, unsigned line)
{
assert(p != NULL);
fprintf(stderr, "free\t%u\t?\t%s\t%u\n", (unsigned int)p, file, line);
}
#ifdef DEBUG
#define malloc(size) alloc_mem(size, __FILE__, __LINE__)
#define free(p) free_mem(p, __FILE__, __LINE__);
#endif
int f()
{
int *num = malloc(sizeof(int *));
return *num;
}
int main()
{
int *ip = malloc(sizeof(int *));
if (ip != NULL)
{
*ip = 11;
printf("*ip = %d\n", *ip);
}
printf("Num = %d\n", f());
free(ip);
//system("pause");
return EXIT_SUCCESS;
Wednesday, August 12, 2020
Product of Two Numbers in Java
A simple program that I wrote using Java programming language that will ask the user to give two numbers and then the program will compute the product of two numbers and display the results on the screen.
Sunday, August 9, 2020
Length of the String in C++
I wrote this simple program to find the length of the string using C++ programming language.