Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
Write a complete Java program to: Read in a set of shipments (using Scanner and a while loop), print each one out, and print a count of accepted...
Write a complete Java program to:
Read in a set of shipments (using Scanner and a while loop), print each one out, and print a count of accepted shipments and total weight and total volume.
The loop must quit when a shipment number of -1 is read.
Shipment fields are shipment number (int) , weight (double) and volume (double).
Reject and print each rejected shipment along with an error message if weight is negative or zero or greater than 70 pounds, or if volume is negative or zero or greater than 1000 cubic inches.