Question: 8a. Critical Thinking Exercise: Design a program for a trucking company that has seven trucks in its fleet. Each truck is identified by a number

 8a. Critical Thinking Exercise: Design a program for a trucking company
that has seven trucks in its fleet. Each truck is identified by

8a. Critical Thinking Exercise: Design a program for a trucking company that has seven trucks in its fleet. Each truck is identified by a number from one to seven and has a maximum weight allowance, which has already been determined. Assign the maximum weight limit to each truck at initialization. Before a truck can begin its route it must be weighed to see if it falls within its weight allowance. Ask the user for the truck member and the loaded weight. Display a message indicating whether the truck falls in the allowable weight limit. Use the following values as maximum weight limits, antiepthe weigh-in values for each truck. Truck Weigh-In (in lbs) Truck Number Maximum Weight Limit (in lbs) 1 50,000 2 25,000 3 20,000 4 35,000 5 40,000 6 25,000 7 30,000 45,000 30,000 20,000 30,000 35,000 27,000 20,000 Write your design in the following space. Your design should be a list of C++ comments without any code. #include #include using namespace std; 7/function prototype void fill(ifstream&, int[], int); void print(ofstream&, int[], int); bool search(int[], int, int, int); int main() { ifstream fin; ofstream fout; int truckNum, weight; const int SIZE = 7; int truck [SIZE]; } // FUNCTION DEFINITIONS //*write function definitions for the fill and print functions */

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!