Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For this assignment you are expected to submit the following two files: 1. . h 2. . Implement a class named Trip. Separate declaration from
For this assignment you are expected to submit the following two files:
1. . h
2. .
Implement a class named Trip. Separate declaration from implementation (i.e. Header and CPP files). Class
has the following members:
1a. A struct called and has two members: of type String
of type
1b. Private member Variables:
: type double
: type string
: a pointer of type
: a pointer of type
1c.Methods:
A default constructor which initializes all numeric members to 1, strings to "", and pointers to
Nondefault Constructor:
o 6 parameters: , , , , ,
o Initialize all class private members
Destructor to deallocate the dynamic memory of
Accessors and mutators for
Accessors for
Mutators for such that the mutator receives two parameters and
initializes the pointers .
Please have it run for c++ visual studio. Thank you
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started