Thursday, September 24, 2020

US Money Exchange Solver

  I will show you write a program that takes as input any change expressed in cents. It should then compute the number of half-dollars, quarters, dimes, nickels, and pennies to be returned, returning as many half dollars as possible, the quarters, dimes, nickels, and pennies, in that order. For example, 493 cents should return 9 half dollars, 1 quarter, and 1 dime, and 1 nickel and 3 pennies using C++ programming language.

Note: US half dollar = 50 cents, quarter = 25 cents, dime = 10 cents, nickel = 5 cents, and penny = 1 cent.


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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Program Listing

 /* us_dollar.cpp

   Author  : Jake Rodriguez Pomperada, MAED-IT, MIT

   Date    : September 24, 2020

   Email   : jakerpomperada@gmail.com

   Website : www.jakerpomperada.com / www.jakerpomperada.blogspot.com

*/


#include <iostream>

using namespace std;

int main()

{

int us_dollar=0;

int halfDollar=0, quarter=0;

int dime=0, penny=0,nickel=0;

cout << "\n\n";

cout << "\tUS Money Exchange Solver";

cout << "\n\n";

cout<<"\tGive amount in US Dollar Cents: ";

cin>>us_dollar;

halfDollar=us_dollar/50;

us_dollar=us_dollar%50;

quarter=us_dollar/25;

us_dollar=us_dollar%25;

dime=us_dollar/10;

us_dollar=us_dollar%10;

nickel= us_dollar/5;

penny= us_dollar%5;

cout << "\n\n";

cout << "\tDisplay Results";

cout << "\n\n";

cout << "\tHalf Dollars : "<<halfDollar<<"\n";

cout << "\tQuarters     : "<<quarter<<"\n";

cout << "\tDime         : "<<dime<<"\n";

cout << "\tNickle       : "<<nickel<<"\n";

cout << "\tPennys       : "<<penny<<"\n";

cout <<"\n\n";

cout <<"\tEnd of Program";

cout <<"\n\n";

}



Wednesday, September 23, 2020

Swap Two Numbers in C

 A simple C program to ask the user to give two numbers and then the program will swap the arrangement of the two numbers.

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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Program Listing

/* swap.c
   Jake Rodriguez Pomperada,MAED-IT,MIT
   September 23,2 2020
   www.jakerpomperada.com
   www.jakerpomperada.blogspot.com
   jakerpomperada@gmail.com
*/

#include <stdio.h>

int main() 
 {
   int a=0,b=0, temp=0;
   system("COLOR F0");
   printf("\n\n");
   printf("\tSwap Two Numbers in C");
   printf("\n\n");
   printf("\tGive First Value  : ");
   scanf("%d", &a);
   printf("\n");
   printf("\tGive Second Value : ");
   scanf("%d", &b);
   printf("\n\n");
   printf("\tBefore Swapping");
   printf("\n\n");
   printf("\tA = %d and B = %d",a,b);
   
   // Swapping of values here
   temp = a;
   a = b;
   b = temp;
   
   printf("\n\n\n");
   printf("\tAfter Swapping");
   printf("\n\n");
   printf("\tA = %d and B = %d",a,b);
      
   printf("\n\n\n");
   printf("\tEND OF PROGRAM");
   printf("\n\n");
}

String Palindrome in Java

In this article, I will show you how to write a program to ask the user to give a string and then the program will check if the given string is a palindrome or not a palindrome 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

Program Listing

package Palindrome;

/**
 * @author Jake R. Pomperada ,MAED-IT, MIT
 * jakerpomperada@gmail.com
 * www.jakerpomperada.com
 * www.jakerpomperada.blogspot.com
 * Bacolod City, Negros Occidental, Philippines
 *
 */

import java.util.*;

public class Palindrome_String {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub

String original, reverse = "";
System.out.println("\n");
    System.out.print("\tString Palindrome in Java");
    System.out.println("\n");
 
Scanner in = new Scanner(System. in);
System.out.print("\tGive a String : ");
original = in.nextLine();
int length = original.length();
for ( int i = length - 1; i >= 0; i-- )
reverse = reverse + original.charAt(i);
System.out.println();
if (original.equals(reverse))
System.out.println("\tThe string " + original + " is a palindrome.");
else
System.out.println("\tThe string " + original +  " not a palindrome.");
   System.out.println("\n");
System.out.println("\tEnd of Program");
        System.out.println("\n\n");
}

}

Product of Two Numbers in Go

 A simple program that I wrote using Go programming language to ask the user to give two numbers and then the program will multiply the values of the two numbers 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.

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.

Program Listing

/* product.go
   Author   : Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
   Date     : September 22, 2020  10:22 PM  Tuesday
   Websites : www.jakerpomperada.com  / www.jakerpomperada.blogspot.com
   Emails   : jakerpomperada@gmail.com and jakerpomperada@yahoo.com
   Location : Bacolod City, Negros Occidental Philippines.
*/

package main

import "fmt"

func main() {
    var a, b int
    var product int

    fmt.Printf("\n")
    fmt.Print("\tProduct of Two Numbers")
    fmt.Print("\n\n")
    fmt.Print("\tEnter First Value  : ")
    fmt.Scan(&a)
    fmt.Print("\tEnter Second Value : ")
    fmt.Scan(&b)

    product = (a * b)

    fmt.Printf("\n")
    fmt.Printf("\tThe product of %d and %d is %d.",
        a, b, product)
    fmt.Printf("\n\n")
    fmt.Print("\tEnd of Program")
    fmt.Print("\n\n")
}


Tuesday, September 22, 2020

Hello World in JavaScript

ADSORPTION

Swapping Two Numbers in JavaScript

Membrane Processing Part2

Swapping Two Numbers in JavaScript

I will show you how to write a JavaScript program to ask two numbers and then the program will swap the arrangement of the two numbers. 

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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

Program Listing

index.htm

<!DOCTYPE html>
<html>
<head>
<script>
function swapping(){
var a,b,c;
a=Number(document.getElementById("first").value);
b=Number(document.getElementById("second").value);
c=a;
a=b;
b=c;
document.getElementById("answer1").value= a;
document.getElementById("answer2").value= b;
}

function clear_all(){
document.getElementById("first").value= "";
document.getElementById("second").value= "";
document.getElementById("answer1").value= "";
document.getElementById("answer2").value= "";
document.getElementById("first").focus();
}
</script>
<style>
body {
font-family: arial;
size : 15px;
};
</style>
</head>
<body>
<h2> Swapping Two Numbers in JavaScript </h2>
<h3> Before Swapping of Two Numbers </h3>
Give First Value  : <input id="first" 
onkeypress="return event.charCode >= 48 && event.charCode <= 57">
Give Second Value : <input id="second" 
onkeypress="return event.charCode >= 48 && event.charCode <= 57"></br></br>
<button onclick="swapping()">Swap</button>
&nbsp;&nbsp;
<button onclick="clear_all()">Clear</button></br></br>
<h3> After Swapping of Two Numbers </h3>
Give First  Value  : <input id="answer1"
onkeypress="return event.charCode >= 48 && event.charCode <= 57" readonly>
Give Second Value  :  <input id="answer2"
onkeypress="return event.charCode >= 48 && event.charCode <= 57" readonly>
</body>
</html>

Subject Grade Solver in C++

Subject Grade Solver in C++

 In this tutorial, I will show you how to write a program using C++ that will ask the user to give the student name, subject name, the prelim,midterm, semifinal, and final grade and then the program will compute the general average grade of the student 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.

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.

Program Listing

// grade_solver.cpp
// Author  : Jake Rodriguez Pomperada,MAED-IT,MIT
// Date    : September 22, 2020  Tuesday
// Website : http://www.jakerpomperada.blogspot.com
// Email  : jakerpomperada@gmail.com

#include <iostream>
#include <string.h>

using namespace std;

// Prelim = 0.20, Midterm = 0.20, 
// SemiFinal = 0.20, Final = 0.40

int main() 
{
 int prelim=0, midterm=0;
 int semifinal=0,finals=0;
 int solve_grade=0;
 
 char student_name[100];
 char subject[100];

 cout <<"\n\n";
 cout <<"\tSubject Grade Solver in C++";
 cout <<"\n\n";
 cout <<"\tStudent Name : ";
 gets(student_name);
 
 cout <<"\tSubject      : ";
 gets(subject);
 cout <<"\n\n";
 cout <<"\tEnter Prelim Grade : ";
 cin >> prelim;
 cout <<"\tEnter Midterm Grade : ";
 cin >> midterm;
 cout <<"\tEnter Semi Final Grade : ";
 cin >> semifinal;
 cout <<"\tEnter Final Grade : ";
 cin >> finals;
 
 solve_grade = (prelim * 0.2) +
               (midterm * 0.2) +
               (semifinal * 0.2) +
               (finals * 0.4);   
 
 cout <<"\n\n";
 cout << "\tStudent : " << student_name;
 cout <<"\n\n";
 cout << "\tSubject : " << subject;
 cout <<"\n\n";
 cout <<"\tYou general average grade is "
     << solve_grade <<".";
 cout <<"\n\n";
 cout <<"\tEnd of the Program";
}


