Categories
C++

Divisible By 5 in C++

  In this tutorial, I will show you how to write a program that will input a number and will print “Divisible” if the number is divisible by 5, otherwise print “Not Divisible” 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.

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

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button ,SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.

Program Listing

// divisible.cpp
// Jake Rodriguez Pomperada,MAED-IT, MIT
// November 26, 2020   Thursday
// www.jakerpomperada.com , www.jakerpomperada.blogspot.com
// jakerpomperada@gmail.com

#include <iostream>


int main(int argc, char **argv)
{
    int num=0;
    
    std::cout << "\n\n";
    std::cout << "\tDivisible By 5 in C++";
    std::cout << "\n\n";
    std::cout << "\tEnter a number: ";
    std::cin >> num;
    std::cout << "\n";
    if (num % 5 == 0)
        std::cout << "\tThe given number "
		          <<num << " is divisible by 5.\n";
    else
        std::cout << "\tThe given number "
		          << num << " is not divisible by 5.\n";
    std::cout << "\n\n";
    std::cout << "\tEnd of Program";
    std::cout << "\n\n";
}
Categories
C++

Square a Number in C++

 I wrote this program to ask the user to give a number and then the program will compute the square equivalent of the given number using the 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.

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

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.

Program Listing

// square_number.cpp
// Jake Rodriguez Pomperada, MAED-IT, MIT
// www.jakerpomperada.com 
// www.jakerpomperada.blogspot.com
// jakerpomperada@gmail.com
// November 21, 2020   Saturday  8:52 PM
// Bacolod City, Negros Occidental, Philippines

#include <iostream>

int main()
{
	int num_val = 0;
	
	std::cout << "\n\n";
	std::cout << "\tSquare a Number in C++";
	std::cout << "\n\n";
	std::cout << "\tGive a Number : ";
	std::cin >> num_val;
	
	std::cout << "\n";
	std::cout << "\tThe square value of " <<
	       num_val << " is " <<
	       num_val * num_val << ".";
	       
	std::cout << "\n\n";       
	std::cout << "\tEnd of Program";
	std::cout << "\n\n";       
}
Categories
C++

Text Color and Delay in C++ Using Dev C++

 I wrote this program to demonstrate how to use text color and delay in C++ using Dev C++ integrated development environment.

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.

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

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

Thank you very much.

Program Listing

#include <iostream>

#include <windows.h>



using namespace std;



int main()

{

    HANDLE colors=GetStdHandle(STD_OUTPUT_HANDLE);



    string text;

    int a=0;

    text = "Master in Information Technology";

    cout << "\n\n";

    cout << "\tText Color and Delay in C++ Using Dev C++";

	cout <<"\n\n";

    cout <<"\t";

    for(int i=0;i<text.length(); i++)

    {

        a>9 ? a=0 : a++;



        if(a==0)

        {

            SetConsoleTextAttribute(colors,1);

        }else

        {

            SetConsoleTextAttribute(colors,a);

        }

        cout<<text.at(i);

        Sleep(100);

    }

    cout << "\n\n";

    cout << "\tEnd of Program";

    cout << "\n\n";

}

Categories
C++

Subject Grade Solver in C++

In this article will show you how to write a program using C++ that will ask the user to give the subject of the student, the prelim, midterm, semifinal, and final grade and then the program will compute the general average grade of the student 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.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.


Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.

// grade_solver.cpp
// Author  : Jake Rodriguez Pomperada,MAED-IT,MIT
// Date    : September 22, 2020  Tuesday
// Website : http://www.jakerpomperada.blogspot.com
// Email  : jakerpomperada@gmail.com

#include <iostream>
#include <string.h>

using namespace std;

// Prelim = 0.20, Midterm = 0.20, 
// SemiFinal = 0.20, Final = 0.40

int main() 
{
 int prelim=0, midterm=0;
 int semifinal=0,finals=0;
 int solve_grade=0;
 
 char student_name[100];
 char subject[100];

cout <<"\n\n";
 cout <<"\tSubject Grade Solver in C++";
 cout <<"\n\n";
 cout <<"\tStudent Name : ";
 gets(student_name);
 
 cout <<"\tSubject      : ";
 gets(subject);
 cout <<"\n\n";
 cout <<"\tEnter Prelim Grade : ";
 cin >> prelim;
 cout <<"\tEnter Midterm Grade : ";
 cin >> midterm;
 cout <<"\tEnter Semi Final Grade : ";
 cin >> semifinal;
 cout <<"\tEnter Final Grade : ";
 cin >> finals;
 
 solve_grade = (prelim * 0.2) +
               (midterm * 0.2) +
               (semifinal * 0.2) +
               (finals * 0.4);   
 
 cout <<"\n\n";
 cout << "\tStudent : " << student_name;
 cout <<"\n\n";
 cout << "\tSubject : " << subject;
 cout <<"\n\n";
 cout <<"\tYou general average grade is "
     << solve_grade <<".";
 cout <<"\n\n";
 cout <<"\tEnd of the Program";
}
Categories
C++

Area of the Triangle in C++

A simple program that I wrote that will ask the user to give base and height value to compute the are of the triangle using C++ 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.comI 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

#include<iostream>
#include<cstdlib>

using namespace std;

int main()
{
    double b,h;

    cout<<"Area of a Triangle Solver"<<endl;
    cout<<"base  : "; 
	cin>>b;
    cout<<"height: "; 
	cin>>h;
    cout<<"area = "
        <<(b*h)/2
        <<" square units "
        <<endl;

    system("pause");
	return 0;
}
Categories
C++

Math Machine Problem Functions C++

I wrote this math functions in C++ to help my friend in his C++ class I hope you will fund this math machine problem functions useful.

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.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/


Program Listing


double density_rho(double p, double t)
{
 double rho=0.00;
 rho = -81.8940331877 + 0.78481129*t + 0.0005329766*p - 0.0018702673*t*t  - 0.0000012965*t*p;
 return(rho);
}

double speed_of_sound(double p, double t)
{
 double sc=0.00;
 sc = 39.0400504977 + 0.5091505919*t - 0.0000480685*p - 0.0005999919*t*t + 0.0000000876*t*p;
 return(sc);
}
 
        
double specific_heat(double t)
{
 double c_p=0.00;

 c_p = - 1577063.4164665183+ 41224.896010033437*t -  455.96153366489557*t*t + 2.7672075004378294*t*t*t 
   - 0.0099538282420798870*t*t*t*t + 0.000021227412909644836*t*t*t*t*t   
- 0.000000024859361943686458*t*t*t*t*t*t + 0.00000000001.2338077579028771*t*t*t*t*t*t*t;
 return(c_p);
}

double thermal_conductivity(double t)
{
 double ktc=0.00;
 ktc = - 4.79705801855805 + 0.126580618555664*t - 0.00141015276114583*t*t + 0.00000861758538465397*t*t*t 
   - 0.0000000312200757403645*t*t*t*t + 0.0000000000670977270739948*t*t*t*t*t   
   - 0.0000000000000792496952896591*t*t*t*t*t*t + 0.0000000000000000397025645975445*t*t*t*t*t*t*t;
 return(ktc);
}


double viscosity(double t)
{
  double mu_lam = 0.00;
  mu_lam = - 0.0015987149372354798 + 0.000042026515524978413*t - 0.00000046699891157692537*t*t 
+ 0.0000000028508060545019561*t*t*t - 0.000000000010319166121085859*t*t*t*t
+ 0.000000000000022158014214734705*t*t*t*t*t - 0.00000000000000002.6149887177791217*t*t*t*t*t*t 
+ 0.000000000000000000013095111471646806*t*t*t*t*t*t*t;
     
return(mu_lam);
}