Friday, August 12, 2022

Odd and Even Number in C++ Using Boolean Function

Odd and Even Number in C++ Using Boolean Function

 A simple program to ask the user to give a number and then the program will check if  the given number is an odd or even number using boolean function in C++ programming.

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


using namespace std;


bool isEven (int num);


int main()


{

     int val=0;

     cout <<"\n\n";

     cout << "\tOdd and Even Number in C++ Using Boolean Function";

     cout <<"\n\n";

     cout << "\tGive a Number: ";

     cin >> val;

     cout <<"\n\n";

     if ( isEven ( val ) )

          cout <<"\t" <<val << " is even number.";

     else

          cout <<"\t" << val << " is odd number.";

    

      cout <<"\n\n";

     system("PAUSE");

     return 0;

}

bool isEven ( int num )

{

     if ( num % 2 ) return false ;

     else return true; 

}




Thursday, August 11, 2022

Celsius To Fahrenheit Using JOptionPane in Java

Celsius To Fahrenheit Using JOptionPane in Java

 Machine Problem

Write a program that asks for a temperature in Celsius and prints out the temperature

in Fahrenheit. Use InputBox for input and OutputBox for output. The formula to

convert Celsius to the equivalent Fahrenheit is  fahrenheit = 1.8 x celsius + 32

 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

/* Write a program that asks for a temperature in Celsius and prints out the temperature
in Fahrenheit. Use InputBox for input and OutputBox for output. The formula to
convert Celsius to the equivalent Fahrenheit is:
*
fahrenheit = 1.8 x celsius + 32
 * 
 */
package demo;


import javax.swing.JOptionPane;
import java.text.DecimalFormat;

public class Temperature {

private static final DecimalFormat df = new DecimalFormat("0.00");
 
public static void main(String[] args) {
// TODO Auto-generated method stub
  String celsius = 

         JOptionPane.showInputDialog( "Enter Temperature in Celsius : " );
       double celsius_temp = Double.parseDouble(celsius); 
      
      double Fahrenheit = (1.8 * celsius_temp) + 32; 
      
      JOptionPane.showMessageDialog( null,  "The temperature in Fahrenheit :  " + df.format(Fahrenheit) 
        , "The Result", JOptionPane.INFORMATION_MESSAGE );
}

}


Tuesday, August 9, 2022

Concatenation of FirstName and LastName in C++

Concatenation of FirstName and LastName in C++

 A program that will accept the users firstrname and lastname and then it will concatenate the firstname and lastname 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

name.cpp


#include <iostream>
#include <string>

using namespace std;

main() {
    string first_name, last_name;
    string complete;
    
    cout <<"\n\n";
    cout <<"\tConcatenation of FirstName and LastName in C++";
    cout <<"\n\n";
    cout << "\tEnter your first name : ";
    cin >> first_name;
    cout << "\tEnter your last name : ";
    cin >> last_name;
    cout << "\n\n";
    complete = first_name +  " " + last_name;
    cout << "\tHello " << complete << ".";

    cout << "\n\n";
    system("PAUSE");
}

Miles To Kilometers in Python

Miles To Kilometers in Python

 A simple program to ask the user to give distance value in miles and convert it into kilometers in python 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

miles_kilometers.py

print()
print("\tMiles To Kilometers in Python\n")
miles = float(input("Enter Miles : "))
kilometers = round(miles * 1.6,2)
print()
print(round(miles, 2), " miles(s) is equal to ", round(kilometers,2), " kilomenter(s).")
print()
print("End of Program")



Sunday, August 7, 2022

Centimeters To Feet in Python

Centimeters To Feet in Python

  A simple program to ask the user centimeter value and convert it into feet equivalent using Python 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

print()
print("\tCentimeters To Feet in Python\n")
# take input from user
cm = int(input("Enter the height in centimeters: "))
# convert centimeter to feet
feet = 0.0328 * cm
# print result
print()
print("The length in feet", round(feet, 2), "feet(s).")
print()
print("End of Program")


Kilograms To Pounds in Python

Kilograms To Pounds in Python

 A simple program to ask the user kilograms value and convert it into pounds equivalent using Python 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

print()
print("\tKilograms To Pounds in Python\n")
kilo_grams = float(input('Give Kilograms Value : '))
pounds = round(kilo_grams * 2.2046,2)
print()
print(kilo_grams,' Kilograms =', pounds,'Pounds.\n')
print("End of Program")

Friday, August 5, 2022

Display 10 To 1 Using For Loop in JavaScript

Display 10 To 1 Using For Loop in JavaScript

 A simple program to display a series of numbers in descending order 10 to 1 using for loop statement in JavaScript programming language.

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


console.log();
console.log("\tDisplay 10 To 1 Using For Loop in JavaScript\n");

var array = [];

for(var i = 10; i >= 1; i--)
{
   array.push(i);
}
console.log("\t"+ array.join(','));
console.log();
console.log("\tEnd of Program");
console.log();

Thursday, August 4, 2022

Print 1 To 10 Using For Loop in JavaScript

Print 1 To 10 Using For Loop in JavaScript

 A simple program that I wrote to print 1 to 10 using for loop statement in JavaScript  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

index.js


console.log();
console.log("\tPrint 1 To 10 Using For Loop in JavaScript\n");

var array = [];

for(var i = 1; i <= 10; i++)
{
   array.push(i);
}
console.log("\t"+ array.join(','));
console.log();
console.log("\tEnd of Program");
console.log();

Bakit Sikat Ang Visual Studio Code

Wednesday, August 3, 2022

Days of a Month Using Swing in Java

Days of the Month Using Swing in Java

 Machine Problem

Create a program that will input a value of days and output  the corresponding number of months and number of days.  Assume that 30 days is equivalent to 1 month.

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


/* Create a program that will input a value of days and output

 * the corresponding number of months and number of days. 

 * Assume that 30 days is equivalent to 1 month.

 * 

 */


import javax.swing.JOptionPane;


public class Month {


public static void main(String[] args) {

// TODO Auto-generated method stub

// obtain user input from JOptionPane input dialogs


      String days = 


         JOptionPane.showInputDialog( "Enter number of days : " );

      

      int days_value = Integer.parseInt(days); 

      

            

      if (days_value == 28 || days_value == 29) {

        JOptionPane.showMessageDialog( null,  "Month With 28 or 29 Days " + "\nFebruary" 

        , "The Result", JOptionPane.INFORMATION_MESSAGE );

            

      } else if (days_value == 31) {

      JOptionPane.showMessageDialog( null,  "Months With 31 Days\n" + "\nJanuary\r\n"

      + "March\r\n"

      + "May\r\n"

      + "July\r\n"

      + "August\r\n"

      + "October \r\n"

      + "December" 

          , "The Result", JOptionPane.INFORMATION_MESSAGE );

      } else if (days_value == 30) {

      JOptionPane.showMessageDialog( null,  "Months With 30 Days\n" + "\nApril\r\n"

      + "June\r\n"

      + "September\r\n"

      + "November\r\n"

      , "The Result", JOptionPane.INFORMATION_MESSAGE );

      } else {

      JOptionPane.showMessageDialog( null,"Invalid Days. Try Again", 

      "The Result", JOptionPane.INFORMATION_MESSAGE );

      }


}


}