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
Wednesday, May 19, 2021
Finding the Largest Number in an Array in C
Machine Problem
Write a program for finding the largest number in an array.
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 at my email address also. Thank you.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
My mobile number here in the Philippines is 09173084360.
Tuesday, May 18, 2021
Person's Age Checker in Java
In this tutorial, I will show you how to check the person's age if the person is still a minor or already an adult 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 at my email address also. Thank you.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
My mobile number here in the Philippines is 09173084360.
/* Persons_Age_Checker.java
* Mr. Jake Rodriguez Pomperada,MAED-IT, MIT
* www.jakerpomperada.com www.jakerpomperada.blogspot.com
* jakerpomperada@gmail.com
* Bacolod City, Negros Occidental Philippiens
*/
import java.util.*;
public class Persons_Age_Checker {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int age=0;
Scanner input = new Scanner(System.in);
System.out.println();
System.out.print("\tPerson's Age Checker in Java ");
System.out.println("\n");
System.out.print("Enter your age: ");
age = input.nextInt();
if(age <= 17)
{
System.out.println("\nYour age belongs to MINOR.");
}
else
{
System.out.println("\nYour age belongs to an ADULT.");
}
System.out.println();
System.out.print("\tEnd of Program");
System.out.println();
}
}
Monday, May 17, 2021
Area of the Rectangle in VB.NET
Machine Problem
Write a program that will ask the user to give a radius of a circle and the program will compute
the area of the circle.
Use the following formula below.
area = (3.14 * radius * radius)
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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
' Area of the Rectangle in VB.NET
' Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
' www.jakerpomperada.com and www.jakerpomperada.blogspot.com
' jakerpomperada@gmail.com
' Bacolod City, Negros Occidental Philippines
' May 16, 2021 Sunday 1:10 PM
Public Class Form1
'Declaring constant value of PI of the circle
Public Const PI = 3.14
' Compute Button
Private Sub btnCompute_Click(sender As Object, e As EventArgs) Handles btnCompute.Click
Dim radius As Single = 0.0F
Dim area As Single = 0.0F
Dim radius_value As String
radius_value = txtRadius.Text
If radius_value = "" Or IsNumeric(radius_value) = False Then
MessageBox.Show("Please enter a radius value.")
txtRadius.Focus()
Else
area = PI * Val(radius_value) * Val(radius_value)
txtArea.Text = area.ToString("#####.##")
txtArea.ReadOnly = True
End If
End Sub
' Clear Button
Private Sub btnClear_Click(sender As Object, e As EventArgs) Handles btnClear.Click
txtRadius.Text = ""
txtArea.Text = ""
txtRadius.Focus()
End Sub
Private Sub btnQuit_Click(sender As Object, e As EventArgs) Handles btnQuit.Click
Dim result = MessageBox.Show(" Are you sure you want to quit the program?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If result = DialogResult.Yes Then
Me.Close()
Else
Me.Show()
txtRadius.Text = ""
txtArea.Text = ""
txtRadius.Focus()
End If
End Sub
End Class
Sunday, May 16, 2021
Print Half Pyramid in Java
In this tutorial, I will show you have to create a print pyramid using the Java programming language.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Saturday, May 15, 2021
Factorial a Number in Java with Error Handling Message
A simple factorial a number in Java with Error Handling Message.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Factorial Program in Java with Error Handling
A simple factorial program with error handling in Java programming language.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Friday, May 14, 2021
Quiz in Java With Error Handling
Machine Problem
Create a simple quiz program using Java programming language.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
/* Quiz.java
* Mr. Jake Rodriguez Pomperada,MAED-IT, MIT
* www.jakerpomperada.com www.jakerpomperada.blogspot.com
* jakerpomperada@gmail.com
* Bacolod City, Negros Occidental Philippiens
*/
import java.util.Scanner;
public class Quiz {
/**
* @param args
*/
static Scanner input = new Scanner(System.in);
public static void main(String[] args)
{
int score = 0;
final double NumberofQuestions = 5;
String[][] QandA = {
{"Who is the first president of the Philippines?","\n1. Emilio Aguinaldo \t 2. Joseph Estrada \n3. Manuel Quezon \t 4: GMA.","1","1. Emilio Aguinaldo"},
{"Hitler party which came into power in 1933 is known as?","\n1. Labour Party \t 2. Nazi Party \n3. Ku-Klux-Klan \t 4. Democratic Party","2", "2. Nazi Party"},
{"For which of the following disciplines is Nobel Prize awarded?","\n1. Physics and Chemistry \t 2. Physiology or Medicine \n3. Literature, Peace, and Economics \t 4. All of the above","4","4. All of the above."},
{"What is 3 * (2-1)?","\n1.1 \t 2.2 \t 3.3 \t 4.4 ","3","3.3"},
{"What is 1+1?","\n1.1 \t 2.2 \t 3.3 \t 4.4 ","2","2.2"} };
String[] Answers = new String[(int) NumberofQuestions];
int x=0;
do
{
System.out.println();
System.out.print(QandA[x][0] + " "+QandA[x][1] +"\n");
System.out.print("Enter [1-4]: ");
Answers[x] = String.valueOf(input.nextInt());
Answers[x].toLowerCase();
if(QandA[x][2].equals(Answers[x]))
{
System.out.print("Correct!");
score++;
}
else
{
System.out.print("Incorrect. The correct answer is: "+ QandA[x][3] );
}
System.out.print("\n");
x++;
}while(x<NumberofQuestions);
System.out.println();
System.out.print("Congratulations, you got " + score + " answers right!");
System.out.println("\nThat is a score of " + ((score/NumberofQuestions)*100)+"% percent.");
System.exit(0);
input.close();
}
} // End of Code
Number To Words in Java With Error Handling
Machine Problem
Create a program
that converts numbers to words using Java programming language.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
/* Number_Words.java
* Mr. Jake Rodriguez Pomperada,MAED-IT, MIT
* www.jakerpomperada.com www.jakerpomperada.blogspot.com
* jakerpomperada@gmail.com
* Bacolod City, Negros Occidental Philippines
*/
import java.util.Scanner;
public class Number_Words {
public static void main(String[] args) {
int number = 0;
Scanner input = new Scanner(System.in);
boolean valid;
do {
System.out.println();
System.out.print("\tNumber To Words in Java\n\n");
System.out.print("Enter Number: ");
number = input.nextInt();
valid = (number >= 1 && number <= 100000);
System.out.println();
if (number > 100000) {
System.out.print("Number is out of range!\n");
} else if (!valid) {
System.out.println("Negative numbers, zero, and numbers greater than 100,000 are invalid input.");
}
else {
System.out.print(numberToWord(number));
}
}while (!valid);
System.out.println("\n");
System.out.println("End of Program");
input.close();
}
private static String numberToWord(int number) {
String words = "";
String unitsArray[] = { "zero", "one", "two", "three", "four", "five", "six",
"seven", "eight", "nine", "ten", "eleven", "twelve",
"thirteen", "fourteen", "fifteen", "sixteen", "seventeen",
"eighteen", "nineteen" };
String tensArray[] = { "zero", "ten", "twenty", "thirty", "forty", "fifty",
"sixty", "seventy", "eighty", "ninety" };
if (number == 0) {
return "zero";
}
if (number < 0) {
String numberStr = "" + number;
numberStr = numberStr.substring(1);
return "minus " + numberToWord(Integer.parseInt(numberStr));
}
if ((number / 1000) > 0) {
words += numberToWord(number / 1000) + " thousand ";
number %= 1000;
}
if ((number / 100) > 0) {
words += numberToWord(number / 100) + " hundred ";
number %= 100;
}
if (number > 0) {
if (number < 20) {
words += unitsArray[number];
} else {
words += tensArray[number / 10];
if ((number % 10) > 0) {
words += "-" + unitsArray[number % 10];
}
}
}
return words;
}
}
Simple Avatar Image in HTML & CSS
A simple avatar image in HTML and CSS that I wrote I hope you will find my work useful.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Simple Avatar Image in HTML & CSS</title>
<style>
*,
html {
box-sizing: border-box;
padding: 0;
margin: 0;
}
body {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background: #13141c;
}
main {
display: block;
padding: 30px;
border-radius: 10px;
background: #212330;
}
.container {
text-align: center;
color: #eee;
font-family: sans-serif;
height: auto;
}
.wrapper {
background: #8a8a8a;
padding: 2px;
border-radius: 50%;
width: 300px;
margin: 20px auto 0;
}
img {
display: block;
width: 100%;
border-radius: 50%;
}
</style>
</head>
<body>
<main>
<div class="container">
<h1>Simple Avatar Image in HTML & CSS</h1>
<h2>» Jake R. Pomperada, MAED-IT, MIT «</h2>
<div class="wrapper">
<img src="jacob.jpg" class="img-avatar" alt="" />
</div>
</div>
</main>
</body>
</html>