Thursday, September 26, 2019

Fahrenheit To Celsius Converter in C++

A simple program that I wrote that will ask the user to give temperature in Fahrenheit and then it will convert into Celsius equivalent using C++ as our 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.



Program Listing

#include <iostream>
#include <iomanip>

using namespace std;

int main() {
float celsius=0.00, fahrenheit=0.00;
cout <<"\n\n";
cout <<"\tFahrenheit To Celsius Converter";
cout <<"\n\n";
cout <<"\tEnter Temperature in Fahrenheit : ";
cin >> fahrenheit;
celsius = (fahrenheit - 32) * 5 /9;
cout <<"\n\n";
cout <<"\tThe temperature in Celsius is "
     << fixed << setprecision(2) << celsius <<".";
cout <<"\n\n";
cout << "\tEnd of the Program";
}




Odd and Even Number Checker in C++

Fahrenheit To Celsius Converter in C++

Wednesday, September 25, 2019

ADDITION OF THREE NUMBERS USING BATCH IN DOS

Here is a simple program that I wrote using DOS Batch file programming that will ask the user to give three numbers and then the program will add the sum of the three 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 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

sum.bat

@ECHO OFF
echo.
echo ADDITION OF THREE NUMBERS USING BATCH IN DOS
ECHO.
echo. CREATED BY MR. JAKE R. POMPERADA
echo.
ECHO Enter First Value:
SET /P a=
ECHO Enter Second Value:
SET /P b=
ECHO Enter Third Value:
SET /P c=

ECHO.
SET /A Ans=%a%+%b%+%c%
ECHO The total sum is %Ans%.
ECHO.
ECHO Press any key to exit.
PAUSE>NUL




Web Forms in Golang

A simple web forms in Go programming language it will ask the name and address of the user and send to the other web page.

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

forms.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8" />
</head>
<body>
<div>
  <form method="POST" action="/">     
      <label>Name</label><input name="name" type="text" value="" />
      <label>Address</label><input name="address" type="text" value="" />
      <input type="submit" value="submit" />
  </form>
</div>
</body>
</html>


main.go

package main
 
import (
    "fmt"
    "log"
    "net/http"
)
func hello(w http.ResponseWriter, r *http.Request) {
    if r.URL.Path != "/" {
        http.Error(w, "404 not found.", http.StatusNotFound)
        return
    }
 
    switch r.Method {
    case "GET":     
         http.ServeFile(w, r, "forms.html")
    case "POST":
        // Call ParseForm() to parse the raw query and update r.PostForm and r.Form.
        if err := r.ParseForm(); err != nil {
            fmt.Fprintf(w, "ParseForm() err: %v", err)
            return
        }
       // fmt.Fprintf(w, "Post from website! r.PostFrom = %v\n", r.PostForm)
        name := r.FormValue("name")
        address := r.FormValue("address")
        fmt.Fprintf(w, "Name = %s\n", name)
        fmt.Fprintf(w, "Address = %s\n", address)
    default:
        fmt.Fprintf(w, "Sorry, only GET and POST methods are supported.")
    }
}
 
func main() {
    http.HandleFunc("/", hello)
 
    fmt.Printf("Starting server for testing HTTP POST...\n")
    if err := http.ListenAndServe(":8080", nil); err != nil {
        log.Fatal(err)
    }
}




Solving for Power using Work and Time in C


Write a C program to input Work and Time from the user and find Power 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.


Program Listing

/* Solving for Power using Work and Time */

#include <stdio.h>

int main ()
{
int a=0,b=0;
float ans=0.00;
printf("\t Solving for Power using Work and Time.\n\n");
printf("Give the value of Work:");
scanf("%d",&a);
printf("\n\n");
printf("Give the Time in seconds:");
scanf("%d",&b);
printf("\n\n");
ans = (a/b);
printf("The Power is %.2f Watts.",ans);
return 0;
}


Solving for Momentum using Mass and Velocity in C

Write a C program to input Mass and Velocity from the user and find Momentum 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.



Program Listing


/* Solving for Momentum using Mass and Velocity */

#include <stdio.h>

