Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi there, I got a code from a cheg for C++ course this question but the code is not working.please I need a screen shot

Hi there, I got a code from a cheg for C++ course this question but the code is not working.please I need a screen shot of the code to know exactly the line and how to use the space on visual stodio. please answer the code with screen shoot of C++.
I need main. cpp, swimmingpool. h and swimmingpool. cpp code separetly please
image text in transcribed
image text in transcribed
Instructions Write the definition of a class swimmingPool , to implement the properties of a swimming pool. Your class should have the instance variables to store the length (in feet), width (in feet). depth (in feet), the rate (in gallons per minute) at which the water is filling the pool, and the rate (in gallons per minute) at which the water is draining from the pool. Add appropriate constructors to initialize the instance variables. Also, add member functions to do the following: determine the amount of water needed to fill an empty or partially filled pool, determine the time needed to completely or partially fill or empty the pool, and add or drain water for a specific amount of time, if the water in the pool exceeds the total capacity of the pool, output "Pool overflow" to indicate that the water has breached capacity. The header file for the swimmingPool class has been provided for reference. Write a program to test your swimmingPool class

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

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions