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 18, 2022
Add and Divide Two Numbers in C++
A simple program that will ask the user to give two numbers and then the program computes the sum and quotient of the two given numbers using a 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.
Please subscribe to my channel https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg
=================================================
Want to support my channel?
GCash Account
Jake Pomperada
09173084360
Paypal
https://paypal.me/jakerpomperada
Patreon
https://www.patreon.com/jakerpomperada
Thank you very much for your support.
Tuesday, May 17, 2022
Decimal To Binary In PHP
A simple program to ask the user to give a decimal value and then it will convert into binary equivalent using PHP 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.
Please subscribe to my channel https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg
=================================================
Want to support my channel?
GCash Account
Jake Pomperada
09173084360
Paypal
https://paypal.me/jakerpomperada
Patreon
https://www.patreon.com/jakerpomperada
Thank you very much for your support.
Program Listing
<?php
$output = "";
if (isset($_POST["txtNumber"])) {
$output = '<div class="output">Binary Value = '.
decbin($_POST["txtNumber"]).
'</div>';
}
?>
<!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>Decimal To Binary In PHP</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: #eee;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: sans-serif;
}
form {
background: #fff;
padding: 30px;
border-radius: 10px;
}
h2 {
margin-bottom: 20px;
}
label,
input,
button {
display: block;
width: 100%;
font-size: 14px;
}
label {
padding: 5px 0;
}
input {
padding: 5px;
margin-bottom: 5px;
}
button {
padding: 8px 0;
background-color: #4caf50;
border: none;
border-radius: 3px;
color: #fefefe;
cursor: pointer;
}
.output {
margin-top: 10px;
background-color: #472781;
padding: 12px 0;
color: #fefefe;
text-align: center;
}
</style>
</head>
<body>
<form action="" method="post">
<h1>Decimal To Binary In PHP</h1>
<h2>Jake R. Pomperada, MAED-IT, MIT</h2>
<label for="txtNumber">Enter a number to convert:</label>
<input type="number" name="txtNumber" id="txtNumber" value="<?= isset($_POST["txtNumber"])?$_POST["txtNumber"]:""; ?>" autofocus>
<button type="submit">Convert To Binary</button>
<?= $output; ?>
</form>
</body>
</html>
Monday, May 16, 2022
Reverse a String in C++
A simple program to reverse a given string 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.
Please subscribe to my channel https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg
=================================================
Want to support my channel?
GCash Account
Jake Pomperada
09173084360
Paypal
https://paypal.me/jakerpomperada
Patreon
https://www.patreon.com/jakerpomperada
Thank you very much for your support.
Sunday, May 15, 2022
Age Checker in AngularJS
Machine Problem
Write a program that uses ng-app directive that will check if the given age is already an adult, or still a minor, and display the results on the screen.
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.
Please subscribe to my channel https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg
=================================================
Want to support my channel?
GCash Account
Jake Pomperada
09173084360
Paypal
https://paypal.me/jakerpomperada
Patreon
https://www.patreon.com/jakerpomperada
Thank you very much for your support.
index.htm
<!-- index.htm
Author : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
Date : July 28, 2021 Wednesday 3:16 PM
Place : Bacolod City, Negros Occidental
Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com
Email : jakerpomperada@gmail.com
-->
<html>
<head>
<title>Age Checker Using ng-init in AngularJS</title>
</head>
<style>
body {
font-family: "arial";
font-style: bold;
font-size: 18px;
}
</style>
<script type="text/javascript" src="angular.min.js"></script>
<body><br>
<h3>Age Checker Using ng-init in AngularJS</h3>
<body>
<script>
angular.module('app', []).filter('Check_Age', function() {
return function(given_age) {
if (given_age>=18)
{
display = "At the age " + given_age +
" years old. You are already an Adult.";
}
else
{
display = "At the age " + given_age +
" years old. You are still a Minor.";
}
return(display);
};
});
</script>
<div ng-app="app" ng-model="given_age" ng-init="given_age=12">
<p> {{ given_age | Check_Age}}</p>
</div>
</body>
</html>
</body>
</html>
Saturday, May 14, 2022
Bigger Between Two Numbers in C
A program to check if the two given number has the same numerical value or bigger numerical value in one another using the 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.
Please subscribe to my channel https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg
=================================================
Want to support my channel?
GCash Account
Jake Pomperada
09173084360
Paypal
https://paypal.me/jakerpomperada
Patreon
https://www.patreon.com/jakerpomperada
Thank you very much for your support.
Program Listing
bigger.c
#include <stdio.h>
/* Bigger Between Two Numbers in C */
int main() {
int a=0, b=0;
printf("\n");
printf("\tBigger Between Two Numbers in C");
printf("\n\n");
printf("\tGive Two Integer Numbers : ");
scanf("%d %d", &a, &b);
printf("\n\n");
if(a > b)
{
printf("\t%d is Largest Number.\n", a);
}
else if (b > a)
{
printf("\t%d is Largest Number.\n", b);
}
else
{
printf("\tBoth are Equal Numbers. \n");
}
printf("\n");
printf("\tEnd of Program");
printf("\n\n");
return 0;
}
Average of Arrays of Numbers in C++
A simple program to compute the average of arrays of numbers using 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.
Please subscribe to my channel https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg
=================================================
Want to support my channel?
GCash Account
Jake Pomperada
09173084360
Paypal
https://paypal.me/jakerpomperada
Patreon
https://www.patreon.com/jakerpomperada
Thank you very much for your support.
Program Listing
#include <iostream>
#include <valarray>
using namespace std;
int main()
{
valarray <int> nums = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
cout <<"\n";
cout << "\tAverage of Arrays of Numbers in C++";
cout <<"\n\n";
cout << "\tThe Result : " << ( nums.sum() + 0.0 ) / nums.size() << '\n';
cout <<"\n";
cout << "\tEnd of Program";
cout <<"\n";
}
Friday, May 13, 2022
Calculator in C#
A simple calculator program is written 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.
Please subscribe to my channel https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg
=================================================
Want to support my channel?
GCash Account
Jake Pomperada
09173084360
Paypal
https://paypal.me/jakerpomperada
Patreon
https://www.patreon.com/jakerpomperada
Thank you very much for your support.
Program Listing
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
try
{
Run();
}
catch (Exception ex)
{
Console.WriteLine("The following error occured\n" + ex);
}
Console.ReadKey();
}
private static void Run()
{
Console.WriteLine("\n");
Console.Write("\tCalculator in C#");
Console.WriteLine("\n");
int firstNum = ReadInt("\tEnter first number: ");
int secondNum = ReadInt("\tEnter second number: ");
Console.Write("\tEnter operator: ");
int op = Console.Read();
int result = CoCalculation(firstNum, secondNum, (char)op);
Console.WriteLine("\n");
Console.WriteLine("\tThe Result: " + result);
Console.WriteLine("\n");
Console.Write("\tEnd of Program");
Console.WriteLine("\n");
}
private static int CoCalculation(int firstNum, int secondNum, char op)
{
switch (op)
{
case '+':
return firstNum + secondNum;
case '-':
return firstNum - secondNum;
case '*':
return firstNum * secondNum;
case '/':
if (secondNum == 0)
throw new Exception("Cannot divide by 0");
return firstNum / secondNum;
default:
throw new Exception("Illegal operand");
}
}
private static int ReadInt(string prompt)
{
Console.Write(prompt);
string input = Console.ReadLine();
return int.Parse(input);
}
}
}
Thursday, May 12, 2022
Decimal To Octal in C++
A program that will ask the user to give a number in decimal and convert it into octal equivalent using a 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.
Please subscribe to my channel https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg
=================================================
Want to support my channel?
GCash Account
Jake Pomperada
09173084360
Paypal
https://paypal.me/jakerpomperada
Patreon
https://www.patreon.com/jakerpomperada
Thank you very much for your support.