int main ()
{
int a=0,b=0;
float ans=0.00;
printf("\t Solving for Momentum using Mass and Velocity.\n\n");
printf("Give the value of Mass in kilograms:");
scanf("%d",&a);
printf("\n\n");
printf("Give the value of Velocity in meters/second:");
scanf("%d",&b);
printf("\n\n");
ans = (a*b);
printf("The Momentum is %.2f kg m/s.",ans);
return 0;
}


Solving for Force using Mass and Acceleration in C

A simple program in C language for solving for force using mass and acceleration. 

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

/* Solving for force using mass and acceleration */

#include <stdio.h>

int main ()
{
int a=0,b=0;
float ans=0.00;
printf("\t Solving for Force using Mass and Acceleration.\n\n");
printf("Give the value of Mass in kilograms:");
scanf("%d",&a);
printf("\n\n");
printf("Give the Acceleration in meters/second:");
scanf("%d",&b);
printf("\n\n");
ans = (a*b);
printf("The Force is %.2f Newtons.",ans);
return 0;
}







Do-While in C++

In this article, I would like to share with you how to declare and use a do-while statement in the C++ programming language. The do-while statement is used in many ways in C++ it can be used to repeat a certain statement or code or it can use it we can to re-run again the program.

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


#include <iostream>

using namespace std;

int a=0;

int main() {
a=1;

    cout << "\n\n";
cout <<"\tDo While Looping in C++";
cout << "\n\n";
do {
cout << " " << a << " ";
a++;
} while (a<=10);
cout << "\n\n";
cout <<"\tEnd of Program";
}


Using Functions in C++

I this article I would like to share with you guys how to declare and use functions in C++. Functions are very important in C++ programming it makes our program modularize and we can reuse our code in our other programs. It makes software development faster because we have already pre-written and tested code.

Program Listing

#include <iostream>

using namespace std;

void display_message();

int main()
{
display_message();
}

void display_message()
{
cout << "\tWelcome To C++";
}

Functions Tutorial in C++

Do While Looping Statement in C++

Monday, September 23, 2019

Hello World in DOS Batch File

In this article I would like to share with you a sample program that I wrote using  DOS Batch file I called this program hello world. It is very simple batch file program I wrote under Microsoft Windows XP operating system.

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
 
hello.bat
 
@echo off
cls
echo.
echo Hello World in DOS batch file.
echo.
echo Created By Jake R. Pomperada
echo.

 
 
 

Friday, September 20, 2019

Pointers in Golang

A simple pointer demonstration using Golang 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.


Program Listing

package main 

import ("fmt"

)

func main() {
x := 100
a := &x

fmt.Println(a)
fmt.Println(*a)

*a = 200
fmt.Println(x)
}

Profit and Loss Sales Solver in C

Write a C program to input cost price and selling price of a product and check profit or loss 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.

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

#include<stdio.h>

int main ()
{
int cp,sp,amt;
/* cp=cost price, sp=selling price,
amt=amount*/
printf("Enter cost price:");
printf("\n\n");
scanf("%d",&cp);
printf("\n\n");
printf("Enter selling price:");
printf("\n\n");
scanf("%d",&sp);
printf("\n\n");
if(sp>cp)
{
/* Calculate Profit */
amt=sp-cp;
printf("PROFIT=%d",amt);
printf("\n\n");
}
else if(cp>sp)
{
/* Calculate Loss*/
amt=cp-sp;
printf("LOSS=%d",amt);
printf("\n\n");
}
else
{
/* Neither profit nor loss*/
printf("NO PROFIT, NO LOSS");
}
return 0;
}




Count number of lines, words, characters from a file in C++

A simple program that will count the number of lines, words, characters from a file 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.




Sample Program Output



Program Listing

#include <iostream>
#include <fstream>

using namespace std;

int main() {
   ifstream f1;
   char c;
   int numchars, numlines;

   f1.open("test.txt");

   numchars = 0;
   numlines = 0;
   system("COLOR F0");
   cout <<"\n\n";
   cout <<"\tCount number of lines, words, characters from a file";
   cout <<"\n\n";
   f1.get(c);
   while (f1) {
     while (f1 && c != '\n') {
       numchars = numchars + 1;
       f1.get(c);
     }
     numlines = numlines + 1;
     f1.get(c);
   }
   cout << "\tThe file has " << numlines << " lines and " 
     << numchars << " characters.";
   cout <<"\n\n"; 
   cout <<"\tEnd of Program";
   cout <<"\n\n";  
   system("pause");
   
}