Question
Please help me on creating flowchart and pseudocode. You were given five cubes and you were tasked by your Physics course instructor to determine the
Please help me on creating flowchart and pseudocode.
You were given five cubes and you were tasked by your Physics course instructor to determine the one cube that weighs greater than the rest. Four of the cubes have the same weight. You are only given to chances to weigh a set of cubes. After the second weigh, you need to accurately discern the one cube that weighs more
To weigh the five cubes only up to two times to determine which one weighs more, you will need to weigh for the 1st round four cubes by twos and leave one cube aside.
If the two parts of weighed cubes are equal, then the cube we need to determine is the fifth cube the one we set aside.
If not, then one of the four cubes we weighed is the one we need. To do this, we will disregard the pair that weighs lesser and focus on the pair that weighs more. We will weigh that pair for our 2nd round, and the cube that weighs more than the other is the cube that we need.
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