Sunday, March 28, 2021

Find Power of a Number in Python

Find Power of a Number in Python

Write a program to ask the user to input an integer value and exponent value then, the program will compute the power value and display the result on the screen.

 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.




 Program Listing


# Jake R. Pomperada, MAED-IT, MIT
# March 28, 2021 Sunday 10:23 AM
# Bacolod City, Negros Occidental
import math
print("@==================================================@")
print(" Find Power of a Number in Python ")
print("@===================================================@")
print("")
number = int(input("Enter any Positive Integer : "))
exponent = int(input("Enter Exponent Value : "))
print("")

power = math.pow(number, exponent)

print("The Result of {0} Power {1} = {2}".format(number, exponent, power))
print("")
print("===== THE END OF PROGRAM ===== ")

Loan Interest in Python

Loan Interest Solver in Python

Write a program that will ask the user to input principal amount loan, the number of years the loan to be paid, and the percentage interest per year. The program will compute the yearly interest rate of the loan 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.




 Program Listing

# Jake R. Pomperada, MAED-IT, MIT
# March 28, 2021 Sunday 8:27 AM
# Bacolod City, Negros Occidental
print("@====================================@")
print(" Loan Interest Solver ")
print("@====================================@")
print("")
principal=float(input("Enter Principal Amount PHP : "))
time=float(input("Enter Number of Year : "))
rate=float(input("Enter Percent Rate % : "))

solve_interest = (principal * time * rate) / 100

print("")
print("The Interest is PHP %.2f" %solve_interest)
print("")
print("===== THE END OF PROGRAM ===== ")

Saturday, March 27, 2021

For Range Loop in Go

For-Range Loop in Go

 In this tutorial I will show you how to declare and use for range looping statement 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.



Program Listing

package main

import "fmt"

func main() {

    numbers := []int{1002003004005006007008009001000}
    fmt.Printf("\n")
    fmt.Printf("\tFor-Range Loop in Go\n\n")
    // Print the numbers
    for a := range numbers {
        fmt.Printf("\ta = %d number is %d\n", a, numbers[a])
    }
    fmt.Printf("\n")
    fmt.Printf("\tEnd of Program")
    fmt.Printf("\n")
}

Friday, March 26, 2021

Even and Odd Numbers Generator in VB.NET

 A program that I wrote to generate even and odd numbers using vb.net 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.






Program Listing


Public Class Form1


    Private Sub btnClear_Click(sender As Object, e As EventArgs) Handles btnClear.Click

        txtInput.Clear()

        txtOutput.Clear()

        lblCountEven.Text = ""

        lblCountOdd.Text = ""

        lblSumEven.Text = ""

        lblSumOdd.Text = ""

        lblLastEven.Text = ""

        lblLastOdd.Text = ""

    End Sub


    Private Sub btnView_Click(sender As Object, e As EventArgs) Handles btnView.Click

        txtOutput.Clear()

        Dim sumEven, sumOdd, countEven, countOdd, lastEven, lastOdd As Integer

        Dim i = 1

        Dim input = txtInput.Text


        While i <= input

            If i Mod 2 = 0 Then

                txtOutput.Text += i & " = Even" & Environment.NewLine

                sumEven += i

                countEven += 1

            Else

                txtOutput.Text += i & " = Odd" & Environment.NewLine

                sumOdd += i

                countOdd += 1

            End If


            If i = input And i Mod 2 = 0 Then

                lastEven = i

                lastOdd = i - 1

            Else

                lastEven = i - 1

                lastOdd = i

            End If


            i += 1

        End While


        lblCountEven.Text = countEven

        lblCountOdd.Text = countOdd

        lblSumEven.Text = sumEven

        lblSumOdd.Text = sumOdd

        lblLastEven.Text = lastEven

        lblLastOdd.Text = lastOdd

    End Sub

End Class


Download the FREE Source Code Here

