A program that will ask the user to give value in gallons and it will convert to liters using modern C++ programming approach.

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.Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGgThank you very much for your support.

Program Listing

// Jake Rodriguez Pomperada, MAED-IT, MIT
// www.jakerpomperada.blogspot.com and www.jakerpomperada.com
// jakerpomperada@gmail.com

#include <iostream>

int main()
{
   int no_gallons=0, no_liters=0;

   std::cout <<"\n\n";
   std::cout << "\tGallons To Liters in Modern C++";
   std::cout <<"\n\n";
   std::cout << "\tHow Many Gallons? : ";
   std::cin >> no_gallons; 

   no_liters = (no_gallons * 4); 
   
   std::cout <<"\n";
   std::cout <<"\t" << no_gallons << " Gallons is equivalent to "
       << no_liters << " Liters.";
   std::cout <<"\n\n";
   std::cout << "\tEnd of Program";
   std::cout <<"\n\n";
  return 0;
}

Leave a Reply

Your email address will not be published.