Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Sample Output The vehicle is in chamber ( 0 , 0 ) . The ore in this chamber is 2 . 3 tons. Load the
Sample Output
The vehicle is in chamber
The ore in this chamber is tons.
Load the ore? :
The ore in this chamber is tons.
Enter the amount to load: tons.
Input one of these choices :
That is the valid exit!
You are now in chamber
The ore in this chamber is tons.
Load the ore? :
Enter the amount to load: tons.
Input one of these choices :
That is the valid exit!
You are now in chamber
The ore in this chamber is tons.
Load the ore? :
Input one of these choices : W
That is the valid exit!
You are now in chamber
The ore in this chamber is tons.
Load the ore? :
Enter the amount to load: tons.
That amount is more than the ore in this chamber!
Enter the amount to load: tons.
Input one of these choices :
Not a valid exit for chamber The valid exit is:
Input one of these choices :
That is the valid exit!
You are now in chamber
The amount of ore in the vehicle is: tons.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started