Thursday, April 23, 2020

Age and Grade Program in Python

A simple program to get the age and GPA of the student using Python programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.unlimitedbooksph.com/



Program Listing


print();
print("\t\tAge and Grade Program");
print();
age=18
gpa=1.3
if age>=18:
   if gpa>0.8:
      print("\tYour age {0} and GPA {1} are both enough.".format(age,gpa));
      print()
      print("\tYou have been selected for university.")
   else:
      print("\tYour GPA is not enough")
else:
   print("Your age is not enough")
print()
print("\tEND OF PROGRAM");

Console Menu in Python


Create a menu-driven program that will allow only to accept a number and provide an error message if the wrong option is selected from the menu.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.unlimitedbooksph.com/



Program Listing



print();
def print_menu():
    print(20 * "-", "MENU", 20 * "-");
    print("\t1. Menu Option 1");
    print("\t2. Menu Option 2")
    print("\t3. Menu Option 3");
    print("\t4. Menu Option 4");
    print("\t5. Exit");
    print(45 * "-");
loop = True
while loop:
    print_menu()
    try:
       choice = int(input("\tEnter your choice [1-5]: "));
    except ValueError:
        print("\tIt's not a number! Try again");
    if choice == 1:
        print();
        print("\tMenu 1 has been selected");
    elif choice == 2:
        print();
        print("\tMenu 2 has been selected");
    elif choice == 3:
        print();
        print("\tMenu 3 has been selected");
    elif choice == 4:
        print();
        print("\tMenu 4 has been selected");
    elif choice == 5:
        print();
        print("\tMenu 5 has been selected ");
        print("\tQuit Program and Return to Windows");
        loop = False
    else:
         print("\tWrong option selection. Select Again.");

Math Converters in Python


Write a menu-driven program that has the following Mathematics conversion area of the triangle, height in centimeter to feet and inches, find the LCM of two numbers, the sum of the first n natural numbers, and calculate the simple interest and display the result on the screen.
I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.unlimitedbooksph.com/



Program Listing


import math
print();
print("\tMATH CONVERTERS");
print();
print("\t[1] Area of the Triangle");
print("\t[2] Height in Centimeter to Feet and Inches");
print("\t[3] Find LCM of Two Numbers ");
print("\t[4] Sum of First n Natural Numbers");
print("\t[5] Calculate the Simple Interest");
print();
ch=input("\tSelect Your Choice : ")
print();
if(ch=="1"):
    a = int(input("\tEnter first side: "))
    b = int(input("\tEnter second side: "))
    c = int(input("\tEnter third side: "))
    s = (a + b + c) / 2
    area = math.sqrt(s * (s - a) * (s - b) * (s - c))
    print("\tArea of the triangle is: ", round(area, 2))
elif(ch=="2"):
    cm = int(input("\tEnter the height in centimeters:"))
    inches = 0.394 * cm
    feet = 0.0328 * cm
    print("\tThe length in inches", round(inches, 2))
    print("\tThe length in feet", round(feet, 2))
elif(ch=="3"):
    a = int(input("\tEnter the first number:"))
    b = int(input("\tEnter the second number:"))
    if (a > b):
        min1 = a
    else:
        min1 = b
    while (1):
        if (min1 % a == 0 and min1 % b == 0):
           print("\tThe LCM is:", min1)
           break
        min1 = min1 + 1;
elif(ch=="4"):
    n = int(input("\tEnter a number: "))
    sum1 = 0
    while (n > 0):
        sum1 = sum1 + n
        n = n - 1
    print("\tThe sum of first n natural numbers is", sum1)
elif (ch == "5"):
    principle = float(input("\tEnter the principle amount:"))
    time = int(input("\tEnter the time(years):"))
    rate = float(input("\tEnter the rate:"))
    simple_interest = (principle * time * rate) / 100
    print("\tThe simple interest is:", round(simple_interest,2));
else:
    print("\tInvalid Operator. Try Again")
print();
print("\tEND OF PROGRAM");

Calculator in Python


Create a simple calculator program that will display a menu, which contains four basic mathematical operations such as Addition, Subtraction, Multiplication, and Division. The user selects an operator from the menu and then, provides value, and the program will perform the computation based on the operator selected by the user and display the result on the screen.


I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.unlimitedbooksph.com/



Program Listing



print();
print("\tBASIC CALCULATOR");
print();
print("\t+.......Addition");
print("\t-.......Subtration");
print("\tx.......Multiplication");
print("\t/.......Division");
print();
ch=input("\tSelect Your Choice : ")
print();
a=int(input("\tEnter Value No. 1 : "))
b=int(input("\tEnter Value No. 2 : "))
print();
if(ch=="+"):
    sum=a+b;
    print("\tThe sum of {0} and {1} is {2}.".format(a, b,sum));
elif(ch=="-"):
    sub=a-b;
    print("\tThe difference between {0} and {1} is {2}.".format(a, b,sub));
elif(ch=="x"):
    multiply=a*b;
    print("\tThe product of {0} and {1} is {2}.".format(a, b,multiply));
elif(ch=="/"):
    quotient=a/b;
    print("\tThe quotient of {0} and {1} is {2}.".format(a, b,quotient));
else:
    print("\tInvalid Operator. Try Again")
print();
print("\tEND OF PROGRAM");

Salary Range Checker in Python



Create a program that will ask the user to input his salary and the program will determine the salary range using if..elif statement.


I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.unlimitedbooksph.com/



Program Listing


print();
print("\tSalary Range Checker ");
print();
salary = int(input("\tEnter First  Value : "));
print();
if (salary <=0) :
    print("\tYour salary ranges is very small. Try Again");
elif (salary >= 1 and salary <= 999)  :
    print("\tYour salary ranges from PHP 1 to PHP 999.");
elif (salary >= 1000 and salary <= 5999) :
    print("\tYour salary ranges from PHP 1,000 to PHP 5,9999.");
elif (salary >= 6000 and salary <= 10999) :
            print("\tYour salary ranges from PHP 6,000 to PHP 10,999.");
elif (salary >= 11000 and salary <= 15999):
            print("\tYour salary ranges from PHP 11,000 to PHP 15999.");
elif (salary >= 16000 and salary <= 20000) :
            print("\tYour salary ranges from PHP 16,000 to PHP 20,000.");
else :
    print("\tYour is above P20,000 and beyond.");
print();
print("\tEND OF PROGRAM");

Days of the Week in Python



Design a program that will ask the user to print the names of the days of the week using if elif statement.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.unlimitedbooksph.com/



Program Listing



print();
print("\tFind the Day of the Week ");
print();
week = int(input("\tEnter Week Number (1-7) : "));
print();
if (week == 1) :
    print("\tThe day is MONDAY.")
elif (week == 2) :
    print("\tThe day is TUESDAY.")
elif (week == 3) :
    print("\tThe day is WEDNESDAY.")
elif (week == 4) :
    print("\tThe day is THURSDAY.")
elif (week == 5) :
    print("\tThe day is FRIDAY.")
elif (week == 6) :
    print("\tThe day is SATURDAY.")
elif (week == 7) :
    print("\tThe day is SUNDAY.")
else :
    print();
    print("\tInvalid Input! Please enter week in between 1-7.");
print();
print("\tEND OF PROGRAM");

Absolute Number Checker in Python


Design a program that will ask the user to input a number, and then, the program will check and give the absolute numerical value of the given number.

 I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.unlimitedbooksph.com/


Program Listing




def my_program():
   print()
   print("\tABSOLUTE NUMBER CHECKER")
   print()
   a = int(input("\tGive a Number  : "))
   print()
   if a < 0:
       print("\tThe absolute value of {0} is {1}.".format(a,-a))
   else:
       print("\tThe absolute value of {0} is {1}." .format(a,a))

   print();
   repeat = input('\tDo you want to continue ? (Y/N) : ')

   if repeat.upper() == "N":
       print()
       print("\tEND OF PROGRAM")
       quit
   if repeat.upper() == "Y":
       my_program()
if __name__ == '__main__':
       my_program()

Divisible Number in Python


Write a program to check whether a number is divisible by 5 or 12.

 I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.unlimitedbooksph.com/


Program Listing


def my_program():
   print()
   print("\tDIVISIBLE NUMBER DETERMINER")
   print()
   a = int(input("\tGive a Number  : "))
   print()
   if  a % 5 == 0 and a % 11 == 0 :
    print("\tThe given number %d is divisible by 5 and 11." % a);
   else :
    print("\tThe given number %d is not divisible by 5 and 11." % a);
   print();
   repeat = input('\tDo you want to continue ? (Y/N) : ')

   if repeat.upper() == "N":
       print()
       print("\tEND OF PROGRAM")
       quit
   if repeat.upper() == "Y":
       my_program()
if __name__ == '__main__':
       my_program()