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
Monday, November 11, 2024
Friday, November 8, 2024
Wednesday, November 6, 2024
Monday, November 4, 2024
Age Checker in Delphi
Program Listing
unit demo;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ToolWin, Vcl.ComCtrls;
type
TForm1 = class(TForm)
StatusBar1: TStatusBar;
ToolBar1: TToolBar;
Edit1: TEdit;
Label1: TLabel;
Label2: TLabel;
Button1: TButton;
Button2: TButton;
Button3: TButton;
procedure Button1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
private
{ Private declarations }
function AskToQuit: Boolean;
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
// Programmer : Dr. Jake R. Pomperada
// Date : November 4, 2024
procedure TForm1.Button1Click(Sender: TObject);
var
age: Integer;
begin
try
age := StrToInt(edit1.Text);
if age >= 18 then
label2.Caption := 'You are an adult. At age of ' +IntToStr(age) + ' years old.'
else
label2.Caption := 'You are a minor. At age of ' +IntToStr(age) + ' years old.';
except
on EConvertError do
ShowMessage('Please enter a valid age (a number).');
end;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
label2.Caption := '';
edit1.text := '';
edit1.SetFocus;
end;
procedure TForm1.Button3Click(Sender: TObject);
begin
if AskToQuit then
Close // Close the form if user confirms
else
edit1.SetFocus;
end;
function TForm1.AskToQuit: Boolean;
begin
Result := MessageDlg('Are you sure you want to quit?', mtConfirmation, [mbYes, mbNo], 0) = mrYes;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
// Optionally adjust the form position here if needed
// For example, move it slightly to the left and up
Left := (Screen.Width - Width) div 2; // Center horizontally
Top := (Screen.Height - Height) div 2; // Center vertically
end;
end.
Sunday, November 3, 2024
Circle Using a Class in Java
Program Listing
import java.text.DecimalFormat;
class Circle {
private double radius;
public Circle(double radius) {
this.radius = radius;
}
public double getRadius() {
return radius;
}
public double calculateArea() {
return Math.PI * Math.pow(radius, 2);
}
public double calculateCircumference() {
return 2 * Math.PI * radius;
}
}
public class Main {
public static void main(String[] args) {
Circle circle = new Circle(8.15);
DecimalFormat df = new DecimalFormat("#.00");
System.out.println("\n\tCircle Using a Class in Java\n");
System.out.println("\tRadius: " + df.format(circle.getRadius()));
System.out.println("\tArea: " + df.format(circle.calculateArea()));
System.out.println("\tCircumference: " + df.format(circle.calculateCircumference()));
System.out.println("\n\tEnd of Program. Thank you for Using This Program\n");
}
}
Wednesday, October 30, 2024
Tuesday, October 29, 2024
Monday, October 28, 2024
Saturday, October 26, 2024
Thursday, October 24, 2024
Wednesday, October 23, 2024
Temperature Converter Using a Class in Python
Program Listing
class TemperatureConverter:
@staticmethod
def celsius_to_fahrenheit(celsius):
return (celsius * 9 / 5) + 32
@staticmethod
def fahrenheit_to_celsius(fahrenheit):
return (fahrenheit - 32) * 5 / 9
celsius_temperature = 34.36
fahrenheit_temperature = 134.98
print("\n\tTemperature Converter Using a Class in Python\n")
print("\tCelsius to Fahrenheit: {:.2f}°C = {:.2f}°F".format(celsius_temperature, TemperatureConverter.celsius_to_fahrenheit(celsius_temperature)))
print("\tFahrenheit to Celsius: {:.2f}°F = {:.2f}°C".format(fahrenheit_temperature, TemperatureConverter.fahrenheit_to_celsius(fahrenheit_temperature)))
print("\n\tEnd of Program. Thank you for Using This Program\n")
Monday, October 21, 2024
Simple Calculator Using a Class in Python
Program Listing
class Calculator:
def __init__(self):
print("\n\tSimple Calculator Using a Class in Python\n\n")
def get_user_input(self):
self.num1 = float(input("\tEnter the first number: "))
self.operator = input("\tEnter the operator (+, -, *, /): ")
self.num2 = float(input("\tEnter the second number: "))
def calculate_result(self):
if self.operator == '+':
self.result = self.num1 + self.num2
elif self.operator == '-':
self.result = self.num1 - self.num2
elif self.operator == '*':
self.result = self.num1 * self.num2
elif self.operator == '/':
if self.num2 != 0:
self.result = self.num1 / self.num2
else:
print("\tError: Division by zero is not allowed.")
exit(1)
else:
print("\tError: Invalid operator")
exit(1)
def display_result(self):
print("\n\tThe Result is ", self.result, ".")
print("\n\tEnd of Program")
# Create an instance of the Calculator class
calculator = Calculator()
# Get user input
calculator.get_user_input()
# Calculate and display the result
calculator.calculate_result()
calculator.display_result()
Thursday, October 17, 2024
Wednesday, October 16, 2024
Tuesday, October 15, 2024
Monday, October 14, 2024
Sunday, October 13, 2024
Friday, October 11, 2024
Wednesday, October 9, 2024
Tuesday, October 8, 2024
Monday, October 7, 2024
Thursday, October 3, 2024
Animals Sound Using Polymorphism in C++
Program Listing
#include <iostream>
class Animal {
public:
virtual void makeSound() {
std::cout << "The animal makes a sound." << std::endl;
}
};
class Dog : public Animal {
public:
void makeSound() override {
std::cout << "\tThe dog barks." << std::endl;
}
};
class Snake : public Animal {
public:
void makeSound() override {
std::cout << "\tThe snake ssshh." << std::endl;
}
};
class Cat : public Animal {
public:
void makeSound() override {
std::cout << "\tThe cat meows." << std::endl;
}
};
int main() {
Animal* animals[3];
animals[0] = new Dog();
animals[1] = new Cat();
animals[2] = new Snake();
std::cout <<"\n\n\tAnimals Sound Using Polymorphism in C++\n\n";
for (int i = 0; i < 3; i++) {
std::cout << "\tAnimal " << i + 1 << ": ";
animals[i]->makeSound();
}
// Don't forget to delete the dynamically allocated objects to free memory.
for (int i = 0; i < 3; i++) {
delete animals[i];
}
std::cout << "\n\tEnd of Program. Thank you for using this program." << std::endl;
return 0;
}
Wednesday, October 2, 2024
Sunday, September 29, 2024
Saturday, September 28, 2024
Friday, September 27, 2024
Monday, September 23, 2024
Friday, September 20, 2024
Thursday, September 19, 2024
Wednesday, September 18, 2024
Tuesday, September 17, 2024
Sunday, September 15, 2024
Saturday, September 14, 2024
Friday, September 13, 2024
Wednesday, September 11, 2024
Tuesday, September 10, 2024
Monday, September 9, 2024
Sunday, September 8, 2024
Student Records Using Encapsulation in Python
Student Records Using Encapsulation in Python
ScreenshotProgram Listing
class Student:
self.name = student_name
self.age = student_age
self.grade = student_grade
def get_name(self):
return self.name
def get_age(self):
return self.age
def get_grade(self):
return self.grade
def set_name(self, student_name):
self.name = student_name
def set_age(self, student_age):
self.age = student_age
def set_grade(self, student_grade):
self.grade = student_grade
if __name__ == "__main__":
student = Student("Julianna Rae Pomperada", 16, 92)
print("\n\tStudent Records Using Encapsulation in Python")
print("\n\tDisplay Student Record\n")
print("\tStudent Name: " + student.get_name())
print("\tStudent Age: " + str(student.get_age()) + " years")
print("\tStudent Grade: " + str(student.get_grade()))
student.set_name("Jacob Samuel Pomperada")
student.set_age(18)
student.set_grade(88)
print("\n\tUpdated Student Record\n")
print("\tStudent Name: " + student.get_name())
print("\tStudent Age: " + str(student.get_age()) + " years old.")
print("\tStudent Grade: " + str(student.get_grade()))
print("\n\tEnd of Program. Thank you for using this program.")
Friday, September 6, 2024
Thursday, September 5, 2024
Wednesday, September 4, 2024
Tuesday, September 3, 2024
Monday, September 2, 2024
Sunday, September 1, 2024
Friday, August 30, 2024
Tuesday, August 27, 2024
Monday, August 26, 2024
Saturday, August 24, 2024
Thursday, August 22, 2024
Wednesday, August 21, 2024
Tuesday, August 20, 2024
Monday, August 19, 2024
Sunday, August 18, 2024
Saturday, August 17, 2024
Friday, August 16, 2024
Thursday, August 15, 2024
Wednesday, August 14, 2024
Addition and Subtraction of Two Numbers Using Polymorphism in JavaScript
Program Listing
Tuesday, August 13, 2024
Monday, August 12, 2024
Sunday, August 11, 2024
Thursday, August 8, 2024
Wednesday, August 7, 2024
Tuesday, August 6, 2024
Monday, August 5, 2024
Sunday, August 4, 2024
Saturday, August 3, 2024
Friday, August 2, 2024
Thursday, August 1, 2024
Tuesday, July 30, 2024
Sunday, July 28, 2024
Saturday, July 27, 2024
Friday, July 26, 2024
Thursday, July 25, 2024
Wednesday, July 24, 2024
Tuesday, July 23, 2024
Addition and Subtraction Using Polymorphism in Java
Program Listing
import java.util.Scanner;
class MathOperation {
public int performOperation(int a, int b) {
return 0; // Base class default implementation
}
}
class Addition extends MathOperation {
@Override
public int performOperation(int a, int b) {
return a + b;
}
}
class Subtraction extends MathOperation {
@Override
public int performOperation(int a, int b) {
return a - b;
}
}
public class Main {
public static void main(String[] args) {
MathOperation operation = null;
int num1, num2;
char op;
Scanner scanner = new Scanner(System.in);
System.out.println("\n\n\tAddition and Subtraction Using Polymorphism in Java\n");
System.out.print("\tEnter two numbers: ");
num1 = scanner.nextInt();
num2 = scanner.nextInt();
System.out.print("\tEnter the operation (+ for addition, - for subtraction): ");
op = scanner.next().charAt(0);
if (op == '+') {
operation = new Addition();
} else if (op == '-') {
operation = new Subtraction();
} else {
System.out.println("\tInvalid operation.");
return;
}
int result = operation.performOperation(num1, num2);
System.out.println("\n\tThe Result: " + result);
scanner.close();
System.out.println("\n\tEnd of Program. Thank you for using this program.");
}
}
Monday, July 22, 2024
Friday, July 19, 2024
Thursday, July 18, 2024
Wednesday, July 17, 2024
Tuesday, July 16, 2024
Monday, July 15, 2024
Simple Calculator Using Abstraction in C++
Program Listing
#include <iostream>
// Abstract class for calculator operations
class Operation {
public:
virtual double calculate(double a, double b) = 0;
};
// Concrete subclasses for each operation
class Addition : public Operation {
public:
double calculate(double a, double b) override {
return a + b;
}
};
class Subtraction : public Operation {
public:
double calculate(double a, double b) override {
return a - b;
}
};
class Multiplication : public Operation {
public:
double calculate(double a, double b) override {
return a * b;
}
};
class Division : public Operation {
public:
double calculate(double a, double b) override {
if (b == 0) {
std::cerr << "Error: Division by zero is not allowed." << std::endl;
return 0; // Return 0 as an error value
}
return a / b;
}
};
int main() {
double num1, num2;
char operation;
std::cout <<"\n\n\tSimple Calculator Using Abstraction in C++\n";
std::cout << "\n\tGive two numbers: ";
std::cin >> num1 >> num2;
std::cout << "\tEnter the operation (+, -, *, /): ";
std::cin >> operation;
Operation* op = nullptr;
switch (operation) {
case '+':
op = new Addition();
break;
case '-':
op = new Subtraction();
break;
case '*':
op = new Multiplication();
break;
case '/':
op = new Division();
break;
default:
std::cerr << "\tError: Invalid operation." << std::endl;
return 1;
}
double result = op->calculate(num1, num2);
std::cout << "\n\tThe Result: " << result << std::endl;
std::cout << "\n\n\tEnd of Program. Thank you for using this program." << std::endl;
delete op;
return 0;
}
Sunday, July 14, 2024
Empower Your Business with My IT Consulting Services!
Empower Your Business with My IT Consulting Services!
Are you navigating the complexities of modern technology? Gain a competitive edge with tailored IT solutions crafted to meet your unique business challenges. As a seasoned consultant specializing in Computer Organization, Operating Systems, and Database Systems, I provide strategic guidance and hands-on expertise to drive your business forward.
** My Services Offered:**
- **Strategic IT Planning:** Align technology with your business goals for sustainable growth and efficiency.
- **Infrastructure Assessment and Optimization:** Enhance performance and reliability through streamlined infrastructure solutions.
- **Security and Compliance:** Safeguard your assets with robust cybersecurity measures and regulatory compliance strategies.
- **Cloud Integration and Migration:** Harness the power of cloud technologies for scalability and cost-efficiency.
- **IT Project Management:** From inception to completion, ensure smooth project execution and delivery.
Partner with me to transform challenges into opportunities. Contact today to discuss how I can optimize your IT infrastructure and propel your business to new heights.
Feel free to personalize it further to highlight specific achievements, client successes, or industry expertise that set you apart! You may contact me here in the Philippines at
my mobile number 09173084360 and my email address at
jakerpomperada@gmail.com
Dr. Jake R. Pomperada,MAED-IT,MIT, PHD-TM
Freelance IT Consultant
Friday, July 12, 2024
Thursday, July 11, 2024
Difference of Two Numbers in C
#include <stdio.h>
int main()
{
int a=0,b=0,difference=0;
printf("\n\n");
printf("\tDifference of Two Numbers in C");
printf("\n\n");
printf("\tGive Two Numbers : ");
scanf("%d%d",&a,&b);
/* Compute the Difference of Two Numbers */
difference = (a - b);
printf("\n\n");
printf("\t===== DISPLAY RESULTS =====");
printf("\n\n");
printf("\tThe difference between %d and %d is %d.",a,b,difference);
printf("\n\n");
printf("\tEnd of Program");
printf("\n");
}
Wednesday, July 10, 2024
Student Record System in C++
Program Listing
#include <iostream>
#include <string>
class Student {
public:
// Constructor to initialize the student's information
Student(std::string name, int rollNumber, double marks) {
this->name = name;
this->rollNumber = rollNumber;
this->marks = marks;
}
// Function to display the student's information
void displayInfo() {
std::cout << "\n\tStudent Name: " << name << std::endl;
std::cout << "\tRoll Number: " << rollNumber << std::endl;
std::cout << "\tMarks: " << marks << std::endl;
}
private:
std::string name;
int rollNumber;
double marks;
};
int main() {
std::string name;
int rollNumber;
double marks;
// Input student information
std::cout <<"\n";
std::cout << "\tEnter student's name: ";
std::cin >> name;
std::cout << "\tEnter roll number: ";
std::cin >> rollNumber;
std::cout << "\tEnter marks: ";
std::cin >> marks;
// Create a Student object with the provided information
Student student(name, rollNumber, marks);
char choice;
do {
std::cout << "\n\tStudent Record Main Menu\n" << std::endl;
std::cout << "\t[1] Display student information" << std::endl;
std::cout << "\t[2] Quit Program" << std::endl;
std::cout << "\tEnter your choice: ";
std::cin >> choice;
if (choice == '1') {
// Display the student's information
student.displayInfo();
} else if (choice != '2') {
std::cout << "\n\tInvalid choice. Please try again." << std::endl;
}
} while (choice != '2');
std::cout << "\n\tEnd of Program. Thank you for using this program." << std::endl;
return 0;
}
Tuesday, July 9, 2024
How To Become a Database Administrator?
How To Become a Database Administrator?
Becoming a database administrator (DBA) typically involves a combination of education, experience, and specific skills. Here’s a general roadmap to becoming a DBA.
1. Education
Start with a relevant bachelor’s degree in Computer Science, Information Technology, or a related field. Some employers may prefer candidates with a master’s degree for senior positions.
2. Gain Technical Skills
Database Systems: Develop proficiency in popular database management systems (DBMS) such as MySQL, PostgreSQL, Oracle, SQL Server, MongoDB, etc.
3. SQL
Master SQL (Structured Query Language) for querying and managing data in databases.
4. Data Modeling
Understand data modeling techniques to design efficient database schemas.
5. Backup and Recovery
Learn about database backup, recovery, and disaster recovery procedures.
6. Performance Tuning
Gain skills in optimizing database performance through indexing, query optimization, etc.
6. Gain Experience
Start with entry-level roles like database developer or data analyst to gain hands-on experience with databases.
Progress to roles that involve more database administration responsibilities as you gain experience.
7. Certification
Consider obtaining certifications from database vendors (e.g., Oracle Certified Professional, Microsoft Certified Solutions Expert) to validate your skills and knowledge.
8. Soft Skills
Develop good communication skills, problem-solving abilities, and the ability to work under pressure, as DBAs often need to handle critical database issues.
9. Stay Updated
Keep up with industry trends and new technologies in database management.
10. Networking
Build a professional network through industry events, forums, and online communities to stay connected and learn from others in the field.
Monday, July 8, 2024
I was assigned as Program Chair in Computer Studies in University of Negros Occidental Recoletos Graduate School
I am very happy to announce my appointment as Program Chair in the Computer Studies in the University of Negros Occidental - Recoletos Graduate School stating this July 8, 2024. Thank you LORD for this opportunity and also to my dean Dr. Dennis Madrigal for the support and trust you have given me.
Saturday, July 6, 2024
Thursday, July 4, 2024
Wednesday, July 3, 2024
Tuesday, July 2, 2024
Monday, July 1, 2024
Sunday, June 30, 2024
Bank Account in C++
Program Listing
#include <iostream>
#include <iomanip>
class BankAccount {
private:
double balance;
public:
BankAccount() : balance(0.0) {}
void deposit(double amount) {
if (amount > 0) {
balance += amount;
std::cout << "\tDeposited PHP" <<std::fixed <<std::setprecision(2) << amount << ". New balance: PHP" << balance << std::endl;
} else {
std::cout << "\tInvalid deposit amount." << std::endl;
}
}
void withdraw(double amount) {
if (amount > 0 && amount <= balance) {
balance -= amount;
std::cout << "\tWithdrawn PHP" <<std::fixed <<std::setprecision(2)<< amount << ". New balance: PHP" << balance << std::endl;
} else {
std::cout << "\tInvalid withdrawal amount or insufficient funds." << std::endl;
}
}
double getBalance() const {
return balance;
}
};
int main() {
BankAccount account;
int choice=0;
double amount=0.00;
while (true) {
std::cout << "\n\tBank Account Main Menu" << std::endl;
std::cout << "\t[1] Deposit Money" << std::endl;
std::cout << "\t[2] Withdraw Money" << std::endl;
std::cout << "\t[3] Check Balance" << std::endl;
std::cout << "\t[4] Quit Program" << std::endl;
std::cout << "\n\tEnter your choice: ";
std::cin >> choice;
switch (choice) {
case 1:
std::cout << "\tEnter the deposit amount: PHP";
std::cin >> amount;
account.deposit(amount);
break;
case 2:
std::cout << "\tEnter the withdrawal amount: PHP";
std::cin >> amount;
account.withdraw(amount);
break;
case 3:
std::cout << "\tCurrent balance: PHP" <<std::fixed <<std::setprecision(2)<< account.getBalance() << std::endl;
break;
case 4:
std::cout << "\tExiting. Thank you for using this program." << std::endl;
return 0;
default:
std::cout << "\tInvalid choice. Please try again." << std::endl;
}
}
return 0;
}
Friday, June 28, 2024
Temperature Converter Using Encapsulation in C++
#include <iostream>
class TemperatureConverter {
private:
double celsius;
double fahrenheit;
public:
TemperatureConverter() : celsius(0.0), fahrenheit(32.0) {}
void setCelsius(double c) {
celsius = c;
fahrenheit = (celsius * 9.0/5.0) + 32.0;
}
void setFahrenheit(double f) {
fahrenheit = f;
celsius = (fahrenheit - 32.0) * 5.0/9.0;
}
double getCelsius() const {
return celsius;
}
double getFahrenheit() const {
return fahrenheit;
}
};
int main() {
TemperatureConverter converter;
std::cout << "\n\tTemperature Converter Using Encapsulation in C++\n\n";
// Convert from Celsius to Fahrenheit
converter.setCelsius(35.0);
std::cout << "\t35 degrees Celsius is equal to " << converter.getFahrenheit() << " degrees Fahrenheit.\n";
// Convert from Fahrenheit to Celsius
converter.setFahrenheit(112.3);
std::cout << "\n\tEnd of Program\n\n";
return 0;
}
Thursday, June 27, 2024
Area of the Circle Using OOP Approach
#include <iostream>
#include <iomanip>
class Circle {
public:
// Constructor to initialize the radius
Circle(double radius) {
this->radius = radius;
}
// Method to calculate the area of the circle
double calculateArea() {
return 3.14159265359 * radius * radius; // Assuming Pi to be approximately 3.14159265359
}
// Method to calculate the circumference of the circle
double calculateCircumference() {
return 2.0 * 3.14159265359 * radius; // Assuming Pi to be approximately 3.14159265359
}
private:
double radius;
};
int main() {
double radius;
// Input the radius of the circle
std::cout << "\n\tArea of the Circle Using OOP Approach\n";
std::cout << "\n\tEnter the radius of the circle: ";
std::cin >> radius;
// Create a Circle object with the provided radius
Circle circle(radius);
// Calculate and display the area and circumference
double area = circle.calculateArea();
double circumference = circle.calculateCircumference();
std::cout << "\n\tThe Area of the circle: " <<std::fixed <<std::setprecision(2) << area << std::endl;
std::cout << "\tThe Circumference of the circle: " <<std::fixed <<std::setprecision(2) << circumference << std::endl;
std::cout << "\n\n\tEnd of Program. Thank you for using this program." << std::endl;
return 0;
}
Wednesday, June 26, 2024
Tuesday, June 25, 2024
Monday, June 24, 2024
What is a Data Center?
What is a Data Center?
Data centers are physical facilities that enterprises use to house business-critical applications and information and which are evolving from centralized, on-premises facilities to edge deployments and public-cloud services.
What is Oracle Application Express?
What is Oracle Application Express?
Oracle APEX (also known as APEX) is an enterprise low-code application development platform from Oracle Corporation. APEX is used for developing and deploying cloud, mobile and desktop applications.
What is Oracle Database?
What is Oracle Database?
An Oracle Database (aka Oracle RDBMS) is a collection of data organized by type with relationships being maintained between the different types. The primary purpose of a database is to store and retrieve related information.
Sunday, June 23, 2024
Tips for Effective Job Hunting
Tips for Effective Job Hunting
1. **Know What You Want**: Clarify your career goals and what kind of job you are looking for. This will help you target your search more effectively.
2. **Update Your Resume**: Tailor your resume for each job application, highlighting relevant skills and experiences. Keep it concise, clear, and error-free.
3. **Network**: Leverage your professional network, including LinkedIn and industry contacts. Networking can often lead to job opportunities that are not advertised.
4. **Use Job Search Engines**: Utilize job search engines like Indeed, Glassdoor, LinkedIn Jobs, etc., to find job openings. Set up alerts to receive notifications for new postings.
5. **Research Companies**: Identify companies you're interested in working for and research them thoroughly. Visit their websites, read their reviews, and understand their culture and values.
6. **Customize Your Cover Letter**: Write a targeted cover letter for each application. It should explain why you are interested in the position and how your skills align with the company’s needs.
7. **Prepare for Interviews**: Practice common interview questions and be ready to discuss your qualifications and experiences. Research the company and prepare thoughtful questions to ask.
8. **Follow Up**: After submitting applications or interviews, follow up with a thank-you email. It shows your enthusiasm and professionalism.
9. **Develop Skills**: Consider improving your skills through courses, certifications, or workshops related to your field. This can make you a more attractive candidate.
10. **Stay Organized**: Keep track of the jobs you’ve applied for, deadlines, and follow-ups. This helps you stay on top of your job search.
11. **Stay Positive and Persistent**: Job hunting can be challenging, so maintain a positive attitude and keep going even if you face rejection. Persistence often pays off in the end.
12. **Consider Temporary or Freelance Work**: If finding a full-time position is taking longer than expected, consider temporary work or freelancing to gain experience and expand your network.
By combining these strategies and staying proactive, you can increase your chances of finding a job that aligns with your career goals. Good luck with your job search!
Vehicle Using Inheritance in Python
class Vehicle:
print("\tVehicle is moving.")
class Car(Vehicle):
def move(self):
print("\tCar is driving.")
if __name__ == "__main__":
vehicle = Vehicle()
car = Car()
print("\n\n\tVehicle Using Inheritance in Python\n")
vehicle.move() # Calls the base class method
car.move() # Calls the overridden method in the derived class
print("\n\tEnd of Program. Thank you for using this program.")
Saturday, June 22, 2024
Friday, June 21, 2024
Wednesday, June 19, 2024
What is Time?
What is Time?
What is time, exactly? Physicists define time as the progression of events from the past to the present into the future. Basically, if a system is unchanging, it is timeless. Time can be considered to be the fourth dimension of reality, used to describe events in three-dimensional space. It is not something we can see, touch, or taste, but we can measure its passage.
Tuesday, June 18, 2024
Monday, June 17, 2024
Sunday, June 16, 2024
Thursday, June 13, 2024
Wednesday, June 12, 2024
Tuesday, June 11, 2024
Monday, June 10, 2024
What is a Project Manager?
What is a Project Manager?
A project manager is a professional who organizes, plans, and executes projects while working within restraints like budgets and schedules.
Count Vowels in a String Using a Class in C#
// VowelCounter.cs
// Author : Dr. Jake Rodriguez Pomperada, MAED-IT, MIT, PHD-TM
// Date : June 9, 2024 Sunday 10:49 PM
// Tools : Microsoft Visual Studio 2022 Community Edition (64 Bit)
// Website : http://www.jakerpomperada.com
// YouTube Channel : https://www.youtube.com/jakepomperada
// Email : jakerpomperada@gmail.com
using System;
using System.Linq;
// Define the VowelCounter class in C#
public class VowelCounter
{
public string inputString;
public int vowelCount;
public VowelCounter()
{
inputString = "";
vowelCount = 0;
}
public void GetInputString()
{
Console.WriteLine("\n\tCount Vowels in a String Using a Class in C#\n");
Console.Write("\n\tEnter a string: ");
inputString = Console.ReadLine().Trim();
}
public void ConvertToLowerCase()
{
inputString = inputString.ToLower();
}
public void CountVowels()
{
foreach (char c in inputString)
{
if ("aeiou".Contains(c))
{
vowelCount++;
}
}
}
public void DisplayResult()
{
Console.WriteLine("\n\tString in lowercase : " + inputString);
Console.WriteLine("\n\n\tNumber of vowels : " + vowelCount);
Console.WriteLine("\n\n\tEnd of Program\n");
Console.ReadKey();
}
}
// Main program in C#
class Program
{
static void Main(string[] args)
{
VowelCounter counter = new VowelCounter();
counter.GetInputString();
counter.ConvertToLowerCase();
counter.CountVowels();
counter.DisplayResult();
}
}
Friday, June 7, 2024
Skills Needed To Become a Frontend Developer
Skills Needed To Become a Frontend Developer
Becoming a proficient frontend developer requires a blend of technical skills, a keen eye for design, and the ability to adapt to evolving technologies. Here are the essential skills you need to develop:
### 1. **Core Technologies**
- **HTML**: Understand the structure of web pages.
- **CSS**: Master styling web pages with techniques such as Flexbox and Grid layout.
- **JavaScript**: Gain a strong foundation in the language, including ES6+ features.
### 2. **Frameworks and Libraries**
- **React**: Widely used for building user interfaces.
- **Angular**: Another popular framework for single-page applications.
- **Vue.js**: Known for its simplicity and flexibility.
- **SASS/LESS**: Preprocessors that extend CSS capabilities.
### 3. **Version Control**
- **Git**: Proficiency in using Git for version control and collaboration.
### 4. **Responsive Design**
- **Media Queries**: Adapt designs for various screen sizes.
- **Mobile-First Design**: Prioritize mobile devices in the design process.
### 5. **Build Tools and Task Runners**
- **Webpack**: Module bundler for modern JavaScript applications.
- **Gulp/Grunt**: Automate tasks in the development workflow.
### 6. **Package Managers**
- **npm/yarn**: Manage project dependencies efficiently.
### 7. **API Consumption**
- **REST**: Understand how to interact with RESTful APIs.
- **GraphQL**: Knowledge of querying APIs with GraphQL.
### 8. **Testing and Debugging**
- **Unit Testing**: Frameworks like Jest, Mocha.
- **Debugging**: Use browser developer tools effectively.
### 9. **Development Tools**
- **IDEs**: Familiarity with Visual Studio Code, Sublime Text, etc.
- **Browser Developer Tools**: Proficient in using Chrome DevTools, Firefox Developer Tools.
### 10. **Performance Optimization**
- **Page Speed**: Techniques to improve loading times.
- **Code Splitting**: Efficiently load parts of the application.
### 11. **Basic Design Principles**
- **UX/UI Design**: Understand the basics of user experience and interface design.
- **Accessibility**: Ensure web applications are accessible to all users.
### 12. **Soft Skills**
- **Problem-Solving**: Analytical skills to tackle coding challenges.
- **Communication**: Ability to explain technical concepts to non-technical stakeholders.
- **Collaboration**: Work effectively within a team, often with designers and backend developers.
- **Adaptability**: Keep up with the latest trends and changes in the frontend development landscape.
### 13. **Optional but Beneficial**
- **TypeScript**: Adds static types to JavaScript, reducing runtime errors.
- **Progressive Web Apps (PWAs)**: Create apps that offer a native-like experience.
- **Server-Side Rendering (SSR)**: Techniques such as Next.js for rendering React apps on the server.
### Learning Resources
- **Online Courses**: Platforms like Udemy, Coursera, and freeCodeCamp.
- **Documentation**: Official documentation for frameworks and libraries.
- **Communities**: Join forums, attend meetups, and participate in hackathons.
By developing these skills and continuously learning, you'll be well-equipped to succeed as a frontend developer.
Thursday, June 6, 2024
Wednesday, June 5, 2024
Tuesday, June 4, 2024
Monday, June 3, 2024
Sunday, June 2, 2024
What is jQuery?
What is jQuery?
jQuery is a classic JavaScript library that’s fast, light-weight, and feature-rich. It was built in 2006 by John Resig at BarCamp NYC. jQuery is free and open-source software with a license from MIT.
It makes things simpler for HTML document manipulation and traversal, animation, event handling, and Ajax.
According to W3Techs, 77.6% of all sites use jQuery (as of 23rd February 2021).
Features/Benefits:
It has an easy-to-use, minimalistic API.
It uses CSS3 selectors in manipulating style properties and finding elements.
jQuery is lightweight, taking just 30 kb to gzip and minify, and supports an AMD module.
As its syntax is quite similar to that of CSS, it is easy for beginners to learn.
Extendable with plugins.
Versatility with an API that supports multiple browsers, including Chrome and Firefox.
Use cases:
DOM manipulation with CSS selectors that use certain criteria to select a node in the
DOM. These criteria include element names and their attributes (like class and id).
Element selection in DOM using Sizzle (an open-source, multi-browser selector engine).
Creating effects, events, and animations.
JSON parsing.
Ajax application development.
Feature detection.
Control of asynchronous processing with Promise and Deferred objects.
What Are JavaScript Libraries?
What Are JavaScript Libraries?
JavaScript libraries contain various functions, methods, or objects to perform practical tasks on a webpage or JS-based application. You can even build a WordPress site with them.
Think of them as a book library where you revisit to read your favorite books. You may be an author and enjoy other authors’ books, get a new perspective or idea, and utilize the same in your life.
Similarly, a JavaScript library has codes or functions that developers can reuse and repurpose. A developer writes these codes, and other developers reuse the same code to perform a certain task, like preparing a slideshow, instead of writing it from scratch. It saves them significant time and effort.
They are precisely the motive behind creating JavaScript libraries, which is why you can find dozens of them for multiple use cases. They not only save you time but also bring simplicity to the entire development process.
Addition of Four Numbers in C#
Program Listing
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
// Variables to store the four numbers
double num1, num2, num3, num4;
Console.Write("\n\n\tAddition of Four Numbers in C#\n\n");
// Prompt the user for the first number
Console.Write("\tEnter the first number: ");
num1 = Convert.ToDouble(Console.ReadLine());
// Prompt the user for the second number
Console.Write("\tEnter the second number: ");
num2 = Convert.ToDouble(Console.ReadLine());
// Prompt the user for the third number
Console.Write("\tEnter the third number: ");
num3 = Convert.ToDouble(Console.ReadLine());
// Prompt the user for the fourth number
Console.Write("\tEnter the fourth number: ");
num4 = Convert.ToDouble(Console.ReadLine());
// Calculate the sum of the four numbers
double sum = num1 + num2 + num3 + num4;
// Display the result
Console.WriteLine("\n\tThe sum of the four numbers is: " + sum+ ".");
Console.ReadKey();
}
}
}