Answer to Question #277281 in C++ for Daemus

Question #277281

Create the IPO pseudocode to create a program that converts gallons to liters.

Note, One US gallon equals 3.7854 liters.


1
Expert's answer
2021-12-08T16:29:58-0500
#include <iostream>


using namespace std;


int main()
{
    int gallons;
    float liters;
    cout << "Enter a whole number of gallons: ";
    cin >> gallons;          
    liters = 3.7854 * gallons;
    cout << "Liters =" << liters ;
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog