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, January 16, 2020
Simple Interest Rate Solver in Java
I wrote this program to perform computation on the simple interest rate solver using Java 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.
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
My programming website is http://www.jakerpomperada.blogspot.com
I am also a book author you can purchase my books on computer programming and information technology in the following links below.
https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/
Sample Program Output
Program Listing
Simple_Interest.java
import java.util.*;
public class Simple_Interest {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
double principal,rate,time_value;
double simple;
Scanner input = new Scanner(System.in);
System.out.println("\n");
System.out.print("\tSimple Interest Rate Solver in Java");
System.out.println("\n");
System.out.print("\tGive Principal Amount $ : ");
principal = input.nextDouble();
System.out.print("\tGive Number of Years : ");
time_value = input.nextDouble();
System.out.print("\tGive the Interest Rate : ");
rate = input.nextDouble();
simple = (principal * time_value * rate) /100;
System.out.println("\n");
System.out.print("\tThe Simple Interest Rate is $ " + simple + ".");
System.out.println("\n");
System.out.println("\tEnd of Program");
}
}
Wednesday, January 15, 2020
Swapping of Two Numbers Using Java Programming Language
A simple program that I wrote using Java programming language that will ask the user to give two numbers and then the program will display the original arrangement of two numbers and then the program will display the swap arrangement of two numbers to the user.
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.
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
My programming website is http://www.jakerpomperada.blogspot.com
I am also a book author you can purchase my books on computer programming and information technology in the following links below.
https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/
Sample Program Output
Program Listing
Swapping_Numbers.java
import java.util.Scanner;
public class Swapping_Numbers {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);
System.out.println("\n");
System.out.print("\tSwapping of Two Numbers in Java");
System.out.println("\n");
System.out.print("\tEnter First Value : ");
int first = input.nextInt();
System.out.print("\tEnter Second Value : ");
int second = input.nextInt();
input.close();
System.out.println();
System.out.print("\tOriginal Arrangement");
System.out.println("\n");
System.out.println("\tFirst Value : " + first);
System.out.println("\tSecond Value : " + second);
first = first + second;
second = first - second;
first = first - second;
System.out.println();
System.out.print("\tSwap Arrangement");
System.out.println("\n");
System.out.println("\tFirst Value : " + first);
System.out.println("\tSecond Value : " + second);
System.out.println();
System.out.print("\tEnd of Program");
System.out.println();
}
}
If Else Statement in Java
I wrote this simple program to show how to declare and use the if-else statement in a java 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.
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
My programming website is http://www.jakerpomperada.blogspot.com
I am also a book author you can purchase my books on computer programming and information technology in the following links below.
https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/
Sample Program Output
Program Listing
If_Else_Statement.java
public class If_Else_Statement {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
boolean learning = true;
if (learning) {
System.out.print("I like Java programming");
}
else {
System.out.print("I like to eat Pizza.");
}
}
}
Tuesday, January 14, 2020
Switch Statement in JavaScript
A simple program that I wrote using the JavaScript programming language to show how to use the switch statement.
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.
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
My programming website is http://www.jakerpomperada.blogspot.com
I am also a book author you can purchase my books on computer programming and information technology in the following links below.
https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/
Sample Program Output
Program Listing
index.htm
<html>
<head>
<title>Switch Statement in JavaScript </title>
</head>
<body>
<script type="text/javascript">
a=1;
document.write("The given year level is " +a);
switch (a) {
case 1:
alert("You are belong first year");
break;
case 2:
alert("You are belong second year");
break;
case 3:
alert("You are belong third year");
break;
case 2:
alert("You are belong fourth year");
break;
default:
alert("Invalid Year Level. Try Again");
}
</script>
</body>
</html>
Labels:
switch in javascript
Bacolod City, Negros Occidental Philippines.
Bacolod, Negros Occidental, Philippines
Friday, January 10, 2020
Word Count in the Sentence in Java
I wrote this program to ask the user to give a sentence and then the program will count the number of words in the given string using Java 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.
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
My programming website is http://www.jakerpomperada.blogspot.com
I am also a book author you can purchase my books on computer programming and information technology in the following links below.
https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/
Sample Program Output
Program Listing
WordCount.java
import java.util.Scanner;
public class WordCount {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
String text;
int countWords=0;
Scanner Input = new Scanner(System.in);
System.out.println("\n");
System.out.print("\tWord Count in the Sentence in Java");
System.out.println("\n");
System.out.print("\tGive a Sentence : ");
text = Input.nextLine();
for (int a=0; a<text.length()-1; a++) {
if (text.charAt(a)== ' ' && text.charAt(a+1) != ' '){
countWords++;
}
}
System.out.println("\n");
System.out.print("\tTotal number of words is " + (countWords+1) +".");
System.out.println("\n");
System.out.print("\tEnd of Program");
System.out.println("\n");
}
}
Factorial Solver in Java
I wrote this program to ask the user to give the number and then the program will compute the factorial value of the given number using Java 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.
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
My programming website is http://www.jakerpomperada.blogspot.com
I am also a book author you can purchase my books on computer programming and information technology in the following links below.
https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/
Sample Program Output
Program Listing
FactorialSolver.java
import java.util.Scanner;
public class FactorialSolver {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int number=0;
Scanner Input = new Scanner(System.in);
System.out.println("\n");
System.out.print("\tFactorial Solver in Java");
System.out.println("\n");
System.out.print("\tGive a Number : ");
number = Input.nextInt();
int factorial = number;
for (int i=(number -1); i > 1; i--){
factorial*=i;
}
System.out.println("\n");
System.out.print("\tFactorial of " + number + " is "+ factorial +".");
System.out.println("\n");
System.out.println("\tEnd of Program");
}
}
Area of the Circle Solver in Java
I wrote this simple program to ask the user to give the radius of the circle and then it will compute the area of the circle using Java programming language. I am using Eclipse as my text editor in writing this program.
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.
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
My programming website is http://www.jakerpomperada.blogspot.com
I am also a book author you can purchase my books on computer programming and information technology in the following links below.
https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/
Sample Program Output
Program Listing
AreaCircle.java
import java.util.Scanner;
public class AreaCircle {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int radius=0;
final double PIE = 3.1416;
double area_circle=0.00;
Scanner Input = new Scanner(System.in);
System.out.println("\n");
System.out.print("\tArea of the Circle Solver in Java");
System.out.println("\n");
System.out.print("\tGive the radius of the circle : ");
radius = Input.nextInt();
System.out.println("\n");
area_circle = (PIE * radius * radius);
System.out.print("\tThe Area of the Circle is " +area_circle +".");
System.out.println("\n");
System.out.println("\tEnd of the Program");
System.out.println("\n");
}
}
Thursday, January 9, 2020
Merge Sort in C++
I wrote this program to ask the user to give how many items to be sorted and then the program will display the original and sorted arrangement of values using merge sort 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.
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
My programming website is http://www.jakerpomperada.blogspot.com
I am also a book author you can purchase my books on computer programming and information technology in the following links below.
https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/
Sample Program Output
Program Listing
merge.cpp
#include<iostream>
using namespace std;
int Merge(int A[],int p, int q,int r)
{
int n1=q-p+1,i,j,k;
int n2=r-q;
int L[n1],R[n2];
for(i=0;i<n1;i++)
{
L[i]=A[p+i];
}
for(j=0;j<n2;j++)
{
R[j]=A[q+j+1];
}
i=0,j=0;
for(k=p;i<n1&&j<n2;k++)
{
if(L[i]<R[j])
{
A[k]=L[i++];
}
else
{
A[k]=R[j++];
}
}
while(i<n1)
{
A[k++]=L[i++];
}
while(j<n2)
{
A[k++]=R[j++];
}
}
int MergeSort(int A[],int p,int r)
{
int q;
if(p<r)
{
q=(p+r)/2;
MergeSort(A,p,q);
MergeSort(A,q+1,r);
Merge(A,p,q,r);
}
}
int main()
{
int A_Size=0;
cout <<"\n\n";
cout <<"\tMerge Sort in C++";
cout <<"\n\n";
cout<<"\tHow many elements? :";
cin>>A_Size;
int A[A_Size];
for(int i=0;i<A_Size;i++)
{
cout <<"\tEnter value on element no. " <<i+1 << " : ";
cin>>A[i];
}
cout<<"\n\n";
cout <<"\tOriginal Arrangement";
cout<<"\n\n";
cout <<"\t";
for(int i=0;i<A_Size;i++)
{
cout<<" " <<A[i]<<" ";
}
cout<<"\n\n";
cout <<"\tSorted Arrangement";
cout<<"\n\n";
cout <<"\t";
MergeSort(A,0,A_Size-1);
for(int i=0;i<A_Size;i++)
{
cout<<" "<<A[i]<<" ";
}
cout<<"\n\n";
cout <<"\tEnd of Program";
cout<<"\n\n";
}
Subscribe to:
Posts (Atom)