Project 6ObjectiveThe purpose of this project is to expose you .docx

This preview shows page 1 - 3 out of 7 pages.

Project 6 Objective: The purpose of this project is to expose you to classes and header files. Class Declaration/definition including data members, static members, member functions, and class implementation. Problem Specification: The PCCC corporation has four regions, each responsible for sales to a different geographic location. Design a DivSales class that keeps sales data for a division, with the following members: A data member that holds the region name, possible values are ( East , West , North , South ). An array with four elements for holding four quarters of sales figures for the region. A private static variable for holding the total corporate sales for all divisions for the entire year. A constructor that initializes the name to null , and the �� quarters to 0; A null destructor. A member function that prompts the user to enter the region name and sales for four quarters for that region. The value entered should be added to the static variable that holds the yearly corporate sales. A member function that returns the region name. A function that takes an integer argument with the range 0 to 3. The argument is to be used as a subscript into the regions

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture