Sunday, September 25, 2022

Celsius To Fahrenheit in TypeScript

Celsius To Fahrenheit in TypeScript

 Machine Problem

Write a program that will convert the given Celsius value of 100 into Fahrenheit equivalent, 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

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


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


/* celsius_fahrenheit.ts
   Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.com and www.jakerpomperada.blogspot.com
   jakerpomperada@gmail.com
   July 13, 2022  11:00 AM   Wednesday
   Bacolod City, Negros Occidental
*/

var  celsius = 100;

// Converting Fahrenheit To Celsius
 let fahrenheit = celsius * 9/5 + 32


// This code will display two decimal places
let round_result = fahrenheit.toFixed(2);

console.log();
console.log("Celsius To Fahrenheit in TypeScript\n");
console.log(celsius + "\xB0C is equal to " + round_result + "\xB0F.\n");
console.log("End of Program\n");

Count Number of Words in a String in C

Count Number of Words in a String in C

  A simple program to ask the user to give a sentence and then the program will count the number of words in the given sentence 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

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


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>

#include <string.h>



int main()

{

    char given_string[100];

    int count = 0, i=0;

printf("\n\n");

printf("\tCount Number of Words in a String in C\n\n");

printf("\tGive a String : ");

    gets(given_string);

    

    for (i = 0; given_string[i] != '\0';i++)

    {

        if (given_string[i] == ' ')

            count++;    

    }

    printf("\n\n");

    printf("\tNumber of words in the string are: %d",count + 1);

    printf("\n\n");

printf("\tEnd of Program\n");

}


Saturday, September 24, 2022

Employees Wage Solver in Java

Employees Wage Solver in Java

 A simple program to solve the employees wage 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 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

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


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

import java.util.*;
import java.math.RoundingMode;
import java.text.DecimalFormat;

public class wage {

static Scanner console = new Scanner (System.in);
    private static final DecimalFormat df = new DecimalFormat("0.00");

    public static void main(String[] args) {

        double wages, rate, hours;

        
        System.out.println();
      System.out.print("\tEmployees Wage Solver in Java\n");
System.out.println();
        System.out.print("\tEnter number of  hours:");
        hours = console.nextDouble();
        System.out.println();

        System.out.print("\tEnter Hourly Rate: ");
        rate = console.nextDouble();
        System.out.println("\n");

        if (hours> 40.0)
            wages = 40.0 * rate + 1.5 * rate * (hours - 40.0);
        else
            wages =hours * rate;

        System.out.println("\tThe total wages of the employee is  $ " + df.format(wages));
        System.out.println("\n");
        System.out.print("\tEnd of Program\n");
}

}

Count Number of Words in a String in C++

Count Number of Words in a String in C++

 A simple program to ask the user to give a sentence and then the program will count the number of words in the given sentence 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

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


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


using namespace std;


int main ()

{

    char given_string[100];

    int count = 0, i=0;

cout << "\n\n";

cout <<"\tCount Number of Words in a String in C++\n\n";

cout << "\tGive a String : ";

    cin.getline (given_string,100);

    

    for (i = 0; given_string[i] != '\0';i++)

    {

        if (given_string[i] == ' ')

            count++;    

    }

    cout << "\n\n";

    cout << "\tNumber of words in the string are: " << count + 1;

    cout << "\n\n";

cout <<"\tEnd of Program\n";

}

Car Brands Using ng-repeat in AngularJS

Car Brands Using ng-repeat in AngularJS

 Machine Problem

Write a program that uses ng-repeat directive that will display the list of car brands like Ford,Toyota, Hyundai, Suzuki, Mitsubishi, Lexus, Nissan, Chevrolet, Audi, Bently, BMW, Chrysler, Dodge, Ferrari, Fiat, Foton, and GAC. The program will also display the list of car brands in alphabetical order 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

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


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

index.htm

<!-- index.htm
  Author   : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
  Date     : July 30, 2021 Friday 1:57 PM
  Place    : Bacolod City, Negros Occidental
  Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com
  Email    : jakerpomperada@gmail.com
 -->
<html>
<head>
  <title>Car Brands Using ng-repeat in AngularJS</title>
