Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Many private water wells produce only 1 or 2 gallons of water per minute. One wa

ID: 3538843 • Letter: M

Question

Many private water wells produce only 1 or 2 gallons of water per minute. One way to avoid running out of water with these low-yield wells is to use a holding tank. A family of 4 will use about 250 gallos of water per day. However, there is a "natural" water holding tank in the casing (i.e. the hole) of the well itself. The deeper the well, the more water that will be stored that can be pumped out for household use. But how much water will be available? Write a program in C++ in Microsoft Visual Studio 2010 that will allow the user to input the radius of the well casing in inches (a typical well will have a 3-inch radius) and the depth of the well in feet (assume water will fill this entire depth, although in practice that will not be true since the static water level will generally be 50 feet or more below the ground surface). The program should output the number of gallons stored in the well casing. For your reference: The volume of a cylinder is %u03C0r^2h, where r is the radius and h is the hight. 1 cubic foot = 7.48 gallons of water. For example, a 300-foot well full of water with a radius of 3 inches for the casing holds about 441 gallows of water - plenty for a family of 4. Many private water wells produce only 1 or 2 gallons of water per minute. One way to avoid running out of water with these low-yield wells is to use a holding tank. A family of 4 will use about 250 gallos of water per day. However, there is a "natural" water holding tank in the casing (i.e. the hole) of the well itself. The deeper the well, the more water that will be stored that can be pumped out for household use. But how much water will be available? Write a program in C++ in Microsoft Visual Studio 2010 that will allow the user to input the radius of the well casing in inches (a typical well will have a 3-inch radius) and the depth of the well in feet (assume water will fill this entire depth, although in practice that will not be true since the static water level will generally be 50 feet or more below the ground surface). The program should output the number of gallons stored in the well casing. For your reference: The volume of a cylinder is %u03C0r^2h, where r is the radius and h is the hight. 1 cubic foot = 7.48 gallons of water. For example, a 300-foot well full of water with a radius of 3 inches for the casing holds about 441 gallows of water - plenty for a family of 4.

Explanation / Answer


//CODE TESTED IN MS VSIUAL STUDIO


#include <iostream>

#include <string>

using namespace std;

int main() {

double ra,dp,gallons;

cout<<"Enter radius of the well casing in inches:"<<endl;

cin >> ra;

cout<<"Enter depth of the well in feet:"<<endl;

cin >> dp;


ra=ra/12.0;

gallons= 7.48*3.14*ra*ra*dp;


cout<<"The number of gallons stored in the well casing is: "<<gallons<<endl;

return 0;

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote