Friday, February 12, 2021

Color Combination in Java

  Machine Problem in Java

THE primary colors problem All of the colours that you see in  your monitor can be represented by a combination of the basic  colours “red”, “green”, and “blue”: yellow = red + green magenta = blue

 + red cyan = green + blue Write a program that accepts the names   of two different basic colours and determines the colour formed by   a combination of the two. example: Enter a combination color: green 

 blue The result color is Cyan or Enter a combination color: blue green   The result color is Cyan.

RGB Color combination

red + green = yellow.

red + blue = magenta.

green + blue = cyan.


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.

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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.










Program Listing


/**

 Machine Problem in Java


THE primary colors problem All of the colours that you see in 

your monitor can be represented by a combination of the basic 

colours “red”, “green”, and “blue”: yellow = red + green magenta = blue

 + red cyan = green + blue Write a program that accepts the names 

 of two different basic colours and determines the colour formed by 

 a combination of the two. example: Enter a combination color: green 

 blue The result color is Cyan or Enter a combination color: blue green 

 The result color is Cyan.


RGB Color combination

red + green = yellow.

red + blue = magenta.

green + blue = cyan.




 @author Jake Rodriguez Pomperada,MAED-IT, MIT

 www.jakerpomperada.com / www.jakerpomperada.blogspot.com

 jakerpomperada@gmail.com

 Bacolod City, Negros Occidental Philippines

 February 12, 2021  12:05 PM Friday

 

 */

 

import java.util.*;  


public class Color_Selection {


/**

* @param args

*/

public static void main(String[] args) {

// TODO Auto-generated method stub

Scanner sc= new Scanner(System.in); 

String color = "";

System.out.println("\n");

System.out.println("\tColor Combination in Java");

System.out.println("\n");

System.out.print("\tEnter a Combination Color : ");  

color= sc.nextLine();

System.out.println("\n");

if (color.toLowerCase().equals("blue green")) {

System.out.println("\tThe result color is Cyan.");

} else if (color.toLowerCase().equals("green blue")) {

System.out.println("\tThe result color is Cyan.");

} else if (color.toLowerCase().equals("red green")) {

System.out.println("\tThe result color is Yellow.");

} else if (color.toLowerCase().equals("green red")) {

System.out.println("\tThe result color is Yellow.");

}else if (color.toLowerCase().equals("red blue")) {

System.out.println("\tThe result color is Magenta.");

} else if (color.toLowerCase().equals("blue red")) {

System.out.println("\tThe result color is Magenta.");

}else {

System.out.println("\tWrong Color Combination. Try Again.");

}

  System.out.println();

      System.out.println("\tEnd of Program");

      System.out.println("\n");

       sc.close();

}

} // End of Code


Wednesday, February 10, 2021

03.Secret History of Windows Task Manager - Part 3 - Source Code

Temperature Converter in PHP

Temperature Converter in PHP

 A program that allows the user to select temperature celsius to Fahrenheit and vice versa using PHP 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.

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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing

style.css

* {
    box-sizing: border-box;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background: url("double-bubble-outline.png") #fefefe repeat;
    color: #1a1a1a;
    font-size: 15px;
}

main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    border-radius: 10px;
}

.container {
    display: block;
    padding: 30px;
    background: #fff;
    text-align: left;
    border-radius: 2px;
}

h1, h2 {
    text-align: center;
}

label {
    width: 100%;
}

input,
select {
    display: inline-block;
    background: #f5f5f5;
    width: 100%;
    margin: 5px 0 20px 0;
    padding: 15px;
    border: none;
    font-size: 15px;
}

input:focus,
select:focus {
    background: #eeeeee;
    outline: none;
}

.btnReset,
button {
    background: #2196f3;
    color: #fff;
    padding: 15px;
    margin: 0 0 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    opacity: 0.9;
    font-size: 15px;
    outline: none;
    border:0;
}

.btnWrapper {
    display: flex;
    margin: 0 0 20px;
}

.btnReset {
    background: #4caf50;
}

.btnReset,
.btnConvert {
    width: 50%;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    margin: 0;
}

.btnSelectShape {
    background: #f44336;
}

.btnReset:hover,
button:hover {
    opacity: 1;
}

.answer {
    width: 100%;
    padding: 20px;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    background: #dadada;
    font-family: 'Times New Roman', serif;
    line-height: 1.5;
}

.visibility_on {
    display: block;

}

.visibility_off {
    display: none;
}

.frmTempSelect {  
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}

.frmTempSelect select {
    vertical-align: middle;
    padding: 15px;
    margin: 5px 0 0;
    width: calc(100% - 100px);
}

.frmTempSelect button {
    width: 100px;
    margin: 5px 0 0;
}

.pieText {
    font-family: Serif;
}
.blueText {
    color:#2196f3;
}


index.php

<?php 
  /* Temperature Converter in PHP
     Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
     www.jakerpomperada.com  / www.jakerpomperada.blogspot.com
     jakerpomperada@gmail.com 
     Bacolod City, Negros Occidental Philippines
   */

    $area = $html = $infotext = $sel1 = $sel2 = $sel3 = "";
    $num1 = isset($_POST['txtNum1']) ? floatval($_POST['txtNum1']) : "";
    $visibility = "visibility_off";
    $frmArea = isset($_GET['selectArea']) ? $_GET['selectArea'] : '';

    // Display selected shape input fields
    if(isset($_GET['selectArea'])) {
        $visibility = "visibility_on";

        switch ($frmArea) {
            case "ctof":
                $sel1 = "selected";
                $html = '<h2>Celsius &#8594; Fahrenheit Converter</h2>
                        <label for="txtNum1"><b>Input Temparature in &#8451;:</b></label>
                        <input type="number" name="txtNum1" id="txtNum1" value="'.$num1.'" required>';
                if(isset($_POST['btnConvert'])) {
                    $temp = round((($num1 * (9/5))+32), 2);
                    $infotext = '<div class="answer">(<span class="blueText">'.$num1.'</span> x <sup>9</sup>&#8260;<sub>5</sub>) + 32 = '.$temp.' &#8457;</div>';
                }
                break;
            case "ftoc":
                $sel2 = "selected";
                $html = '<h2>Fahrenheit &#8594; Celsius Converter</h2>
                        <label for="txtNum1"><b>Input Temparature in &#8457;:</b></label>
                        <input type="number" name="txtNum1" id="txtNum1" value="'.$num1.'" required>';
                if(isset($_POST['btnConvert'])) {
                    $temp = round((($num1 - 32) * (5/9)), 2);
                    $infotext = '<div class="answer">(<span class="blueText">'.$num1.'</span> - 32) x <sup>5</sup>&#8260;<sub>9</sub> = '.$temp.' &#8451;</div>';
                }
                break;
        }
    }
?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Temperature Converter in PHP</title>
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
        <main>
            <div class="container">
                <h1>Temperature Converter in PHP</h1>
                <h2>Mr. Jake R. Pomperada, MAED-IT, MIT</h2>
            </div>

            <div class="container">
                <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" class="frmTempSelect">
                    <label for="selectArea"><b>Select Unit of Temperature:</b></label>
                    <select name="selectArea" id="selectArea" value="<?php echo $oper; ?>" required>
                        <option value="ctof" <?php echo $sel1; ?>>Celsius &#8594; Fahrenheit</option>
                        <option value="ftoc" <?php echo $sel2; ?>>Fahrenheit &#8594; Celsius</option>
                    </select>

                    <button type="submit" class="btnSelectShape">Select</button>
                </form>
            </div>

            
            <div class="container <?php echo $visibility; ?>">
                <form action="" method="post" class="frmAreaCalculate">
                    <?php echo $html; ?>
                    
                    <div class="btnWrapper">
                        <a href="index.php" type="button" name="btnReset" class="btnReset">Reset</a>
                        <button type="submit" name="btnConvert" class="btnConvert">Convert</button>
                    </div>

                    <?php echo $infotext; ?>
                </form>
            </div>
        </main>
    </body>
</html>

Tuesday, February 9, 2021

Do You Want To Continue in Java

 I wrote this program to show how to create do you want to continue 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.

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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.




Program Listing

addition.java


import java.util.Scanner;

public class Addition {

public static void main(String[] args) {
   int num1, num2, sum;
   
   Scanner sc = new Scanner(System.in);
       
       char ch;
       
       do {
       
    System.out.println("\n");
    System.out.print("\t\tAddition of Two Numbers in Java");
    System.out.println("\n");
    System.out.print("\t\tDo You Want To Continue in Java");
    System.out.println("\n");
    
        System.out.print("\tEnter First Number: ");
        num1 = sc.nextInt();
        
        System.out.print("\tEnter Second Number: ");
        num2 = sc.nextInt();
        
     
        sum = num1 + num2;
        
        System.out.print("\n");
        System.out.print("\tThe sum of " + num1 + " and " 
                  + num2 + " is "+ sum + ".");
        
        System.out.println("\n");
        System.out.print("\tDo you want to continue (Type y or n) : ");
      ch = sc.next().charAt(0);                        
     } while (ch == 'Y'|| ch == 'y');  
        System.out.println();
        System.out.print("\t THANK YOU FOR USING THIS PROGRAM");
        System.out.println("\n");
        sc.close();
}

}

Monday, February 8, 2021

Login System in VB.NET and MySQL

 I wrote this program that will ask the user to give username and password to check if the user is valid user or not the system using VB.NET and MySQL.

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.

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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.








Program Listing


loginusers.sql


-- phpMyAdmin SQL Dump

-- version 4.0.4.1

-- http://www.phpmyadmin.net

--

-- Host: 127.0.0.1

-- Generation Time: Feb 08, 2021 at 07:09 AM

-- Server version: 5.6.11

-- PHP Version: 5.5.1


SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";

SET time_zone = "+00:00";



/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;

/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;

/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;

/*!40101 SET NAMES utf8 */;


--

-- Database: `login`

--


-- --------------------------------------------------------


--

-- Table structure for table `loginusers`

--


CREATE TABLE IF NOT EXISTS `loginusers` (

  `id` int(11) NOT NULL AUTO_INCREMENT,

  `username` varchar(100) NOT NULL,

  `password` varchar(100) NOT NULL,

  PRIMARY KEY (`id`)

) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;


--

-- Dumping data for table `loginusers`

--


INSERT INTO `loginusers` (`id`, `username`, `password`) VALUES

(1, '123', '123'),

(2, 'admin', 'admin'),

(3, 'jake', 'jake'),

(4, 'iya', 'iya'),

(5, 'allie', 'allie'),

(6, 'jacob', 'jacob');


/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;

/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;

/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;



Imports MySql.Data.MySqlClient

Public Class Form1
    Dim connection As New MySqlConnection("datasource=localhost;port=3306;username=root;password=;database=login")

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

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim command As New MySqlCommand("SELECT username,password FROM loginusers WHERE username = @username AND password = @password", connection)

        command.Parameters.Add("@username", MySqlDbType.VarChar).Value = TextBox1.Text
        command.Parameters.Add("@password", MySqlDbType.VarChar).Value = TextBox2.Text


        Dim adapter As New MySqlDataAdapter(command)
        Dim table As New DataTable()

        adapter.Fill(table)

        If table.Rows.Count = 0 Then

            MessageBox.Show("Invalid Username Or Password. Try Again")
            TextBox1.Text = ""
            TextBox2.Text = ""
            TextBox1.Focus()

        Else

            MessageBox.Show("Login Successfully")


            Form2.Show()
            Me.Hide()

        End If

    End Sub
End Class


Thursday, February 4, 2021

Display Records Using Date Picker in VB NET and MySQL

Display Records Using Date Picker in VB.NET and MySQL

 In this tutorial I will share with you how to display records from database using Date Picker of VB.NET and MySQL.

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.

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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing


' Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
' www.jakerpomperada.com and jakerpomperada.blogspot.com
' jakerpomperada@gmail.com
' Bacolod City,Negros Occidental Philippines
' Tools :  Microsoft Visual Studio 2015 Professional Edition
'          MySQL for Visual Studio Version 1.2.9

Imports MySql.Data.MySqlClient
Public Class Form1

    Dim connection As New MySqlConnection("datasource=localhost;port=3306;username=root;password=;database=users")

    Private Sub Search_Data_In_MySQL_Between_2_Date_Load(sender As Object, e As EventArgs) Handles MyBase.Load

        Dim table As New DataTable()
        Dim adapter As New MySqlDataAdapter("SELECT * FROM personnel", connection)

        adapter.Fill(table)

        DataGridView1.DataSource = table

    End Sub
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim table As New DataTable()
        Dim command As New MySqlCommand("SELECT * FROM personnel WHERE dob BETWEEN @d1 AND @d2", connection)

        command.Parameters.Add("@d1", MySqlDbType.Date).Value = DateTimePicker1.Value
        command.Parameters.Add("@d2", MySqlDbType.Date).Value = DateTimePicker2.Value

        Dim adapter As New MySqlDataAdapter(command)

        adapter.Fill(table)

        DataGridView1.DataSource = table

    End Sub


End Class


users.sql

-- phpMyAdmin SQL Dump
-- version 4.0.4.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Feb 04, 2021 at 05:31 AM
-- Server version: 5.6.11
-- PHP Version: 5.5.1

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `users`
--
CREATE DATABASE IF NOT EXISTS `users` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `users`;

-- --------------------------------------------------------

--
-- Table structure for table `personnel`
--

CREATE TABLE IF NOT EXISTS `personnel` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(200) NOT NULL,
  `email` varchar(200) NOT NULL,
  `dob` date NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;

--
-- Dumping data for table `personnel`
--

INSERT INTO `personnel` (`id`, `name`, `email`, `dob`) VALUES
(1, 'Jake', 'jakerpomperada@gmail.com', '2021-02-01'),
(2, 'Jacob', 'jacob@gmail.com', '2021-02-02'),
(3, 'Julianna', 'julianna@gmail.com', '2021-02-03'),
(4, 'Ma. Junallie', 'allie@yahoo.com.ph', '2021-02-04'),
(5, 'Lydia', 'lydia@gmail.com', '2021-02-06'),
(6, 'virgilio', 'vir@hotmail.com', '2021-02-07'),
(7, 'Jun', 'jun@gmail.com', '2021-03-01'),
(8, 'Sally', 'sally@yahoo.com', '2021-02-14'),
(9, 'James', 'james@gmail.xcom', '2021-04-15'),
(10, 'Mario', 'mario@yahoo.com', '2021-03-23');

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;




Wednesday, February 3, 2021

Average, Sum, and Product in Java Using BigDecimal

Average, Sum, and Product in Java Using BigDecimal

 Write a Java program to solve the average, sum and product of three numbers using double data type and big decimal.

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.

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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.






Program Listing


import java.util.Scanner;

import java.math.*; 


/**

 * @author Jake R. Pomperada, MAED-IT, MIT

 * www.jakerpomperada.com and www.jakerpomperada.blogspot.com

 * jakerpomperada@gmail.com

 * Bacolod City, Negros Occidental Philippines

 *

 */

public class AddTwoNumbers {


/**

* @param args

*/

public static void main(String[] args) {

// TODO Auto-generated method stub

   

   Scanner scan = new Scanner(System.in);

 

        BigDecimal avg,add,multiply; 

     

        Double avg_display,add_display,multiply_display; 

      

         

        System.out.println("\n");

        System.out.println("\tAverage, Sum, and Product in Java Using BigDecimal");

        System.out.println("\n");

        System.out.print("\tEnter the First number: ");

        double num1 = scan.nextDouble();

        System.out.print("\tEnter the Second number: ");

        double num2 = scan.nextDouble();

        System.out.print("\tEnter the Third number: ");

        double num3 = scan.nextDouble();

        scan.close();

      

        avg = new BigDecimal(average(num1, num2, num3)); 

      add =  new BigDecimal(sum(num1, num2, num3));

      multiply =  new BigDecimal(product(num1, num2, num3));

        

      avg_display = avg.doubleValue();

        add_display = add.doubleValue();

        multiply_display = multiply.doubleValue();

        

        System.out.println("\n");

        System.out.print("\tAverage of these numbers :" 

        + avg_display + "\n");

        System.out.print("\tSum of these numbers :" 

            +  add_display+"\n");

        System.out.print("\tProduct of these numbers :" 

            +  multiply_display+"\n");

        System.out.println("\n");

        System.out.println("\tEnd of Program");

        System.out.println();

}


public static double average(double a, double b, double c)

    {

        return (a + b + c) / 3;

    }

 

public static double sum(double a, double b, double c)

    {

        return (a + b + c);

    }

 

public static double product(double a, double b, double c)

    {

        return (a * b * c);

    }

}



Loan Solver in Ruby

Loan Solver in Ruby

 Create a program that will ask the user the principal amount, the number of years, and interest rate of the loan of the customer, and then the program will compute the interest amount to be paid by the customer 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.

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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.




Program Listing

# loan.rb
# Written By Mr. Jake Rodriguez Pomperada,BSCS,MAED-IT
# Tools : Ruby 2.6.3 and Sublime Text Editor 
# May 13, 2019    Monday   9:58 PM
# Bacolod City, Negros Occidental
# Website       : http://www.jakerpomperada.com
# Email Address : jakerpomperada@gmail.com

puts "\n\n"
print "\tLoan Interest Solver";
puts "\n\n"
print "\tEnter Principal Amount PHP  : ";
principal = gets;
print "\tEnter No. of Years          : ";
time = gets;
print "\tEnter Percent Rate %        : ";
rate = gets;

principal = principal.to_f;
time = time.to_f;
rate = rate.to_f;

solve_interest = (principal * time * rate) / 100;

print "\n\n";
print "\tDISPLAY RESULTS";
print "\n\n";
print "\tThe total interest is PHP %.2f for #{time} year(s)." % solve_interest;
puts "\n\n";
print "\tEnd of Program";
puts "\n";

Remove Vowels in Modern C++

Remove Vowels Using Modern C++

 Machine Problem in C++

 Write a program to ask the user to give a string and then the program will remove the vowels in the given  string using the Modern C++ approach.

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.

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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.




Program Listing


// vowel.cpp

// Machine Problem in C++

//

// Write a program to ask the user to give a string and

// then the program will remove the vowels in the given

// string using the Modern C++ approach.

//

// Mr. Jake R. Pomperada,MAED-IT,IT

// www.jakerpomperada.com and www.jakerpomperada.blogspot.com

// jakerpomperada@gmail.com

// Bacolod City, Negros Occidental Philippines

 


#include <iostream>

#include <string>



int main()

{

std::string str;

int a=0,b=0,len=0;

std::cout <<"\n\n";

std::cout <<"\tRemove Vowels Using Modern C++";

std::cout <<"\n\n";

std::cout<<"\tGive a String : ";

std::getline(std::cin,str);

len=str.length();

std::cout <<"\n\n";

std::cout <<"\tDISPLAY RESULTS";

std::cout <<"\n\n";

std::cout<<"\tThe Original String : "<<str;

std::cout <<"\n\n";

for(a=0; a<len; a+=1)

{   


if(str[a]=='a'||str[a]=='e'||str[a]=='i'||str[a]=='o'

||str[a]=='u'||str[a]=='A'||str[a]=='E'||str[a]=='I'||

str[a]=='O'||str[a]=='U')

{

    

for(b=a; b<len; b+=1)

{


str[b]=str[b+1];

}

len=len-1;;

}

}

std::cout<<"\tThe Remaining String : "<<str;

    std::cout <<"\n\n";

    std::cout <<"\tEnd of Program";

    std::cout <<"\n\n";

}