Create a class called ship that incorporates a ships number and location in longitudes and latitudes. A
Fantastic news! We've Found the answer you've been seeking!
Question:
Create a class called ship that incorporates a ship’s number and location in longitudes and latitudes. A member function of the ship class should get a position from the user and store it in the object; another should report the serial number and position. Write a main() program that creates three ships, asks the user to input the position of each, and then
displays each ship’s number and position.
Related Book For
Java Software Structures Designing And Using Data Structures
ISBN: 9780133250121
4th Edition
Authors: John Lewis, Joe Chase
Posted Date: