You are the director of a summer camp who wants to create a program to register campers and counselors. The information you need from campers include: name age gender swim level (beginner, intermediate, or advanced) special diet (boolean) length of stay (one-week or two-week ) sleepover or day camper two daily activities (from an activity list below) The information you need from counselors include: name age gender activity area (from the same activity list below) Activity List each camper must choose two activities from this list one of the activities must be swimming, unless they are an advanced swimmer (swim-level)   swimming boating tennis baseball basketball create a Camper class and a Counselor class create a camper.h file and a counselor.h file declare private member variables for each item of information needed from campers and counselors declare public member functions declare two constructors for each class one constructor that accepts values for each member variable a default constructor that assigns empty strings, false boolean values, or zeros to member variables create mutator functions that store values in the member variables (set functions) create accessor functions that return the values stored in the member variables (get functions) create a file called camp.cpp to implement the classes create a file called summerCamp.cpp for the main function display the information that the user input for camper and counselor in an appropriate format submit the four files (camper.h, counselor.h, camp.cpp, and summerCamp.cpp) sample output file is attached below

Fundamentals of Information Systems
8th Edition
ISBN:9781305082168
Author:Ralph Stair, George Reynolds
Publisher:Ralph Stair, George Reynolds
Chapter8: Systems Development
Section: Chapter Questions
Problem 2PSE
icon
Related questions
Question

You are the director of a summer camp who wants to create a program to register campers and counselors.

  • The information you need from campers include:
    • name
    • age
    • gender
    • swim level (beginner, intermediate, or advanced)
    • special diet (boolean)
    • length of stay (one-week or two-week )
    • sleepover or day camper
    • two daily activities (from an activity list below)
  • The information you need from counselors include:
    • name
    • age
    • gender
    • activity area (from the same activity list below)
  • Activity List
    • each camper must choose two activities from this list
    • one of the activities must be swimming, unless they are an advanced swimmer (swim-level)

 

    • swimming
    • boating
    • tennis
    • baseball
    • basketball
  • create a Camper class and a Counselor class
    • create a camper.h file and a counselor.h file
  • declare private member variables for each item of information needed from campers and counselors
  • declare public member functions
    • declare two constructors for each class
      • one constructor that accepts values for each member variable
      • a default constructor that assigns empty strings, false boolean values, or zeros to member variables
    • create mutator functions that store values in the member variables (set functions)
    • create accessor functions that return the values stored in the member variables (get functions)
  • create a file called camp.cpp to implement the classes
  • create a file called summerCamp.cpp for the main function
    • display the information that the user input for camper and counselor in an appropriate format
  • submit the four files (camper.h, counselor.h, camp.cpp, and summerCamp.cpp)
  • sample output file is attached below
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Project Roles
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Information Technology Project Management
Information Technology Project Management
Computer Science
ISBN:
9781337101356
Author:
Kathy Schwalbe
Publisher:
Cengage Learning