Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

We have a scale and 7 balls. 1 ball is heavier than all the
rest. How to determine the heaviest ball with only 3
possible weighing attempts?

Answer Posted / adub

12 vs 34
12 vs 56
1 vs 5

1) Establish a control group by weighing 12 vs 34. If they
are equal then 1234 are all control. If they are not equal
than 567 are all control.

2) Weigh two of the non-control group against two of the
control group. If they are equal than the other non-control
balls contain the outlier. If they are not equal than you
have determined heavier/lighter and narrowed it down to 2 balls.

3) Weight one of two balls against the control to find
which one is the outlier. example 1 vs 5. If equal then
you know it's the other ball.

note: There is one case where you would have to check
results from the first weighing to find out heavier/lighter.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a program to find 2 power of a 5digit number with out using big int and exponent ?

2326


Why do we use oop?

1047


What are constructors in oop?

1089


What is solid in oops?

1044


what type of questions

2068


Why do we use polymorphism in oops?

986


Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.

3038


How to hide the base class functionality in Inheritance?

1093


Why is there no multiple inheritance?

956


Why do we use polymorphism?

1015


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

2227


What is difference between multiple inheritance and multilevel inheritance?

1108


what is difference between class template and template class?

2598


What is basic concept of oop?

1107


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

1907