Sunday, October 6, 2019

Perimeter of the Rectangle Solver in C++

In this article I would like to share with you a simple program that I wrote using C++ as my programming language that will ask the user to give length and width of the rectangle and then the program will compute the perimeter of the rectangle. The code is very simple and easy to understand by the beginners in C++ programming.

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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.


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



Sample Program Output


Program Listing

perimeter.cpp

// perimeter.cpp
// Author : Jake Rodriguez Pomperada
// Date   : October 5, 2019   5:49 AM Saturday
// Email  : jakerpomperada@gmail.com
// Webiste : http://www.jakerpomperada.com
// Location : Bacolod City, Negros Occidental Philippines

#include <iostream>

using namespace std;

int main() {
int length=0,width=0, perimeter=0;
cout <<"\n\n";
cout <<"\tPerimeter of the Rectangle Solver";
cout <<"\n\n";
cout <<"\tGive length of the rectangle :";
cin >> length;
cout <<"\tGive width of the rectangle :";
cin >> width;
perimeter = 2 * (length * width);
cout <<"\n\n";
cout << "\tPerimeter of the rectangle is "
    << perimeter <<".";
    
cout <<"\n\n";
cout <<"\tEnd of Program";    
}




No comments:

Post a Comment