Question: Q1. Write a program to help a local rental company identify which of its vehicles are suitable for hauling a specified load. Inputs to the


Q1. Write a program to help a local rental company identify which of its vehicles are suitable for hauling a specified load. Inputs to the program are: the name of the file containing vehicle data, the estimated weight of the load in pounds, and the estimated volume of the load in cubic feet. The program should correctly read the data file using a Scanner and print information on vehicles that can accommodate the load. A vehicle can accommodate a given load only if both the estimated weight and volume of the load do not exceed the maximum cargo weight and volume specifications of the vehicle. The data items are arranged as follows for each vehicle stored in the file: vehicle code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
