Tuesday, August 18, 2020

Loan Interest Solver

Loan Interest Solver

 A simple program that I wrote to solve the loan interest of a customer using the C programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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

Sample Program Output

Program Listing

/* loan_solver.c   
   Jake Rodriguez Pomperada,MAED-IT,MIT
   jakerpomperada@gmail.com  */

#include <stdio.h>

int main()
{
    float principal=0.00, time=00;
float rate=0.00, solve_interest=0.00;
    
system("COLOR F0");
printf("\n\n");
    printf("\tLoan Interest Solver");
printf("\n\n");
    printf("\tEnter Principal Amount PHP : ");
    scanf("%f",&principal);
    printf("\n");
    printf("\tEnter No. of Years  : ");
    scanf("%f",&time);
    printf("\n");
    printf("\tEnter Percent Rate % : ");
    scanf("%f",&rate);
     
    solve_interest = (principal * time * rate) / 100;

  printf("\n\n");
    printf("\tThe Interest is PHP %.2f.",solve_interest);
    printf("\n\n");
printf("\tEnd of Program"); 
printf("\n\n");
  }


Area of the Circle Solver in C

Area of the Circle Solver in C

 A simple program that I wrote to solve the area of the circle using the C programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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

Sample Program Output


Program Listing

/* area_of_the_circle.c
   Jake Rodriguez Pomperada,MAED-IT,MIT
   www.jakerpomperada.com
   jakerpomperada@gmail.com
*/   

#include <stdio.h>

#define PI  3.14

int main() 
 {
   float radius=0.00, area=0.00;
   
   system("COLOR F0");
   printf("\n\n");
   printf("\tArea of the Circle Solver in C");
   printf("\n\n");
   printf("\tGive the radius of Circle : ");
   scanf("%f", &radius);
 
   area = (PI * radius * radius);

   printf("\n\n");
   printf("\tThe Area of Circle is %.2f.",area);
   printf("\n\n");
   printf("\tEnd of Program");
   printf("\n\n");
  
}


fgets Demonstration in C

fgets Demonstration in C

 A simple program using the C programming language to show how to use the fgets statements.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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



Sample Program Output

Program Listing


/* fgets.c  */

/* Jake R. Pomperada,MAED-IT, MIT  */

/* jakerpomperada@gmail.com */


#include <stdio.h>

#include <stdlib.h>



int main()

{

    char name[50] = {0};

    

    printf("\n");

    printf("\tfgets Demonstration in C");

    printf("\n\n");

printf("\tEnter your name: ");


    if (fgets(name, 30, stdin)) {

    printf("\n\n");

    printf("\tYour name is: %s", name);

}

      else {

  printf("\n\n");

      printf("\tIf you don't want to...");

   }

    return EXIT_SUCCESS;

}


PART 1 | BINASAG NA NAMAN NI RALPH ANG KANYANG MGA ALKANSYA SA KANYANG B...

Sunday, August 16, 2020

Age Checker in C

 A simple program that I wrote that will ask the user to give their age and the program will check and determine whether that user age is still a minor or already an adult using C programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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




Sample Program Output

Program Listing

#include <stdio.h>
 

int main()
{   
    char *age_checker[] = {"You are still a Minor.",
                     "You are already an Adult.",
};
    char *display_age;
 
    int age=0;
    
    printf("\n\n");
printf("\tAge Checker in C");
printf("\n\n");
printf("\tWhat is Your Age? : ");
    scanf("%d",&age);
     
     
     if (age >= 18) {
display_age = age_checker[1];
}
     switch (age < 18) {
     
    case 1 : case 2 : case 3 : case 4: case 5:
    case 6 : case 7 : case 8 : case 9: case 10:
    case 11 : case 12 : case 13 : case 14: case 15:
    case 16 : case 17 : 
display_age = age_checker[0];
break;
                  
}
    
    
printf("\n\n");
printf("\t===== DISPLAY RESULTS =====");
printf("\n\n");
printf("\tAt the age of %d years old.\n\n",age);
printf("\t%s",display_age);
printf("\n\n");
printf("\tEnd of Program");
printf("\n");
}




Volume of a Sphere Converter in C

 A simple program that I wrote that will ask the user to give value in radius and then the program will compute the volume of a sphere using C programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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



Sample Program Output

Program Listing


#include <stdio.h>


#define PI  3.14


int main()

{   

    float volume_sphere = 0.00;

    float radius = 0.00;

    printf("\n\n");

printf("\tVolume of a Sphere Converter");

printf("\n\n");

printf("\tEnter Radius Value : ");

    scanf("%f",&radius);


    /* Compute the volume of Sphere */

    

    volume_sphere = (4.0/3.0)*(PI*radius*radius*radius);

    

printf("\n\n");

printf("\tThe Volume of Sphere is %5.2f.",volume_sphere);

printf("\n\n");

printf("\tEnd of Program");

printf("\n");

}



Temperature Checker in C

 A temperature program that I wrote using C programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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


Sample Program Output

Program Listing


#include <stdio.h>

int main()
{   

char *temp_value[] = {"ICE","WATER","STEAM"};
                      
char  *display_temp; 

    int temperature = 0;
    printf("\n\n");
printf("\tTemperature Checker in C");
printf("\n\n");
printf("\tWhat is the Temperature? : ");
    scanf("%d",&temperature);
   
   if (temperature < 0) {
    display_temp = temp_value[0];
   } else if (temperature > 100) {
    display_temp = temp_value[2];
   }
     
    switch(temperature) {
     case 0 : case 1 : case 2 : case 3 : case 4 : case 5: 
     case 6 : case 7 : case 8 : case 9 : case 10: 
     case 11 : case 12 : case 13 : case 14 : case 15: 
     case 16 : case 17 : case 18 : case 19 : case 20: 
     case 21 : case 22 : case 23 : case 24 : case 25: 
     case 26 : case 27 : case 28 : case 29 : case 30: 
     case 31 : case 32 : case 33 : case 34 : case 35: 
     case 36 : case 37 : case 38 : case 39 : case 40: 
     case 41 : case 42 : case 43 : case 44 : case 45: 
     case 46 : case 47 : case 48 : case 49 : case 50: 
     case 51 : case 52 : case 53 : case 54 : case 55: 
     case 56 : case 57 : case 58 : case 59 : case 60: 
     case 61 : case 62 : case 63 : case 64 : case 65: 
     case 66 : case 67 : case 68 : case 69 : case 70: 
case 71 : case 72 : case 73 : case 74 : case 75: 
     case 76 : case 77 : case 78 : case 79 : case 80: 
     case 81 : case 82 : case 83 : case 84 : case 85: 
     case 86 : case 87 : case 88 : case 89 : case 90: 
     case 91 : case 92 : case 93 : case 94 : case 95: 
case 96 : case 97 : case 98 : case 99 : case 100: 
display_temp = temp_value[1];
         break;
    }
    
    printf("\n\n");
printf("\tThe Temperature is %s.", display_temp);
printf("\n\n");
printf("\tEnd of Program");
printf("\n");
}


US Dollar To Philippine Peso Converter Using C language

 A simple program to ask the user to give a value in US Dollar and then convert into Philippine Peso using C programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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


Sample Program Output


Program Listing

#include <stdio.h>

#define PHIL_PESO  50.74

int main()
{   
    float convert = 0.00, us_dollar = 0.00;
   
    printf("\n\n");
printf("\tUS Dollar To Philippine Peso Converter");
printf("\n\n");
printf("\tEnter US Dollar Value : ");
scanf("%f",&us_dollar);
convert = (us_dollar *  PHIL_PESO);
  
printf("\n\n");
printf("\tThe value of $%2.2f US Dollars in ",us_dollar);
printf("Philippine Peso is PHP %2.2f.",convert);
printf("\n\n");
printf("\tEnd of Program");
printf("\n");
}




Thursday, August 13, 2020

Memory Allocation in C

 A program was written by my friend and fellow software engineer Thomas to demonstrate how to use memory allocation using C programming language. Thank you Tom for sharing your code to us.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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


Program Listing

