Purchase Solution

C++ Flight class

Not what you're looking for?

Ask Custom Question

Write a C++ program that has a class called flight with the following attributes:

date, flight_no, from, to, seats, price.

Create an array of 3 objects of this class. Write a member function that asks the user for these values, 3 times and write a function that displays these values in a tabular form on the screen.

Purchase this Solution

Solution Summary

The solution implements member functions get_record, print_record and print_flight_table to achieve the tasks.

Solution Preview

Attached 305235.cpp gives a sample solution with member functions get_record to accept a flight record from user, and ...

Purchase this Solution


Free BrainMass Quizzes
C++ Operators

This quiz tests a student's knowledge about C++ operators.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Basic Networking Questions

This quiz consists of some basic networking questions.