Monday, September 21, 2020

Power of a Number in C

Power of a Number in C

Belt Unboxing Video with Julianna

Power of a Number in C

 Design and create a program that will ask the user to give base and exponent values and then the program will compute the power value of the number and then display the the result on the screen 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking, and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com


Prorgam Listing

/* power.c
   Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT, MIT
   Date     : September 21, 2020   Monday 3:39 PM
   Location : Bacolod City, Negros Occidental
   Website  : http://www.jakerpomperada.com
   Email    : jakerpomperada@jakerpomperada.com
*/

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

int main()
{
    double base=0.00, exponent=0.00, result=0.00;
    
    system("COLOR F0");
    printf("\n\n");
    printf("\tPower of a Number in C");
    printf("\n\n");
    printf("\tEnter a Base Number : ");
    scanf("%lf", &base);
    printf("\n\n");
    printf("\tEnter an Exponent : ");
    scanf("%lf", &exponent);

    // calculates the power of the number
    result = pow(base, exponent);

printf("\n\n");
printf("\tDISPLAY RESULT");
printf("\n\n");
    printf("\t%.1lf^%.1lf = %.2lf", base, exponent, result);
    printf("\n\n");
printf("\tEnd of Program"); 
printf("\n\n");
}

Saturday, September 19, 2020

Login in Visual Foxpro 9

 A database driven login system with three attempt security feature that I wrote using Microsoft Visual FoxPro 9.0

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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com




Sample Program Output

Program Listing


* Written By: Mr. Jake Rodriguez Pomperada,MAED-IT,MIT
* Microsoft Visual Foxpro 9
* jakerpomperada@gmail.com
* Bacolod City, Negros Occidental, Philippines
* Object : Command1     Proceudre: Click 

cMessageTitle = 'Information'
mcMsg1 = "After Three Attempts. Invalid Username or Password."
mnLenMsg1 = LEN(mcMsg1)
mcMsg2 = "Kindly contact the programmer for assistance."
cMessageText = mcMsg1;
      + CHR(13);
      + mcMsg2
nDialogType = 0 + 48 + 0

SELECT login

thisform.text3.Value = thisform.text3.Value -1
if thisform.text3.Value < 1
MESSAGEBOX(cMessageText, nDialogType, cMessageTitle)
    THISFORM.Release()
Else
 
IF EMPTY(ALLTRIM(THISFORM.Text1.Value))
messagebox("Cannot continue without Username.")
thisform.text1.setfocus()
ELSE
IF EMPTY(ALLTRIM(THISFORM.text2.Value))
messagebox("Cannot continue without Password.")
thisform.text1.setfocus()
ELSE
 locate for allt(lower(username))=allt(lower(login.text1.value)) ;
     .and. allt(lower(pass_me))=allt(lower(login.text2.value))
     if found()
        DO FORM main_page
     ELSE
        messagebox("Incorrect Username or Passsword. Try Again") 
    thisform.text1.value =""
         thisform.text2.value =""
         thisform.text1.setfocus()
    ENDIF
ENDIF
ENDIF
ENDIF



* Written By: Mr. Jake Rodriguez Pomperada,MAED-IT,MIT
* Microsoft Visual Foxpro 9
* jakerpomperada@gmail.com
* Bacolod City, Negros Occidental, Philippines
* Object : Command2    Procedure: Click

thisform.Release


* Written By: Mr. Jake Rodriguez Pomperada,MAED-IT,MIT
* Microsoft Visual Foxpro 9
* jakerpomperada@gmail.com
* Bacolod City, Negros Occidental, Philippines
* Object : Form1    Procedure: Init

THISFORM.Text3.Value = 3


Friday, September 18, 2020

Addition of Two Numbers in Visual Foxpro

Addition of Two Numbers in Visual Foxpro

 Write a Visual Foxpro program to ask the user to give two numbers and then the program will compute the sum of the two numbers given by 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

Program Listing

* Compute Button

a = VAL(thisform.Text1.value)
b =VAL(thisform.Text2.value)

total_sum = (a+b)

thisform.text3.value = LTRIM(STR(total_sum))



* Clear Button

thisform.text1.Value = ""
thisform.text2.Value = ""
thisform.text3.Value = ""
thisform.text1.setfocus()


* Quit Button

thisform.Release

Odd and Even Number Checker in Visual FoxPro