Create the following: 1. Class Shipment (the node) that includes four instance variables: int Ship No; // the Shipment N

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Create the following: 1. Class Shipment (the node) that includes four instance variables: int Ship No; // the Shipment N

Post by answerhappygod »

Create The Following 1 Class Shipment The Node That Includes Four Instance Variables Int Ship No The Shipment N 1
Create The Following 1 Class Shipment The Node That Includes Four Instance Variables Int Ship No The Shipment N 1 (51.75 KiB) Viewed 45 times
Create the following: 1. Class Shipment (the node) that includes four instance variables: int Ship No; // the Shipment No. String CustName; // the Customers name String Dest; // the Shipment Destination - DMM RUH, JED. char Status; //the Shipment status (P paid - Uuapaid) Shipment next; // points to the next Shipment Default and overloaded constructors - 2. Class Company that includes two instance variables: Shipment head; Shipment Tail; Your class should have the following: • A method that initializes the instance variables. void addShipment (int, String, String, char) creates and adds the Shipment's information ShipNo. CustName, Dest, and Status) in the singly linked list. void deleteShipment (int No) to delete a Shipment in the single linked list. • void printAllShipments prints all Shipments in the single linked list. void print UnShipments prints all the (Unpaid) Shipment in the single linked list (based on the status of the Shipment). void printRUHShipments prints all the Shipment in (Riyadh) destination in the single linked list (based on the Destination of the Shipment), • int count AllShipments 0 counts the number of Shipments in the list. . .
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply