Question: c++ pleasw Create a class called Journey that contains the following private data members: city the city to which a person is traveling of type
c++ pleasw Create a class called Journey that contains the following private data members: city the city to which a person is traveling of type string, travel Time the number of hours to reach the city of type double, and points the number of points the traveler gets for going through that journey of type integer. The class also contains the following member functions sero), gero), prinro), and calculatePoints(). The following program produces the given sample of input/output: int main Journey traveler(arraySize); string destination: int numberOfJourneys, tPoints; double time, sum=0; cout> numberOfJourneys: for(int i=0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
