
Concept explainers
Complete the following
Volume = πr2h
where
π is 3.14159,
r is the radius of the tank, and
h is the height of the tank.
#inc1ude <iostream>
#include <cmath>
using namespace std;
int main()
{
double volume, radius, height;
cout << "This program will tell you the volume of \n ,
cout <<"a cylinder-shaped fuel tank. \n ;
cout << "How tall is the tank?
cin >> height;
cout << "What is the radius of the tank? ";
cin >> radius;
// You must complete the program.
}

Want to see the full answer?
Check out a sample textbook solution
Chapter 3 Solutions
Starting Out with C++ from Control Structures to Objects (9th Edition)
Additional Engineering Textbook Solutions
Concepts Of Programming Languages
Starting Out With Visual Basic (8th Edition)
Degarmo's Materials And Processes In Manufacturing
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
SURVEY OF OPERATING SYSTEMS
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning




