Question: (6 points) Write and test a Matlab script requiring iteration. A shipping company loads its parcels onto a delivery truck, a delivery truck has a

 (6 points) Write and test a Matlab script requiring iteration. Ashipping company loads its parcels onto a delivery truck, a delivery truck

(6 points) Write and test a Matlab script requiring iteration. A shipping company loads its parcels onto a delivery truck, a delivery truck has a capacity of 2,000 lbs. (1 ton. Write a Matlab script (not a function that will a. prompt the shipping clerk for a parcel's weight as it is loaded onto the truck b. if it fits on the truck (not overweight) subtract that weight from the capacity to get the remaining weight capacity display the total weight loaded onto the truck display the remaining weight capacity of the truck And then do the above 4 steps again The shipping clerk can stop the prompts by entering a weight of zero the script will stop prompting the shipping clerk for additional parcel weights the script will print the total weight on the truck. Assume valid inputs. Here is a sample complete run (user input is underscored

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!