Saturday, March 20, 2021

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


Thursday, March 18, 2021

Arithmetic Operators in Go

Arithmetic Operators in Go

 A simple program to demonstrate how to use arithmetic operating 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() {

    var x int = 31
    var y int = 20
    var z int

    z = x + y

    fmt.Printf("\n")
    fmt.Printf("\tArithmetic Operators in Go\n\n")
    fmt.Printf("\tLine 1 - Value of z is %d\n", z)

    z = x - y
    fmt.Printf("\tLine 2 - Value of z is %d\n", z)

    z = x * y
    fmt.Printf("\tLine 3 - Value of z is %d\n", z)

    z = x / y
    fmt.Printf("\tLine 4 - Value of z is %d\n", z)

    z = x % y
    fmt.Printf("\tLine 5 - Value of z is %d\n", z)

    x++
    fmt.Printf("\tLine 6 - Value of x is %d\n", x)

    x--
    fmt.Printf("\tLine 7 - Value of x is %d\n", x)
    fmt.Printf("\n")
    fmt.Printf("\tEnd of Program")
    fmt.Printf("\n")
}



Wednesday, March 17, 2021

Learning Math in C

Learning Math in C

 

A menu driven program that I wrote using C language to solve the factorial, prime numbers, and odd and even numbers.

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


#include<stdio.h>

#include <stdlib.h>


int main()


{

    printf("\n\n\t\tLearning Math in C\n");

    printf("\nCreated By Mr. Jake R. Pomperada,MAeD-IT,MIT\n\n\n");

    int choice, num, i;

    unsigned long int fact;


    while(1)

    {

        printf("1. Factorial \n");

        printf("2. Prime\n");

        printf("3. Odd\\Even\n");

        printf("4. Exit\n\n\n");

        printf("Enter your choice :  ");

        scanf("%d",&choice);

        

        switch(choice)

        {

            case 1:

                printf("Enter number:\n");

                scanf("%d", &num);

                fact = 1;

                for(i = 1; i <= num; i++)

                {

                    fact = fact*i;

                }

                printf("\n\nFactorial value of %d is = %lu\n\n\n",num,fact);

                break;

        

            case 2:

                printf("Enter number:\n");

                scanf("%d", &num);

                if(num == 1)

                printf("\n1 is neither prime nor composite\n\n");

                for(i = 2; i < num; i++)

                {

                    if(num%i == 0)

                    {

                        printf("\n%d is not a prime number\n\n", num);

                        break;

                    }

                

                }

                /*

                    Not divisible by any number other 

                    than 1 and itself

                */

                if(i == num) 

                {

                    printf("\n\n%d is a Prime number\n\n", num);

                    break;

                }

        

            case 3:

                printf("Enter number:\n");

                scanf("%d", &num);

        

                if(num%2 == 0) // 0 is considered to be an even number

                    printf("\n\n%d is an Even number\n\n",num);

                else

                    printf("\n\n%d is an Odd number\n\n",num);

                break;

        

            case 4:

                exit (0);

                

            case 5: 

break; 

        

      default:

        printf("\n\nINPUT CORRECT OPTION\n\n\n");

        break; 

        }

    }

    return 0;

}


Tuesday, March 16, 2021

Constant in Go

 I wrote this simple program to show how to declare and use constants in 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

const.go

package main

import "fmt"

func main() {
    const Title string = "Computer Programming is Fun and Profit"

    fmt.Println(Title)
}

Monday, March 15, 2021

Hello World in Go

Hello World in Go

 A simple program to demonstrate hello world 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() {
    fmt.Println("\tHello World in Go")
}

Sunday, March 14, 2021

Burger Ordering System in PHP and MySQL

Burger Ordering System in PHP and MySQL

 A burger ordering system written in PHP and MySQL I hope you like this code thank you.

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.








DOWNLOAD THE FREE AND COMPLETE SOURCE CODE HERE


Friday, March 12, 2021

Hours To Minutes Conversion in Go

Hours To Minutes Solver in Go

 A simple program that I wrote using Go programming language to ask the user to give hour values and then the program will convert the given hour into minute equivalent.

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

minutes_hours.go

/* hours_minutes.go
   Author   : Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
   Date     : September 22, 2020  8:54 PM Tuesday
   Websites : www.jakerpomperada.com  / www.jakerpomperada.blogspot.com  
   Emails   : jakerpomperada@gmail.com and jakerpomperada@yahoo.com
   Location : Bacolod City, Negros Occidental Philippines. 
*/

package main
 
import "fmt"
      
func main(){
    var hours int  
    var minutes int
      
    fmt.Print("\n\n")
    fmt.Print("\tHours To Minutes Solver")
    fmt.Print("\n\n")
    fmt.Print("\tEnter Number of Hours : ")
    fmt.Scan(&hours)
      minutes = hours * 60
    fmt.Print("\n\n")
    fmt.Println("\tThe result is ",minutes, " Minutes.") 
    fmt.Print("\n\n")
    fmt.Print("\tEnd of Program")
    fmt.Print("\n")
}

Thursday, March 11, 2021

Find the First and Last Character in a String in C++

First and Last Character in a String in C++

 A program that I wrote using C++ to ask the user to give a string and then the program will identify which is the first and last character.

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

// string.cpp
// Mr. Jake R. Pomperada, MAED-IT, MIT
// www.jakerpomperada.com
// www.jakerpomperada.blogspot.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental Philippines

#include <iostream>
#include <string>

int main()
{
  std::string input;
  std::cout << "\n\n";
  std::cout << "\tFirst and Last Character in a String in C++";
  std::cout << "\n\n";
  std::cout << "\tEnter a string : ";
  std:: getline (std::cin, input);
  std::cout << "\n\n";
  if(!input.empty())
  std::cout << "\tThe first character is: " << input.front()
   << " the last character is: "
<< input.back() << "\n";
  else
    std::cout << "\tYou didn't enter anything.";
  std::cout << "\n\n";
  std::cout << "\tEnd of Program";
  std::cout << "\n\n";
}

Create a Table Using SQL

Create a table Using SQL

 Write an SQL statement  to create a simple table student including columns student_id and student_name.

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.




Wednesday, March 10, 2021

Convert Days to Years, Weeks and Days in C

Convert Days to Years, Weeks and Days

 

Machine Problem 

Write a program to ask the user to give input number of days and convert it to years, weeks, and days

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

/* days.c
Convert days to years weeks and days
Author   : Jake R. Pomperada, MAED-IT, MIT
www.jakerpomperada.blogspot.com
www.jakerpomperada.com
jakerpomperada@gmail.com
Bacolod City, Negros Occidental Philippines
*/

#include <stdio.h>

int main()
{
   int days=0, years=0, weeks=0;

   system("COLOR F0");
   printf("\n\n");
   printf("\tConvert Days to Years, Weeks and Days");
   printf("\n\n");
   printf("\tHow Many Days : ");
   scanf("%d", &days);

    /* Conversion in this portion */
    years = (days / 365);   /* Ignoring leap year */
    weeks = (days % 365) / 7;
    days  = days - ((years * 365) + (weeks * 7));

    printf("\n\n");
    printf("\tDisplay Results");
    printf("\n\n");
    printf("\tNumber of Years : %d\n", years);
    printf("\tNumber of Weeks : %d\n", weeks);
    printf("\tNumber of Days  : %d", days);
  printf("\n\n\n");
    printf("\tEND OF PROGRAM");
    printf("\n\n");
    }