Sunday, January 30, 2022

Employees Payroll System in Java

Decimal To Binary Number in Python

Decimal To Binary Number in Python

 Machine Problem

Write a program to ask the user to give a decimal number  and then the program will convert the given decimal number
into binary number 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 in 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

Thank you very much for your support.





Program Listing


# Machine Problem
#
# Write a program to ask the user to give a decimal number
# and then the program will convert the given decimal number
# into binary number equivalent and display the results on
# the screen.


print()
print("\tDecimal To Binary Number in Python")
print()

decimal = int(input("\tGive a decimal number : "))
binary = 0
a = 0
temp = decimal


while(temp > 0):
binary = ((temp%2)*(10**a)) + binary
temp = int(temp/2)
a += 1

print()
print("\tThe Binary of {x} is {y}.".format(x=decimal,y=binary))
print()
print("\tEnd of Program")
print()


Difference and Product of Two Numbers in Python

Difference and Product of Two Numbers in Python

 Machine Problem

Write a program to ask the user to give two numbers and then the program will compute the difference and
and product of two given numbers 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 in 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

Thank you very much for your support.










Program Listing


# Machine Problem
#
# Write a program to ask the user to give two numbers
# and then the program will compute the difference and
# and product of two given numbers and display the
# results on the screen.

print()
print("\tDifference and Product of Two Numbers in Python")
print()

num1 = input("\tEnter the first number : ")
num2 = input("\tEnter the second number : ")

difference = int(num1) - int(num2)
product = int(num1) * int(num2)

print()
print("\tDifference of {} and {} is {}".format(num1, num2,product),'.')
print("\tProduct of {} and {} is {}".format(num1, num2,difference),'.')
print()
print("\tEnd of Program")
print()

Saturday, January 29, 2022

Person's Name Record Keeping App in Python

Person's Name Record Keeping App in Python

 A program that will ask the person's name and it will allow the user to sort the person's name using ascending and descending order 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 in 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


Thank you very much for your support.






Program Listing

import sys
data = []

class RecordKeepingApp:
def __init__(self, choice):
'''Takes 1 parameter. Returns an input asking to try again.'''
self.choice = choice
data.append(choice)
cont = input("Try again? yes/no: ").lower()

if (cont.lower() == "yes"):
pass
elif (cont.lower() == "no"):
print()
print("How do you want to display the list of names?")
print("[A] - Ascending Order")
print("[D] - Descending Order")
display = input("Enter your choice: ").upper()

if (display == "A"):
data.sort()
elif (display == "D"):
data.sort(reverse=True)
else:
print("Your choice is not valid")

print()
print("*************************************")
print("* LIST OF NAMES *")
print("*************************************")
for index, item in enumerate(data):
print('{}: {}'.format(int(index)+1, item))

print("Total number of names inputted is ", len(data))
sys.exit("\n\n")
else:
print("Invalid response. Please try again.")

print()

print("*************************************")
print("* Welcome to Record Keeping App *")
print("*************************************\n")

while True:
selection = input('Enter a name: ')
RecordKeepingApp(selection)

Friday, January 28, 2022

Coffee Place Objects in Python

Coffee Place Objects in Python

 A program that demonstrates how to declare an object in the 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 in 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


Thank you very much for your support.







Program Listing

class Customers:
greeting = "\nWelcome to Coffee Palace!"

def __init__(self, c_1, c_2, c_3, c_4, c_5):
self.c_1 = c_1
self.c_2 = c_2
self.c_3 = c_3
self.c_4 = c_4
self.c_5 = c_5
arr = [self.c_1, self.c_2, self.c_3, self.c_4, self.c_5]

print("==============================================================================================================")

for customer in arr:
custName = customer.lower()
if (custName == "nate"):
print("Name=Nate\t Beverage=Espresso\t\t\t Food=Pastrami on rye\t\t Total=220")
elif (custName == "elaine"):
print("Name=Elaine\t Beverage=Strawberry frappuccino\t Food=Tuna Wrap\t\t Total=270")
elif (custName == "samirah"):
print("Name=Samirah\t Beverage=Iced caffe latte\t\t Food=Cinnamon roll\t\t Total=225")
elif (custName == "jerry"):
print("Name=Jerry\t Beverage=Caramel macchiato\t\t Food=Glazed doughnut\t\t Total=230")
elif (custName == "paz"):
print("Name=Paz\t Beverage=Iced tea\t\t\t Food=Blueberry pancakes\t Total=315")
else:
print("Customer name not found.")

print("==============================================================================================================")
print()

print(Customers.greeting)
Customers("Nate", "Elaine", "Samirah", "Jerry", "Paz")

Addition of Two Numbers Using GUI in Python

Addition of Two Numbers Using GUI in Python

 A simple program to ask the user to give two numbers and then the program will compute the sum of two numbers using a graphical user interface 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 in 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




Program Listing


from tkinter import *

root = Tk()
root.title("Addition of Two Numbers Using GUI in Python")
width = 600
height = 300
screen_width = root.winfo_screenwidth()
screen_height = root.winfo_screenheight()
x = (screen_width/2) - (width/2)
y = (screen_height/2) - (height/2)
root.geometry("%dx%d+%d+%d" % (width, height, x, y))
root.resizable(False,False)

#==============================METHODS========================================
def add():
if not num1.get() and not num2.get():
print("Please enter a number")
else:
res=int(num1.get())+int(num2.get())
lbl_text.config(text = "The answer is %d" % (res))
num1.set=""
num2.set=""

#==============================FRAMES=========================================
Top = Frame(root, bd=2, relief=RIDGE)
Top.pack(side=TOP, fill=X)
Form = Frame(root, height=200)
Form.pack(side=TOP, pady=20)

#==============================LABELS=========================================
lbl_title = Label(Top, text = "Addition of Two Numbers Using GUI in Python", font=('arial', 16))
lbl_title.pack(fill=X)
lbl_num1 = Label(Form, text = "Enter First Value:", font=('arial', 14), bd=15)
lbl_num1.grid(row=0, sticky="e")
lbl_num2 = Label(Form, text = "Enter Second Value:", font=('arial', 14), bd=15)
lbl_num2.grid(row=1, sticky="e")
lbl_text = Label(Form)
lbl_text.grid(row=2, columnspan=2)

#==============================ENTRY WIDGETS==================================
num1 = Entry(Form, font=(14))
num1.grid(row=0, column=1)
num2 = Entry(Form, font=(14))
num2.grid(row=1, column=1)

#==============================BUTTON WIDGETS=================================
btn_calculate = Button(Form, text="Add", width=45, command=add)
btn_calculate.grid(pady=25, row=3, columnspan=2)


root.mainloop()




Graphical User Interface in Python Using Tkinter

Graphical User Interface in Python Using Tkinter

 A simple program to demonstrate how to create a graphical user interface using Tkinter 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 in 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





Program Listing


from tkinter import *

root = Tk()

root.geometry("600x300")
root.title("Graphical User Interface in Python Using Tkinter")
root.resizable(False,False)
root.mainloop()

Wednesday, January 26, 2022

Largest of Five Numbers in C++

 A program that will ask the user to give five numbers and then the program will determine which of the five numbers has the largest numerical value 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 in 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






Program Listing

// minmax_element #include <iostream> // std::cout #include <algorithm> // std::minmax_element #include <array> // std::array int main () { int a=0,b=0,c=0,d=0,e=0; std::cout <<"\n\n"; std::cout <<"\tLargest of Five Numbers in C++"; std::cout <<"\n\n"; std::cout << "\tGive five numbers : "; std::cin >> a >> b >> c >> d >> e; std::array<int,5> foo {a,b,c,d,e}; auto result = std::minmax_element (foo.begin(),foo.end()); std::cout <<"\n\n"; std::cout << "\tThe Largest Number : " << *result.second; std::cout <<"\n\n"; std::cout << "\tEnd of Program"; std::cout <<"\n\n"; return 0; }

Print 1 To 10 Using Do While Statement in C

Print 1 To 10 Using Do While Statement in C

 A simple program that will print 1 to 10 using do while statement 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 in 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





Program Listing

#include <stdio.h> int main() { int a=1; printf("\n\n"); printf("\tPrint 1 To 10 Using Do While Statement in C"); printf("\n\n"); printf("\t"); do { printf("%4d",a); a++; } while(a<=10); printf("\n\n"); printf("\tEnd of Program"); printf("\n\n"); }

Print 1 To 10 Using Do While Statement in C++

Print 1 To 10 Using Do While Statement in C++

 A simple program to print 1 to 10 using do-while loop statement 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 in 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





Program Listing

#include <iostream> int a=0; int main(){ a=1; std::cout <<"\n\n"; std::cout << "\tPrint 1 To 10 Using Do While Statement in C++"; std::cout <<"\n\n"; std::cout <<"\t"; do { std::cout << " " << a << " "; a++; } while (a<=10); std::cout <<"\n\n"; std::cout << "\tEnd of Program"; std::cout <<"\n\n"; }