Question
Need Python code for below problem ------------------------------------------------------------------------------------------- The GoCargo Carriers has stepped up in digitizing their logistics. They have planned to locate each cargo inside
Need Python code for below problem
-------------------------------------------------------------------------------------------
The GoCargo Carriers has stepped up in digitizing their logistics. They have planned to locate each cargo inside a container which makes it easier for them to identify the probability of a cargo getting damaged. Cargos in the container are filled level by level, first length-wise, then breadth-wise and the coordinates start from (0,0,0). Given the length of the container, the length of the cargo and the cargos number in the container, determine the coordinates of the cargo and print if there is a possibility that it would get damaged.
Note: 1. The cargo and the container are cubical in shape. 2. A cube has 6 faces. 3. A Cargo will get damaged if it touches any of the 6 faces in the Container. Input Format : Input consists of 3 integers which corresponds to length of the container, length of the cargo and the cargos number, respectively. Output Format : The first line of the output consists of three integers seperated by commas and enclosed in brackets, which corresponds to the x, y and z cordinates of the cargo in the container. The second line of the output consists of a string "Yes", if there is a possibility that it would get damaged, else "No". Refer to sample input and output for formatting specifications. Sample Input 1: 15 3 108 Sample Output 1: (2,1,4) Yes Sample Input 2: 15 3 32 Sample Output 2: (1,1,1) No
-----------------------------------------------
--------------------------------------------------------------
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