Question: Lists not _ on _ board and on _ board are read from input, representing passengers waiting to board a bus and passengers on the
Lists notonboard and onboard are read from input, representing passengers waiting to board a bus and passengers on the bus, respectively. Then, passengerleft is read from input. Perform the following tasks:
Remove passengerleft from notonboard.
Add all the remaining elements of notonboard to the end of onboard.notonboard inputsplit
onboard inputsplit
passengerleft input
printfPassengers waiting at a bus stop: notonboard
printfPassengers on board: onboard
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
