Question: Write a class called PoolPay that uses Rectangle Class. Depending on the size of the pool the cost of using the pool vary. There are

Write a class called PoolPay that uses Rectangle Class.

Depending on the size of the pool the cost of using the pool vary. There are two sizes only. A. 100x200 feet and B.100x400. The cost of using

Pool A is 5 dollars an hour and cost of using Pool B is 7 dollars an hour. Payment is per hour basis and will be rounded up.

Customers are given a customer id (integer) and are expected to check in and check out using this id.

Create a class called Check that stores customer id, pool used and checkin/checkout times (whole numbers 0-23).

It should have functions to create empty vector, add and search for elements

//if possible add clear

Write a driver that creates a vector of Check objects with atleast 10 checkins/ (atleast some checkouts).

Display all of these customers with their ids, checkin and (check out times). If customer has checked out display amount owed. If still swimming, say "still swimming"

****************************************************************************

Create a class called CustomerDues that stores customer id and amount owed in a vector.

Your main program should have a function called calculateBills that calculates the amount owed by all the customers

If customers fail to either checkin or checkout they pay for the whole day. ($100 dollars).

//Note you will need to use structs for the Check and //CustomerDues classes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!