· Design a program for a trucking company that has 4 trucks in its fleet. Each t
ID: 3622584 • Letter: #
Question
· Design a program for a trucking company that has 4 trucks in its fleet. Each truck is identified by a number from one to 4 and has a maximum weight allowance.· Store the data in an array (you may use 2 parallel arrays or a matrix)
Truck Number Maximum Weight Limit
1 50000
2 25000
3 20000
4 35000
· 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 number and the loaded weight.
· The program must be able to loop an indeterminate number of times.
· Use a boolean function to determine if the weight is acceptable
Explanation / Answer
Dear, Here is the code //header files // use the correct preprocessor directives for input/output #include using namespace std; // function prototypes /* The function instruct describes the use and purpose of the program. */ void instruct() { coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.