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, September 20, 2021
Square Root in Python
Machine Problem
Write a program that will ask the user to give a number and then the program will convert the given number into square root equivalent.
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 at 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com
If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.
Your support on my channel is highly appreciated.
Program Listing
# square_root.py
# Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.blogspot.com and www.jakerpomperada.com
# jakerpomperada@gmail.com
#
# Write a program that will ask the user to give a number
# and then the program will convert the given number into
# square root equivalent.
import math # This will import math module
print()
print("\tSquare Root in Python")
print()
num_val = float(input('Give a Number : '))
# convert into square root equivalent
square_root =math.sqrt(num_val)
print()
print('%0.2f the square root value is %0.2f ' %(num_val,square_root))
print()
print("\tEnd of Program")
print()
Kilometers To Miles in Python
Machine Problem
Write a program that will ask the user to give distance # in kilometers and then it will convert it into miles distance equivalent.
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 at 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com
If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.
Your support on my channel is highly appreciated.
Program Listing
# kilometers_miles.py
# Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.blogspot.com and www.jakerpomperada.com
# jakerpomperada@gmail.com
#
# Write a program that will ask the user to give distance
# in kilometers and then it will convert it into miles
# distance equivalent
print()
print("\tKilometers To Miles in Python")
print()
kilometers = float(input('How many kilometers?: '))
# conversion factor
conversion_factor = 0.621371
# calculate miles
miles = kilometers * conversion_factor
print()
print('%0.2f kilometers is equal to %0.2f miles' %(kilometers,miles))
print()
print("\tEnd of Program")
print()
Sunday, September 19, 2021
MULTIPLY TWO NUMBERS USING SWING IN JAVA
Machine Problem
Write program that asks the user to give two integer numbers and displays the product 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 at 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com
If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.
Your support on my channel is highly appreciated.
Program Listing
// multiply_two_numbers.java
// Jake Rodriguez Pomperada, MAED-IT, MIT
// www.jakerpomperada.blogspot.com and www.jakerpomperada.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental Philippines
/* Machine Problem
*
* Write program that asks the user to give two integer numbers and displays the product.
*/
import javax.swing.JOptionPane;
public class multiply_two_numbers
{
public static void main( String args[] )
{
JOptionPane.showMessageDialog( null, "MULTIPLY TWO NUMBERS USING SWING IN JAVA" + "\n\n" +
" Click The Ok Button To Continue ",
"About This Program", JOptionPane.INFORMATION_MESSAGE );
// obtain user input from JOptionPane input dialogs
String x =
JOptionPane.showInputDialog( "Enter first integer" );
String y =
JOptionPane.showInputDialog( "Enter second integer" );
// convert String inputs to int values for use in a calculation
int a = Integer.parseInt(x);
int b = Integer.parseInt(y);
// Perform multiplication of variables a and variable b
int product = (a*b);
// display result in a JOptionPane message dialog
JOptionPane.showMessageDialog( null, " The product of " + a + " and " + b + " is " + product + "."
+ "\n\n" + " Written By Prof. Jake R. Pomperada,MAED-IT, MIT " + "\n\n" ,
"The Result", JOptionPane.INFORMATION_MESSAGE );
} // end method main
} // end class multiply_two_numbers
Saturday, September 18, 2021
Friday, September 17, 2021
ODD AND EVEN NUMBERS 100 To 800 IN JAVA
Machine Problem
Write a program using while loop statement that will display odd and even number from 100 to 800 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 at 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com
If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.
Your support on my channel is highly appreciated.
Program Listing
/* Odd_Even_Numbers,java
* Author : Jake Rodriguez Pomperada, MAED-IT, MIT
* September 17, 2021 Friday 11:47 PM
* www.jakerpomperada.blogspot.com and www.jakerpomperada.com
* jakerpomperada@gmail.com
* Bacolod City, Negros Occidental Philippines.
*
* Machine Problem
*
*
* Write a program using while loop statement that will display odd and even
* number from 100 to 800.
*/
public class Odd_Even_Numbers {
public static void main(String[] args) {
int counter1=0, counter2=0;
System.out.print("\t\t\t\tODD AND EVEN NUMBERS 100 To 800 IN JAVA");
System.out.println("\n");
int number=0, i=0;
i=101;
number = 800;
System.out.print("\t\t\t\t\tList of Odd numbers 100 To 800 ");
System.out.println("\n");
System.out.print("\t");
while(i<=number)
{
counter1++;
System.out.print(i +",");
i=i+2;
if(counter1 == 28){
System.out.print("\n\t");
counter1 = 0;
}
}
System.out.println("\n");
System.out.println("\t\t\t\t\tList of Even Numbers 100 To 800");
System.out.println();
int a=100,num=800;
System.out.print("\t");
while(a<=num)
{
counter2++;
System.out.print(a +",");
a=a+2;
if(counter2 == 28){
System.out.print("\n\t");
counter2 = 0;
}
}
System.out.println("\n");
System.out.print("\t\t\t\t\t\tEND OF PROGRAM");
System.out.println("\n");
}
}
Print 1 to 100 in Ascending and Descending Order in Java
Machine Problem
Write a program using for loop that will display a series of a number from
1 to 100 in ascending order and 100 to 1 in descending order 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 at 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com
If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.
Your support on my channel is highly appreciated.
Program Listing
/* Print_1_100,java
* Author : Jake Rodriguez Pomperada, MAED-IT, MIT
* September 17, 2021 Friday 10:56 PM
* www.jakerpomperada.blogspot.com and www.jakerpomperada.com
* jakerpomperada@gmail.com
* Bacolod City, Negros Occidental Philippines.
*
* Machine Problem
*
* Write a program using for loop that will display a series of a number from
* 1 to 100 in ascending order and 100 to 1 in descending order.
*/
public class Print_1_100 {
public static void main(String[] args) {
int counter=0;
System.out.println("\n");
System.out.print("\tPrint 1 to 100 in Ascending and Descending Order in Java");
System.out.println("\n");
System.out.println("\t\tPrint 1 to 100 in Ascending Order");
System.out.println();
System.out.print("\t");
for (int a=1; a<=100; a+=1) {
counter++;
System.out.print( a +",");
if(counter == 25){
System.out.print("\n\t");
counter = 0;
}
}
System.out.println("\n");
System.out.println("\t\tPrint 100 to 1 in Descending Order");
System.out.println();
System.out.print("\t");
for (int a=100; a>=1; a-=1) {
counter++;
System.out.print( a +",");
if(counter == 25){
System.out.print("\n\t");
counter = 0;
}
}
System.out.println("\n");
System.out.print("\t\t\t\tEND OF PROGRAM");
System.out.println("\n");
}
}
Simple Payroll Program in AngularJS
Machine Problem
Write a program that will ask the employee's name, number of day's worked, and rate per day and then the program will display the employee's name, number of day's work, rate per day, and then compute the gross salary of the employee.
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 at 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com
If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.
Your support on my channel is highly appreciated.
Program Listing
index.htm
<!-- index.htm
Author : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
Date : July 24, 2021 Saturday 9:28 PM
Place : Bacolod City, Negros Occidental
Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com
Email : jakerpomperada@gmail.com
-->
<html>
<head>
<title>Simple Payroll Program in AngularJS</title>
<script type="text/javascript" src="angular.min.js"></script>
</head>
<style>
body {
font-family: arial;
font-size: 25px;
font-weight: bold;
}
</style>
<body ng-app="">
<h3>Simple Payroll Program in AngularJS</h3>
<div>
<table border="0">
<tr>
<td>
Enter Employee's Name </td>
<td>
<input type="text" size="40" ng-model="emp_name" required/>
</td>
</tr>
<tr>
<td>
Enter Number of Day's Worked </td>
<td>
<input type="number" size="10" ng-model="days_worked" required/>
</td>
</tr>
<tr>
<td>
Enter Daily Rate </td>
<td>
<input type="number" size="10" ng-model="daily_rate" required/>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<br>
Employee's Name : {{emp_name | uppercase}} <br>
Number of Day's Worked : {{days_worked}}<br>
Rate Per Day : PHP {{daily_rate | number:2}}
<br><br>
Gross Salary : PHP {{ (days_worked * daily_rate) | number:2}}
<br>
</div><br>
</div>
</body>
</html>
Thursday, September 16, 2021
Wednesday, September 15, 2021
Prime Number Checker in Java Using BlueJ
What are Prime Numbers?
In math, prime numbers are whole numbers greater than 1, that have only two factors – 1 and the number itself.
Prime numbers are divisible only by the number 1 or itself.
For example, 2, 3, 5, 7 and 11 are the first few prime numbers.
Reference
https://www.splashlearn.com/math-vocabulary/algebra/prime-number
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 at 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com
If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.
Your support on my channel is highly appreciated.
Program Listing
// Prime_Number.java
// Jake Rodriguez Pomperada,MAED-IT, MIT
// www.jakerpomperada.blogspot.com and www.jakerpomperada.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental Philippines
import java.util.Scanner;
public class Prime_Number {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println();
System.out.print("\tPrime Number Checker in Java Using BlueJ ");
System.out.println("\n");
System.out.print("\tEnter a Number : ");
int num = scan.nextInt();
boolean flag = false;
for(int i = 2; i <= num/2; ++i)
{
if(num % i == 0)
{
flag = true;
break;
}
}
System.out.println("\n");
if (!flag)
System.out.println("\t" + num + " is a prime number.");
else
System.out.println("\t" + num + " is not a prime number.");
}
}