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;

  }


No comments:

Post a Comment