</head>
<style>
body {
  font-family: arial;
  font-size: 25px;
  font-weight: bold;
}

.lststyle {
    list-style-type: circle;
    }
</style>

<script type="text/javascript" src="angular.min.js">
</script>

<body ng-app="ngrepeatApp" ng-controller="ngrepeat_Controller">
 <br>
 <h4>Car Brands Using ng-repeat in AngularJS</h4>
<p>List of Car Brands</p>
 <ul class="lststyle">
 <li ng-repeat="cars in car_brands | orderBy">{{cars}}</li>
 </ul>
 <script>
 var app = angular.module("ngrepeatApp", []);
  app.controller("ngrepeat_Controller", function($scope) {
 
  $scope.car_brands = [
    "Ford","Toyota","Hyundai", "Suzuki","Mitsubishi",
    "Lexus","Nissan","Chevrolet","Mazda","Audi",
    "Bently","BMW","Chrysler","Dodge","Ferrari",
    "Fiat","Foton","GAC"
   ]
 });
</script>
</body>
</html>

Friday, September 23, 2022

US Dollar To Philippine Peso in Go

US Dollar To Philippine Peso in Go

 A simple program to ask the user to give us dollar value and convert it into Philippine Peso equivalent using Go 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

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


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


package main
 
import "fmt"
 
func main(){

    var us_dolar, phil_peso float64
     
    fmt.Print("\n")
    fmt.Print("\tUS Dollar To Philippine Peso in Go")
    fmt.Print("\n\n")
    fmt.Print("\tEnter US Dollar Value : ")
    fmt.Scanln(&us_dolar)
    fmt.Print("\n")
 
    phil_peso = (us_dolar * 58.46);
    fmt.Printf("\t$ %0.2f",us_dolar)
    fmt.Print("  US Dollar is equal to ")  
    fmt.Printf("PHP %0.2f",phil_peso)
    fmt.Print(" Philippine Peso.")  
    fmt.Print("\n\n")
    fmt.Print("\tEnd of Program")
    fmt.Print("\n\n")
}

Swap Two Numbers in Go

Swap Two Numbers in Go

 Machine Problem

Write a program that will ask the user to give two numbers and  then the program will swap the  arrangement of the two numbers and display the result 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

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


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


// swap.go


package main


import "fmt"


func main() {


var val1,val2,temp int32


fmt.Print("\n")

fmt.Print("\tSwap Two Numbers")

fmt.Print("\n\n")

fmt.Print("\tEnter first value   : ")

fmt.Scanf("%d\n",&val1)

fmt.Print("\tEnter second value  : ")

fmt.Scanf("%d\n",&val2)

fmt.Print("\n\n")

fmt.Print("\t===== BEFORE SWAPPING ===== ")

fmt.Print("\n\n")

fmt.Print("\tA = ",val1," and B = ",val2)

fmt.Print("\n\n")

 

 temp = val1;

 val1 = val2;

 val2 = temp; 


fmt.Print("\t===== AFTER SWAPPING ===== ")

fmt.Print("\n\n")

fmt.Print("\tA = ",val1," and B = ",val2)

fmt.Print("\n\n\n")

fmt.Print("\tEnd of Program")

fmt.Print("\n")

}



Print 1 To 20 Using While Loop in C++

Thursday, September 22, 2022

Greatest Common Divisor in C++

Greatest Common Divisor in C++

 A simple program to compute the greatest common divisor based on the two given numbers by the user 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

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


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 gcd(int a,int b){
if(b == 0)
    return a;
return gcd(b,a%b);
}

int main() {

int a=0,b=0;

cout <<"\n\n";
cout <<"\tGreatest Common Divisor";
cout <<"\n\n";
cout <<"\tEnter Two Numbers : ";
cin>>a>>b;
cout <<"\n\n";
cout<<"\tThe Greatest Common Division is "
<<gcd(a,b)<<".";
cout <<"\n\n";
cout <<"\tEnd of Program";
cout <<"\n\n";
}


#define command in C

 A simple program to demonstrate macro #define 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

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


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>

#define displays printf

void main()
{
 displays("\n\n");
 displays("\tDefines a macro in C programming language");
 displays("\n\n");
}

Calculating Average in C

Calculating Average in C