Thursday, March 25, 2021

String and Integer Input in Modern C++

String and Integer Input in Modern C++

 A simple program to demonstrate how to declare and use strings and integer data types in C++ programming.

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.




Program Listing


#include <iostream>



using namespace std;


int main() {


string student_name;

    string school;

string course_year_section;

int age=0;


std::cout << "\n";

std::cout << "\tString and Integer Input in Modern C++";

std::cout << "\n";

std::cout << "\tName : ";

    getline(cin,student_name);

std::cout << "\tAge  : ";

cin >> age;

cin.ignore();

std::cout << "\tSchool : ";

    getline(cin,school);

    std::cout << "Course, Year and Section : ";

    getline(cin,course_year_section);

    

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

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

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

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

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

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

std::cout << "\tCourse, Year and Section  :"

<< course_year_section <<"\n";

std::cout << "\n";

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

std::cout << "\n";

}



Increment and Decrement in PHP

Increment and Decrement in PHP

 A simple program to demonstrate increment and decrement 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.




Program Listing

<?php
$sum=0;
if(isset($_POST['minus'])){
$sum=$_POST['sum'];
$sum--;
}

if(isset($_POST['add'])){
$sum=$_POST['sum'];
$sum++;
}
?>
<!doctype html>
<html>
<head>
<title>Increment and Decrement in PHP</title>
</head>
<body>
<form method="POST" action="">
<h2>Increment and Decrement in PHP</h2>
<input type="submit" name="minus" value="--"/> 
<input type="text" name="sum" value="<?=$sum;?>" size="1"/> 
<input type="submit" name="add" value="++"/>
</form>
</body>
</html>


Tuesday, March 23, 2021

Addition of Number With Initial Value in C++

 A simple addition of two numbers using an initial value and a given number by the user using a 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.





Program Listing

// add.cpp
// Mr. Jake R. Pomperada, MAED-IT, MIT
// jakerpomperada.com  and jakerpomperada.blogspot.com
// jakerpomperada@gmail.com

#include <iostream>

int initial_value = 100;

int value=0;

int main()
 {
  std::cout <<"\n\n";
  std::cout <<"\tAddition of Number With Initial Value in C++";
  std::cout <<"\n\n";
  std::cout <<"\tGive a Number : ";
  std::cin >> value;
  std::cout <<"\n";
  std::cout <<"\tThe total sum is " <<value+initial_value <<".";
  std::cout <<"\n\n";
  std::cout <<"\tEnd of Program";
  std::cout <<"\n";
 }

How to use checkbox in PHP

How to use checkbox in PHP

 In this tutorial I will show you how to declare and use checkbox 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.





Program Listing

index.php

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Player Sports Tournament Using Checkbox in PHP</title>
    <style>
        fieldset {
            display: inline-block;
            padding: 10px 30px 20px;
        }
    </style>
</head>
<body>
    <form action="result.php" method="POST">
        <fieldset>
            <h3>Player Sports Tournament Using Checkbox in PHP</h3>
            <label for="fname">Name:</label>
            <input type="text" id="name" name="name" required><br>
            
            <p>Sports Choices:</p>
            <input type="checkbox" name="sports[]" value="Football" id="Football" checked><label for="Football">Football</label><br>
            <input type="checkbox" name="sports[]" value="Basketball" id="Basketball"><label for="Basketball">Basketball</label><br>
            <input type="checkbox" name="sports[]" value="Handball" id="Handball"><label for="Handball">Handball</label><br><br>

            <button type="submit">Submit</button>
        </fieldset>
    </form>
</body>
</html>


result.php


<?php
    $name = $_POST["name"];
    $list = "";
    foreach($_POST['sports'] as $value){
        $list .= "<label>".$value."</label><br>";
    }
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Player Sports Tournament</title>
    <style>
        fieldset {
            display: inline-block;
            padding: 10px 30px 20px;
        }
    </style>
