Monday, December 19, 2022

Odd and Even Number Using Pointers in C

 A program that will ask the user to give a number and then the problem will check if the given number is an odd or even number using pointers 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 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 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

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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 <stdio.h>


int main()

{

  int num_val=0, result=0;

  int *p_num;

  p_num= &num_val;

  

  printf("\n\n");

  printf("\tOdd and Even Number Using Pointers in C");

  printf("\n\n");

  printf("\tGive a Number : ");

  scanf("%d",p_num); 

  result = *p_num % 2;

  

    printf("\n\n");

  if(result==0)

    printf("\tThe given number %d is even number.\n", *p_num);

  else

    printf("\tThe give number %d is odd number.\n", *p_num);

    

  printf("\n\n");

  printf("\tEnd of Program");

  printf("\n\n");

  return 0;

}

Friday, December 16, 2022

Discount Solver in TypeScript

Discount Solver in TypeScript

 Machine Problem

Write a program to calculates the discount amount and the discounted rate for which you get the product for sale.

The product price 145.45 and the discount percentage 5% and display the  results on the screen.


Formula to compute the discount amount of the product


discount_amount = (discount_percentage * price)/100;


Formula to compute the discount price of the product


discounted_price = (price_discount_amount);


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 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

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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

/* discount.ts
   Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.com and www.jakerpomperada.blogspot.com
   jakerpomperada@gmail.com
   July 19, 2022 6:20 PM  Tuesday
   Bacolod City, Negros Occidental
*/

var product_price =  145.45;
var discount_percentage = 5;

// Solving for Discount Amount of the Product
var discount_amount = (discount_percentage*product_price)/100;

// Solving for Discounted Price of the Product
var discounted_price = (product_price-discount_amount);

// Two decimal places for Discount Amount
discount_amount = Math.floor(discount_amount*100)/100;

discounted_price = Math.floor(discounted_price*100)/100;
     
console.log();
console.log("Discount Solver in TypeScript\n");
console.log("Product Price     : PHP " + product_price.toFixed(2));
console.log("Product Discount  : " + discount_percentage + "%\n");
console.log("Discount Amount   : PHP " + discount_amount);
console.log("Discount Price    : PHP " + discounted_price + "\n");
console.log("End of Program\n");


Thursday, December 15, 2022

Grams To Kilograms Using Function in C++

Grams To Kilograms Using Function in C++

 A program to ask the user to give weight value in grams and then it will convert into kilograms using functions 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 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 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

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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>

float convert(float grams)
{
    return(grams/1000);
}

int main() {

    float grams;

    std::cout << "\n\n";
    std::cout << "\tGrams To Kilograms Using Function in C++\n\n";
    std::cout << "\tGive value in Grams : ";
    std::cin >> grams;
    float kilograms = convert(grams);
    std::cout << "\n\n";
    std::cout <<"\t" << grams << " Grams is equal to ";
    std::cout  << kilograms << " Kilograms";
    std::cout << "\n\n";
    std::cout << "\tEnd of Program";
    std::cout << "\n\n";
}

Wednesday, December 14, 2022

Ohm's Law Voltage Solver in TypeScript

Ohm's Law Voltage Solver in TypeScript

 Machine Problem

Write a program that uses Ohm's law to find the voltage of the circuit with given current 4 ampere and the resistance of 20 ohms 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 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 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

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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

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 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

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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, December 13, 2022

Multiply Two Numbers Using Function in C++

Multiply Two Numbers Using Functions in C++

 A program to teach you how to declare a function to multiply two given 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 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 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

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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>


using namespace std;



int multiply(int a, int b)

{

return(a*b);

}


int main(){

cout <<"\n\n";

cout <<"\t" << multiply(8,7);

}


Monday, December 12, 2022

Kilometers To Meters in C#

Kilometers To Meters in C#

 A simple program to ask the user to give distance in kilometers and then it will convert into meter distance equivalent 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 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 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

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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;


public class Distance

{

    


    public static double KilometerToMeter(double km)

    {

        double METER = 0;


        METER = km * 1000;


        return METER;

    }


    static void Main()

    {

        double meter = 0;

        double km = 0;



        Console.WriteLine("\n");

        Console.WriteLine("\tKilometers To Meters in C#\n\n");

        Console.Write("\tEnter Distance in Kilometer : ");

        km = double.Parse(Console.ReadLine());


        

        meter = KilometerToMeter(km);


        Console.WriteLine("\n");

        Console.WriteLine("\t" + km + " Kilometer(s) is equal to " + meter + " Meter(s).");

        Console.WriteLine("\n");

        Console.WriteLine("\tEnd of Program\n\n");

        Console.ReadKey();


    }

}


Sunday, December 11, 2022

Kilometers To Meters in Visual Basic NET

Kilometers To Meters in Visual Basic NET

 A simple program to ask the user to give distance in kilometers and convert it into meters equivalent using Microsoft Visual Basic NET.

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 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

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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


Public Class Form1


    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click

        End

    End Sub


    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        Dim meter As Double

        Dim solve As Double

        Dim km As Double

    

        km = Val(TextBox1.Text)


        solve = (km * 1000)


        meter = Format(solve, "0.00")


        Label2.Text = km & " Kilometer is equal to " & meter & " meters."

    End Sub


    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click

        TextBox1.Text = ""

        Label2.Text = ""

        TextBox1.Focus()

    End Sub

End Class


Thursday, December 8, 2022

Meter To Feet To C++

 A simple program to ask the user to give value in meter and then convert it into feet 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 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 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

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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 <iomanip>

using namespace std;

int main(){
    double meter=0.00, feet=0.00;

    cout <<"\n";
    cout <<"\tMeter To Feet in C++";
    cout <<"\n\n";

    cout << "\tGive length in meters : ";
    cin >> meter;


    feet = meter * 3.28084;

    cout <<"\n\n";
    cout << "\tThe equivalent length in feet " << fixed <<
    setprecision(2)<< feet <<"\n";
    cout <<"\n";
    cout <<"\tEnd of Program";
    cout <<"\n";
    return 0;
}