#define DEBUG

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>

void* alloc_mem(size_t size, const char *file, unsigned line)
{
     assert(size > 0);
     assert(file != NULL);

     void* res = malloc(size);
     if (res == NULL)
         fprintf(stderr, "malloc failed at %s(%u)\n",file, line);
     else {
         fprintf(stderr, "alloc\t%u\t%u\t%s\t%u\n", (unsigned int)res,
size,file, line);
         memset(res, 0xCC, size);
     }

     return res;
}

void free_mem(void *p, const char *file, unsigned line)
{
     assert(p != NULL);
     fprintf(stderr, "free\t%u\t?\t%s\t%u\n", (unsigned int)p, file, line);
}

#ifdef DEBUG
#define malloc(size)    alloc_mem(size, __FILE__, __LINE__)
#define free(p)         free_mem(p, __FILE__, __LINE__);
#endif

int f()
{
     int *num = malloc(sizeof(int *));

     return *num;
}

int main()
{
     int *ip = malloc(sizeof(int *));
     if (ip != NULL)
     {
         *ip = 11;
         printf("*ip = %d\n", *ip);
     }
     printf("Num = %d\n", f());
     free(ip);
     //system("pause");
     return EXIT_SUCCESS;



Wednesday, August 12, 2020

Product of Two Numbers in Java

Product of Two Numbers in Java

 A simple program that I wrote using Java programming language that will ask the user to give two numbers and then the program will compute the product of two numbers and display the results on the screen.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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

Sample Program Output



Program Listing

product.java

/* Product.java
 * Author : Jake Rodriguez Pomperada, MAED-IT, MIT
 * Email  : jakerpomperada@gmail.com
 * Place  : Bacolod City, Negros Occidental Philippines
 */

import java.util.Scanner;

public class Product {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
  
  System.out.println();
  System.out.println("\tProduct of Two Numbers in Java");
  System.out.println();
  System.out.print("\tGive First Number: ");
  int num1 = in.nextInt();
   
  System.out.print("\tGive Second Number: ");
  int num2 = in.nextInt();
   
  System.out.println();
  System.out.println("\t"+ num1 + " x " + num2 + " = " + num1 * num2);
  System.out.println();
  System.out.println("\tEnd of Program");
  System.out.println("\n\n");
}

}


Sunday, August 9, 2020

How To Run a PHP program in XAMPP?

Length of the String in C++

 I wrote this simple program to find the length of the string using C++ programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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


Sample Program Output

Program Listing

// length.cpp
// Author : Jake Rodriguez Pomperada,MAED-IT,MIT
// Email  : jakerpomperada@gmail.com

#include <iostream>
#include <cstring>

using namespace std;

int main()
{
    char str[] = "Information Technology";

    cout << "\n\n";
    cout << "\tLength of the String in C++";
    cout << "\n\n";
    cout << "\tThe Given String  : " << str <<"\n\n";
cout << "\tThe String Length = " << strlen(str);
cout << "\n\n";
cout << "\tEnd of Program ";
cout << "\n\n";
}


Months and it's Days in PHP

 I wrote this program to display the months and its corresponding days using PHP programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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


Sample Program Output

Program Listing

<html> 
<head>
 <title>Months and it's Days in PHP </title>
</head>
<style>
 body {
font-family: arial;
size  : 12px;
 };
</style> 
<body>
<h2>Months and it's Days in PHP</h2>
<?php

$months=Array("January","February","March","April","May","June","July","August","September","October","November","December");

$count=1;
foreach($months as $current_month) {
print "$current_month has ".cal_days_in_month(CAL_GREGORIAN,$count,date("Y"))." days<Br>";
$count++;
}

?>
</body>
</html>





Hello World in PHP

Hello World in PHP

 A very simple hello world program that I wrote using PHP programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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

Program Listing

<html> 

<head>

 <title>Hello World in PHP </title>

</head>

<style>

 body {

font-family: arial;

size  : 12px;

color : red;

 };

</style> 

<body>

<?php

 echo "<h1>Hello World in PHP </h1>";

 ?>

</body>

</html>