</head>
<body>
    <fieldset>
        <h3>Player Sports Tournament</h3>
        <label>Name: <?php echo $name; ?></label><br>
        <label>Sports Choices:</label>
        <?php echo $list; ?>
        <br>
        <a href="index.php">Back</a>
    </fieldset>
</body>
</html>

Sunday, March 21, 2021

Student Grade Solver in C#

 Machine Problem

Write a C# program that will input your grades in different subjects last year  and display the average grade, highest grade and lowest grade using math  function.

Sample Output:

Enter grade in English: 89 

Enter grade in Math: 91 

Enter grade in Filipino: 92 

Enter grade in Science: 88

Average: 90

Lowest Grade: 88

Highest Grade:92

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.





Program Listing

// grade_solver.cs
// Author : Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
// www.jakerpomperada.com
// www.jakerpomperada.blogspot.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental, Philippines

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int average_grade = 0;
            int total_grade = 0;
            int[] grades = new int[4];
            string[] subjects =
            new string[] { "English", "Math", "Filipino", "Science"};
            Console.WriteLine("\n");
            Console.WriteLine("\tStudent Grade Solver in C#");
            Console.WriteLine("\n");
            
for(int i =0 ; i<4; i++){
            Console.Write("\tEnter Grade in " + subjects[i] + " : ");
grades[i] = int.Parse(Console.ReadLine());

            total_grade += grades[i];

            average_grade = (total_grade / 4);
}
int highest_grade = grades[0];
int lowest_grade  = grades[0];
for(int i=0; i<4; i++){
            if (grades[i] > highest_grade)
            {
                highest_grade = grades[i];
}
if(grades[i] < lowest_grade){
                lowest_grade = grades[i];
}
}
    Console.WriteLine("\n");
            Console.WriteLine("\tAverage       :  {00}",average_grade);
            Console.WriteLine("\tLowest Grade  :  {00}",lowest_grade);
            Console.WriteLine("\tHighest Grade :  {00}",highest_grade);
            Console.WriteLine("\n");
            Console.WriteLine("\tEnd of Program");
            Console.WriteLine("\n\n");
            Console.ReadKey(); 
        }
    }
}

Swap Two Numbers in Python

Saturday, March 20, 2021

Swap of Two Numbers in Python

Write a program that will ask the user to input two numbers and then, 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.





 Program Listing

# Jake R. Pomperada, MAED-IT, MIT

# March 20, 2021   Saturday   11:46 PM
# Bacolod City, Negros Occidental
print("@=====================================@")
print(" Swap of Two Numbers ")
print("@=====================================@")
print("");
x = int(input("Enter First Value : "))
y = int(input("Enter Second Value : "))
print("");
print("BEFORE SWAPPING")
print("");
print('The value of x before swapping: {}'.format(x))
print('The value of y before swapping: {}'.format(y))
temp = x
x = y
y = temp
print("");
print("AFTER SWAPPING")
print("");
print('The value of x after swapping: {}'.format(x))
print('The value of y after swapping: {}'.format(y))
print("")
print("===== THE END OF PROGRAM ===== ")

Area of the Circle Solver in Python

Area of the Circle Solver in Python

Write a program that will ask the user to input a radius of the circle and then, the program will compute the area and circumference of the circle 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.




 Program Listing

# Jake R. Pomperada, MAED-IT, MIT
# March 20, 2021 10:51 PM Saturday
# Bacolod City, Negros Occidental
print("@=============================================@")
print(" Area of the Circle Solver in Python ")
print("@==============================================@")
print("")
PI = 3.14
radius = float(input('Enter the radius of the circle : '))
area = PI * radius * radius
circumference = 2 * PI * radius
print("")
print("Area Of a Circle = %.2f" %area)
print("Circumference Of a Circle = %.2f" %circumference)
print("")
print("===== THE END OF PROGRAM ===== ")

