I need a step by step explanation on how to create this project.      Project: Flight Time   Problem Description: Design two classes: Flight and Itinerary. The Flight class stores the information about a flight with the following members: A data field named flightNo of the String type with getter function. A data field named departureTime of the GregorianCalendar type with getter and setter functions. A data field named arrivalTime of the GregorianCalendar type with getter and setter functions. A constructor that creates a Flight with the specified number, departureTime, and arrivalTime. A function named getFlightTime() that returns the flight time in minutes.   The Itinerary class stores the information about the itinerary with the following members: A data field named flights of the List type. The list contains the flights for the itinerary in increasing order of departureTime. A constructor that creates an Itinerary with the specified fights. A function named getTotalTime() that returns the total travel time in minutes from the departure time and the first flight to the arrival time of the last flight in the itinerary.   Implement these two classes and use the following program to test these classes. int main() { vector flights; flights.push_back(Flight("US230", Time(2014, 4, 5, 5, 5, 0), Time(2014, 4, 5, 6, 15, 0))); flights.push_back(Flight("US235", Time(2014, 4, 5, 6, 55, 0), Time(2014, 4, 5, 7, 45, 0))); flights.push_back(Flight("US237", Time(2014, 4, 5, 9, 35, 0), Time(2014, 4, 5, 12, 55, 0))); Itinerary itinerary(flights); cout << itinerary.getTotalTravelTime() << endl; cout << itinerary.getTotalFlightTime() << endl; return 0; }   Analysis: (Describe the problem, including input and output in your own words.)                       Design: (Describe the major steps for solving the problem.)               Coding: Using Visual Studio, create the following program. Include the following in the .cpp file: Using comments at the top of the file, your first and last name,  date, and purpose of the program Meaningful comments to explain the code throughout the program. Place your initials in front of all variable names (ex. BWflightNo) Place your initials in front of all function names (ex. BWgetTotalTraveltime()) Submit the FirstNameLastNameAnagrams.cpp (BridgetWillisFlightTimes.cpp) file to the drop box     Testing: (Describe how you test this program)               Submit the following items:   Submit the Word file Submit the .cpp file

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

I need a step by step explanation on how to create this project. 

 

 

Project: Flight Time

 

Problem Description:

Design two classes: Flight and Itinerary. The Flight class stores the information about a flight with the following members:

  1. A data field named flightNo of the String type with getter function.
  2. A data field named departureTime of the GregorianCalendar type with getter and setter functions.
  3. A data field named arrivalTime of the GregorianCalendar type with getter and setter functions.
  4. A constructor that creates a Flight with the specified number, departureTime, and arrivalTime.
  5. A function named getFlightTime() that returns the flight time in minutes.

 

The Itinerary class stores the information about the itinerary with the following members:

  1. A data field named flights of the List<Flight> type. The list contains the flights for the itinerary in increasing order of departureTime.
  2. A constructor that creates an Itinerary with the specified fights.
  3. A function named getTotalTime() that returns the total travel time in minutes from the departure time and the first flight to the arrival time of the last flight in the itinerary.

 

Implement these two classes and use the following program to test these classes.

int main()

{

vector<Flight> flights;

flights.push_back(Flight("US230",

Time(2014, 4, 5, 5, 5, 0),

Time(2014, 4, 5, 6, 15, 0)));

flights.push_back(Flight("US235",

Time(2014, 4, 5, 6, 55, 0),

Time(2014, 4, 5, 7, 45, 0)));

flights.push_back(Flight("US237",

Time(2014, 4, 5, 9, 35, 0),

Time(2014, 4, 5, 12, 55, 0)));

Itinerary itinerary(flights);

cout << itinerary.getTotalTravelTime() << endl;

cout << itinerary.getTotalFlightTime() << endl;

return 0;

}

 

Analysis:

(Describe the problem, including input and output in your own words.)

 

 

 

 

 

 

 

 

 

 

 

Design:

(Describe the major steps for solving the problem.)

 

 

 

 

 

 

 

Coding: Using Visual Studio, create the following program. Include the following in the .cpp file:

  • Using comments at the top of the file, your first and last name,  date, and purpose of the program
  • Meaningful comments to explain the code throughout the program.
  • Place your initials in front of all variable names (ex. BWflightNo)
  • Place your initials in front of all function names (ex. BWgetTotalTraveltime())
  • Submit the FirstNameLastNameAnagrams.cpp (BridgetWillisFlightTimes.cpp) file to the drop box

 

 

Testing: (Describe how you test this program)

 

 

 

 

 

 

 

Submit the following items:

 

  1. Submit the Word file
  2. Submit the .cpp file
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 6 images

Blurred answer
Knowledge Booster
Unreferenced Objects
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education