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
Sunday, January 9, 2022
Feet To Inches in C++
A simple program to ask the user to give a value in feet and then the program will convert the given feet into inches equivalent 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.
Program Listing#include <iostream>
#include <iomanip>
using std::string;
int main() {
float feet=0.00, inches=0.00;
std::cout <<"\n";
std::cout <<"\tFeet To Inches in C++";
std::cout <<"\n\n";
std::cout <<"\tGive the number of feet : ";
std::cin >> feet;
std::cout <<"\n";
inches = feet * 12.0;
std::cout << std::fixed;
std::cout << std::setprecision(2);
std::cout <<"\t" << feet << " feet is equal to " << inches
<< " inches." <<"\n";
std::cout <<"\n";
std::cout <<"\tEnd of Program";
std::cout <<"\n";
return 0;
}
Feet To Inches in C
A simple program to ask the user to give a value in feet and then the program will convert the given feet into inches equivalent 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.
Program Listing
#include <stdio.h>
int main() {
float feet=0.00, inches=0.00;
printf("\n");
printf("\tFeet To Inches in C");
printf("\n\n");
printf("\tGive the number of feet : ");
scanf("%f", &feet);
printf("\n");
inches = feet * 12.0;
printf("\t%.2f feet is equal to %.2f inches\n", feet, inches);
printf("\n");
printf("\tEnd of Program");
printf("\n");
return 0;
}
Saturday, January 8, 2022
Multiplication Table in Java
Machine Problem
Write a program to generate a multiplication table using Java 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.
Present Month in Java
Machine Problem
Write a program that will display the present month using Java 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.
Solution
import java.time.*;
/**
* @version January 5, 2021
* @author Jake Rodriguez Pomperada, MAED-IT, MIT
*/
public class Calendar
{
public static void main(String[] args)
{
LocalDate date = LocalDate.now();
int month = date.getMonthValue();
int today = date.getDayOfMonth();
date = date.minusDays(today - 1); // set to start of month
DayOfWeek weekday = date.getDayOfWeek();
int value = weekday.getValue(); // 1 = Monday, . . . , 7 = Sunday
System.out.println("\n");
System.out.println("\tPresent Month in Java");
System.out.println("\n");
System.out.print("Month of January 2022");
System.out.println("\n");
System.out.println("Mon Tue Wed Thu Fri Sat Sun");
for (int i = 1; i < value; i++)
System.out.print(" ");
while (date.getMonthValue() == month)
{
System.out.printf("%3d", date.getDayOfMonth());
if (date.getDayOfMonth() == today)
System.out.print("*");
else
System.out.print(" ");
date = date.plusDays(1);
if (date.getDayOfWeek().getValue() == 1) System.out.println();
}
if (date.getDayOfWeek().getValue() != 1) System.out.println();
}
}
Input Your Name and Age in Java
Machine Problem
Write a program that shows basic input and output of user's name and age using
Java 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.Program Listingimport java.util.*; public class Input_Name { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("\n"); System.out.println("\tInput Your Name and Age in Java"); System.out.println("\n"); // Input your name System.out.print("\tWhat is your name? "); String name = input.nextLine(); System.out.println("\n"); // Input your age System.out.print("\tHow old are you? "); int age = input.nextInt(); // display output on console System.out.println("\n"); System.out.println("\tHello, " + name + ". Next year, you'll be " + (age + 1) + "."); System.out.println(); System.out.println("\tEnd of Program"); System.out.println(); input.close(); } }
Thursday, January 6, 2022
Factorial a Number Using Recursion in C++
A program that will demonstrate how to use recursion to solve the factorial value of the given number 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.Program Listing#include <iostream> int factorial(int n); int main() { int num_val=0; std::cout << "\n\n"; std::cout << "\tFactorial a Number Using Recursion in C++"; std::cout << "\n\n"; std::cout << "\tGive a Number : "; std::cin >> num_val; std::cout << "\n\n"; std::cout << "\tFactorial of " << num_val << " = " << factorial(num_val); std::cout << "\n\n"; std::cout << "\tEnd of Program"; std::cout << "\n\n"; return 0; } int factorial(int n) { if(n > 1) return n * factorial(n - 1); else return 1; }
Reverse a String in C#
A program that will ask the user to give a string and then the program will display the original string and reverse string output 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.
Program Listing
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Reverse_String
{
static class StringHelper
{
public static string ReverseString(string str)
{
char[] array = str.ToCharArray() ;
Array.Reverse(array) ;
return new string(array) ;
}
}
class Program
{
static void Main(string[] args)
{
Console.Write("\n\n");
Console.Write("Reverse a String in C#");
Console.Write("\n\n");
Console.Write("Give a String : ");
string originalString = Console.ReadLine();
Console.Write("\n\n");
Console.Write("Original String : " + originalString);
Console.Write("\n\n");
Console.WriteLine("Reverse String : " + StringHelper.ReverseString(originalString));
Console.ReadLine();
}
}
}
Tuesday, January 4, 2022
Reverse An Array in C
A simple program to ask the user to give a series of numbers and then the program will reverse the arrangement of the given numbers using arrays in 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.Program Listing#include <stdio.h> #define MAX 100 int main() { int arr[MAX],num=0,i=0,temp=0; printf("\n"); printf("\tReverse An Array in C"); printf("\n\n"); printf("\tEnter size of Array : "); scanf("%d",&num); printf("\n\n"); printf("\tEnter the elements :"); printf("\n\n"); printf("\t"); for(i=0;i<num;i++) { scanf("%d",&arr[i]); } for(i=0;i<num/2;i++) { temp=arr[i]; arr[i]=arr[num-i-1]; arr[num-i-1]=temp; } printf("\n\n"); printf("\tArray after reversing : \n"); printf("\t"); for(i=0;i<num;i++) { printf("%d ",arr[i]);; } printf("\n"); printf("\tEnd of Program"); printf("\n"); }
Monday, January 3, 2022
Bitwise Operators in C
A simple program that demonstrate how to use and declare bitwise operators in 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.
Program Listing
/* bitwise.c
Author : Jake Rodriguez Pomperada,BSCS,MAED-IT
Date : November 19, 2018 Monday 2:38 PM
Location : Bacolod City, Negros Occidental
Website : http://www.jakerpomperada.com
Emails : jakerpomperada@jakerpomperada.com
jakerpomperada@gmail.com
jakerpomperada@yahoo.com
jakerpomperada@aol.com
*/
#include <stdio.h>
int main()
{
int x=0, y=0;
printf("\n\n");
printf("\tBitwise Operators in C");
printf("\n\n");
printf("\tGive two integers: ");
scanf("%d%d",&x,&y);
printf("\n\n");
printf("\t%d & %d = %d\n",x,y,(x & y));
printf("\t%d | %d = %d\n",x,y,(x | y));
printf("\t%d ^ %d = %d\n",x,y,(x ^ y));
printf("\t~%d = %d\n",x,~x);
printf("\t%d << %d = %d\n",x,2,(x << 2));
printf("\t%d >> %d = %d\n",x,2,(x >> 2));
printf("\n\n");
printf("\tEnd of Program");
printf("\n\n");
}
Sunday, January 2, 2022
Factorial a Number Using Recursion in C
A factorial program that I wrote using C language that will ask the user to give a number and then it will compute the factorial value of the given number using recursion method.
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.Program Listing#include <stdio.h> int factorial_function(int num); int main() { int number_given=0; printf("\n"); printf("\tFactorial a Number Using Recursion in C"); printf("\n\n"); printf("\tGive a Number : "); scanf("%d",&number_given); int result = factorial_function(number_given); printf("\n"); printf("\tThe Factorial of %d = %d", number_given, result); printf("\n\n"); printf("\tEnd of Program"); printf("\n"); return 0; } int factorial_function(int num) { if(num ==0) return 1; else return (num*factorial_function(num-1)); }