C Programming Pls Help Thank Description Purpose Challenge Use Basic Classes Constructors Q37042951

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

  1. Create a class called Kiosk
  2. In class Kiosk, add the following private member data
    1. double adult_cost; // cost of adult ticket
    2. double child_cost; // cost of child ticket
    3. double senior_cost; // cost of senior ticket
    4. string * names; // dynamic array of strings
    5. double total;
    6. int attendees;
    7. int index;
  3. Create a constructor that will pass in three numeric values toset the ticket values for adult_cost, child_cost,and senior_cost.
  4. Create a public function doubleget_total(). Do NOT cout in thisfunction. This is a simple
    OR
    OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.