Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Solve This Also

 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The pharmacy has an old scale which has only two measuring weights 30 grams and 5 grams. How can you divide 300 grams of powder medicine into 3 groups, one 150 grams, one 100 and the other 50 grams. You can only weigh 3 times.
 
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Keep 30 gms in one pan (pan A) of the weighing scale/balance and keep 5 gms in another (pan B). Weigh powder in pan B. So effectively you have 25 gms powder now.
2. Keep 25 gms powder & 30 gms in pan A and 5 gms in Pan B. Weigh powder in pan B. You have effectively 50 gms powder in pan B now.
3. Keep 25 gms & 50 gms powder along with 30 gms weight in pan A and 5 gms weight in pan B. Measure 100 gms powder in Pan B now.

This is your 100 gms pack at step 3. Step 2 gave you 50 gms pack. And what is left is 150 gms pwder out of 300 gms total.

- Manish
 
You have to be odd to be #1 - Seuss. An odd little ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic