Question: please write in Python language Write, test and document a Python program, in a file called Packagesont ruck.py, to solve the following problem. The post

please write in Python language
 please write in Python language Write, test and document a Python

Write, test and document a Python program, in a file called Packagesont ruck.py, to solve the following problem. The post office is sending packages to the airport to be shipped to different zones in NL. Their regular transportation system broke so they to load a single rental truck to transport the packages. The capacity of the rental truck is given, as input, in pounds. Given the weight of each package (in pounds, weight will vary per package), the package ID number and the name of the zone (East, West, South, North) that the package needs to be sent to, count and display the number of packages that can be loaded on the truck without exceeding the wei Also, print the information for each package that will be loaded onto the truck, the total number of packages bound for each zone and the final count of all the packages on the truck. Note that if the weight of the next package would put the weight limit for the truck over the capacty, then that package should not be loaded on the truck and the program should stop accepting input. ght capacity. For example, if the input values are as follows: west 325 tast 18 South North (thts witt not actuat y be read t) The input prompts, input and output from the program would be as follows (input shown in blue): Please enter the weight linit of the truck: 1ee0 Please enter the weight of a package: 10 Please enter the package ID nunbers 15 Please enter the zonei tast The follouing package is on the truck ptg No. , 15 , Zone " tast , PkgEt-100.0 Please enter the weight of a package: 500 Please enter the package ID nunber: 11 Please enter the zone: west The following package is on the truck: Please enter the veight of package: 325 ,lease enter the package # number: 12 Please enter the zonei tast The folloking package is on the trucks Please enter the ?"ight of a package! 25 Please enter the package ED nunber: 18 Please enter the zone: South The following package is on the truck Please enter the weight of a package: ze 2 packages are on the truck for tast zone 1 packages are on the truck for west cone packages are on the truck for North tone . packages ane on the truck for South zone. 4 packages are loaded on the truct

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!