C++ programming. Pls help. Thank you
Description
The purpose of this challenge is to use basic classes withconstructors and destructors. Additionally, this challengeimplements dynamic memory allocation. This challenge mimics anevent ticket kiosk.
Requirements
- Create a class called Kiosk
- In class Kiosk, add the following private member data
- double adult_cost; // cost of adult ticket
- double child_cost; // cost of child ticket
- double senior_cost; // cost of senior ticket
- string * names; // dynamic array of strings
- double total;
- int attendees;
- int index;
- Create a constructor that will pass in three numeric values toset the ticket values for adult_cost, child_cost,and senior_cost.
- Create a public function doubleget_total(). Do NOT cout in thisfunction. This is a simple
OROR