Dictionary in Python

 In this tutorial I will show you how to declare and use dictionary in Python 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.





Program Listing

print("\n")

print("\tDictionary in Python\n")
print("Select a process: A) Add Data \tB) Delete Data \tC) End")
process = ["A", "B", "C"]
selection = str(input("Enter selection: "))
dict = {}
while selection.upper() in process:
if selection.upper() == "A":
key = input("Enter Key: ")
val = input(f"Enter Value: ")
dict[key] = val
elif selection.upper() == "B":
delete = str(input("Enter Key: "))
dict.pop(delete)
elif selection.upper() == "C":
print(f"THANK YOU")
break
else:
print(f"Please enter a valid response")
continue

for x in dict:
print(f"{x}:{dict[x]}", end=' ')

print(f"\n")
print("Select a process: A) Add Data \tB) Delete Data \tC) End")
selection = str(input("Enter selection: "))

Friday, March 19, 2021

Weekly Total Expenses in C#

 Write a C# program that will input all your expenses for the week and display the total expenses.

Sample dialogue:

Food: 500.00

Grocery: 200.00

Cellphone/Internet Load: 100

Others: 300.00

Total Expenses: 1100.00

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.





Program Listing

// Mr. Jake R. Pomperada, MAED-IT, MIT
// www.jakerpomperada.com
// www.jakerpomperada.blogspot.com
// jakerpomperada@gmail.com
// March 19, 2021 Friday

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WeeklyExpenses
{
    class Program
    {
        static void Main(string[] args)
        {

            double food = 0.00;
            double grocery = 0.00;
            double cellphone_load = 0.00;
            double others = 0.00;
            double total_expenses = 0.00;

            Console.WriteLine("\n");
            Console.WriteLine("\tWeekly Total Expenses in C#");
            Console.WriteLine("\n");
            Console.Write("\tWhat is your expenses for Food? ");
            food = Double.Parse(Console.ReadLine());

            Console.Write("\tWhat is your expenses for Grocery? ");
            grocery = Double.Parse(Console.ReadLine());

            Console.Write("\tWhat is your expenses for Cellphone/Internet Load? ");
            cellphone_load = Double.Parse(Console.ReadLine());
            
            Console.Write("\tWhat is your other expenses? ");
            others = Double.Parse(Console.ReadLine());
            
            total_expenses = (food + grocery + cellphone_load + others);

            Console.WriteLine("\n");
            Console.WriteLine("\tTotal Expenses : PHP {0:0.00}", total_expenses);
            Console.WriteLine("\n");
            Console.WriteLine("\tEnd of Program");
            Console.WriteLine("\n\n");
            Console.ReadKey(); 
        }
    }
}


Seconds to Hours,Minutes and Seconds Converter in Ruby

 Create and design a program that will ask the user to give number in seconds and then the program will convert its hours, minutes and seconds equivalent 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.





Program Listing

# time.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT, MIT
# Date     : May 17, 2019   Friday  9:19 PM
# Address  : Bacolod City, Negros Occidental
# Tools    : Eclipse IDE and Ruby Version 2.6.3
# Location : Bacolod City, Negros Occidental  
# Emails   : jakerpomperada@gmai.com and jakerpomperada@yahoo.com
puts "\n"
print "\tSeconds to Hours,Minutes and Seconds Converter in Ruby";
puts "\n\n"
print "\tHow many seconds?  ";
time = gets;
time = time.to_i;

# Conversion starts here 

hours = time / 3600;
minutes = (time % 3600) / 60;
seconds = ((time % 3600) % 60);

print "\n";
print "\t===== DISPLAY RESULTS =====";
print "\n\n";
print("\tHour(s)   : #{hours}");
print("\n");
print("\tMinute(s) : #{minutes}");
print("\n");
print("\tSecond(s) : #{seconds}");
print "\n\n";
print "\tEND OF PROGRAM";
print "\n\n";