Learn Computer Programming Free from our source codes in my website.
Sponsored Link Please Support
https://www.techseries.dev/a/27966/qWm8FwLb
https://www.techseries.dev/a/19181/qWm8FwLb
My Personal Website is http://www.jakerpomperada.com
Email me at jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Wednesday, March 31, 2021
Date in Modern C++
Machine Problem In C++
Write a program that will accept dates
written in the numerical form and then display them as a complete form. For
example, the input: 6 8 1978 the output
should be June 8, 1978.
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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
// date.cpp
// Mr. Jake R. Pomperada, MAED-IT, MIT
// www.jakerpomperada.com / www.jakerpomperada.blogspot.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental
#include <iostream>
#include <array>
#include <string>
const std::array<std::string, 13> month_names =
{
"Dummy", "January", "February", "March", "April", "Mai", "June",
"July", "August", "September", "October", "November", "December"
};
int main(int argc, char **argv)
{
int day, month, year;
std::cout <<"\n\n";
std::cout << "\tDate in Modern C++";
std::cout <<"\n\n";
std::cout << "\tEnter day month year(seperated by whitespace) : ";
std::cin >> month >> day >> year;
std::cout <<"\n\n";
std::cout << "\tDate : " <<month_names[month] << ' ' << day << ", " << year;
std::cout <<"\n\n";
std::cout << "\tEnd of Program";
std::cout <<"\n\n";
}
Monday, March 29, 2021
Shopping Discount in Java
Machine Problem
A departmental store offers 20% discount on shopping of 10,000 PRs. 10% discount on shopping of 5000 PRs. and no discount on shopping of less than 5000 PRs. Write a program that accepts total bill of buyer as input and calculates amount to be paid after applying discount. Use separate functions for input, calculate discount and display total bill after discount.(java)
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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
/* DepartmentStore.java
* Mr. Jake R. Pomperada, MAED-IT, MIT
* jakerpomperada.com and jakerpomperada.blogspot.com
* jakerpomperada@gmail.com
* Bacolod City, Negros Occidental
*
* Machine Problem
*
* A departmental store offers 20% discount on shopping of 10,000 PRs. 10% discount on
*shopping of 5000 PRs. and no discount on shopping of less than 5000 PRs. Write a program that
*accepts total bill of buyer as input and calculates amount to be paid after applying discount.
Use separate functions for input, calculate discount and display total bill after discount.(java)
*/
import java.util.Scanner;
public class DepartmentStore {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("\n");
System.out.print("\t\tShopping Discount in Java");
System.out.println("\n");
System.out.print("\tEnter total amount: ");
double amount = sc.nextDouble();
double total = 0;
if(amount >= 10000) {
total = amount - (amount * 0.20);
System.out.println("\tBill is eligible for a 20% discount");
} else if (amount < 10000 && amount >= 5000) {
total = amount - (amount * 0.10);
System.out.println("\tBill is eligible for a 10% discount");
} else {
total = amount;
System.out.println("\tBill is not eligible for a any discount");
}
System.out.println("\tYour total bill is: " + total);
sc.close();
System.out.println();
System.out.print("\t THANK YOU FOR USING THIS PROGRAM");
System.out.println("\n");
}
}
Sunday, March 28, 2021
Discount Price Using User Defined Function in Java
Machine Problem
Write a program to ask the user the product name, marked price, and percent of discount of the product. The program will compute the amount after the discount of the product.
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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Program Listing
/* Discount_Price.java
* Author : Jake Rodriguez Pomperada, MAED-IT, MIT
* March 28, 2021 3:53 PM Sunday
* www.jakerpomperada.blogspot.com
* www.jakerpomperada.com
* jakerpomperada@gmail.com
* Bacolod City, Negros Occidental
*
* Machine Problem in Java
*
* Write a program to ask the user the product name,marked price,
* and percent of discount of the product. The program will compute
* the amount after the discount of the product.
*
*/
import java.util.Scanner;
public class Discount_Price {
public static void main(String args[])
{
double dis,amount,markedprice,s;
String product;
Scanner input=new Scanner(System.in);
System.out.print("\n\n");
System.out.print("\tDiscount Price Using User Defined Function in Java");
System.out.print("\n\n");
System.out.print("\tEnter Product : ");
product = input.nextLine();
System.out.print("\tEnter Marked Price : ");
markedprice= input.nextDouble();
System.out.print("\tEnter Discount Percentage : ");
dis=input.nextDouble();
s=100-dis;
amount = calcuateDiscount(markedprice,s);
System.out.print("\n\n");
System.out.print("\tProduct Name : "+product+"\n\n");
System.out.println("\tAmount After Discount: PHP "+ String.format("%.2f",amount));
input.close();
}
static double calcuateDiscount(double markedprice,double s)
{
double amount= (s*markedprice)/100;
return amount;
}
}
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.
# 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 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.
# 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
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.
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
Thursday, March 25, 2021
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
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.
Wednesday, March 24, 2021
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
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.
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.
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.
# 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
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.
# 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 ===== ")