Question: c++ About Ikea's loading dock make deliveries. Ikea has two type of vehicles that can make deliveries. Cars and Trucks. - A Truck can hold
c++
About Ikea's loading dock make deliveries.
Ikea has two type of vehicles that can make deliveries. Cars and Trucks. - A Truck can hold 950 pounds of cargo. - A Car can hold 300 pounds, but can't take any single item that is over 75 pounds.
Ikea sells two pieces of Furniture this summer. Bookcases weigh 100 pounds and Chairs weigh 40 pounds.
-The program needs to first ask if the user wants to load a Car or a Truck. -Then it needs to ask if they want to add a Bookcase or Chair repeatedly until they choose to quit. If the piece doesn't fit, then delete it and keep loading.
-After they quit, display the names of all of the furniture on the vehicle.
---------------------------------------------------- notes: use classes,add furniture to proper List<> in the vehicle, Do not think "A car can't load Bookcases". It is "a car can't load heavy things". Because I don't want to hardcode anything about bookcases. Next week I may add beds or something to this program. If cars explicitly checked for bookcases, it would be crushed under a bed or whatever furniture that I may add.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
