assuming there are 7.481 gallons in a cubic foot, write a program that ask the user to enter a number of gallons and then display equivalent in cubic feet.
1
Expert's answer
2013-03-06T06:12:12-0500
#include <iostream> using namespace std;
int main (){
cout <<"enter a number of gallons\n"; double x ; cin>>x; cout << "equivalent in cubic feet:& " << x * 7.481 << endl;
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment