Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is C++ 3. (Lastname_Lab2_p3.cpp) Write a program that displays the following prompts: Enter the length of the swimming pool (ft) Enter the width of

this is C++

image text in transcribed

3. (Lastname_Lab2_p3.cpp) Write a program that displays the following prompts: Enter the length of the swimming pool (ft) Enter the width of the swimming pool (ft) Enter the average depth of the swimming pool (ft): After each prompt is displayed, your program should use acin to accept swimming pool is entered, your program should calculate and display the volume of the pool (volume-length * width * average depth) Convert the volume from cubit foot to gallon using the equation volume in gallons = volume in cubic foot * 7.48; Assume the price of resident water is $2.56 per 1000 gallons, calculate and display the water cost of the swimming pool

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions