Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#C++ please make sure post the output too thanks. used visual studio. Write the definition of a class, swimmingPool, to implement the properties of a
#C++ please make sure post the output too thanks. used visual studio.
- 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.
- This program must have a main program that utilizes a header file that defines the class and an implementation file containing the constructions and functions used in the class definitions.
- The main program will prompt the user for information using a the pools parameter constructor or default constructor with setters and getters.
- The main program should use the pool class to determine how much and how long it will take fill an empty pool.
- The main program should use the pool class to determine how much and how long it will take to fill an partially filled pool.
- The main program should use the pool class to determine how much and how long it will take to empty a full pool.
- The main program should use the pool class to determine how much and how long it will take to empty a partial filled pool.
- Test the Results: The objective of testing your program is to make sure you are producing a quality product and that it is operating the way you expect it to work. "It complied, it should work" is not a sufficient test methodology.
- Include both normal and abnormal input. A normal test is entering data that is expected. Please test your code with a set of input data that will verify that your program work under normal parameters. An abnormal test is a test that is expected, but will provide errors back to the user, identifying the error and what was expected. This is usually a boundary test.
- Try to cover all paths through your program. Code coverage is identifying all possible paths that could be completed in your program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started