Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 79 results for
grains
- Page 1
Re: Change-a-Letter-or-Two-Game
Community Center
Geeks' Lounge
16 Years Ago
by jasimp
grains
Re: Grains of rice on a chessboard (Python)
Programming
Software Development
8 Years Ago
by vegaseat
… `2**(square-1)` and the number of total accumulated
grains
at this point is `(2**square) - 1` Here…rice on the first square of a chessboard two
grains
of rice on the second square and doubling …by vegaseat 13may2015 ''' for square in range(1, 64+1):
grains
= 2**(square-1) grains_sum = (2**square) - 1 …
Re: Grains of rice on a chessboard (golang)
Programming
Computer Science
8 Years Ago
by vegaseat
…// = 740 million tonnes // = 1628000000000 pounds riceProduction2012 := 1628000000000.0 // assume 29000
grains
in 1 pound of rice grainsPerPound := 29000.0 totalGrains := math….Pow(2, 64) - 1 fmt.Printf("Total
grains
of rice = %.0fn", totalGrains) fmt.Println("Assume 29000…
Re: Grains of rice on a chessboard (golang)
Programming
Computer Science
8 Years Ago
by vegaseat
… to end, at what square would you have enough
grains
to reach the moon? Assume that a grain of rice … the moon is about 384,400 km. The number of
grains
on each square 1 to 64 is equal to `math….Pow(2, (square-1))` and the number of total accumulated
grains
at this point is `math.Pow(2, square) - 1…
Re: Grains of rice on a chessboard (Python)
Programming
Software Development
8 Years Ago
by vegaseat
Ah, replace '^' with '**'. I am a little dense sometimes, now I see the humor ... square_number = 4
grains
= (2**square_number) - 1 if
grains
== 15: print("It's a fortnight!") Note: square number 4 should have 8
grains
on it
Re: Grains of rice on a chessboard (Python)
Programming
Software Development
8 Years Ago
by rubberman
…) - 1. I leave the computation for the total number of
grains
on all squares up to the max as an exercise…
Grains of rice on a chessboard (Python)
Programming
Software Development
8 Years Ago
by vegaseat
… rice put on the first square of the chessboard, two
grains
on the second, then doubling it for every remaining square…
Grains of rice on a chessboard (golang)
Programming
Computer Science
8 Years Ago
by vegaseat
… rice put on the first square of the chessboard, two
grains
on the second, then doubling it for every remaining square…
Beginner sand timer help
Programming
Software Development
9 Years Ago
by bob.smithy.10
… Hint: You know the height and the total amount of
grains
in the bottom half of the hourglass. (Note that the…left and to the right at this height. How many
grains
are not in the triangle? See the method getExtraGrains(int…hourglass. Hint: a triangle of height h contains h*h
grains
(=1+3+5+...+h). So determining the height when the…
Re: Beginner sand timer help
Programming
Software Development
9 Years Ago
by JamesCherrill
You have a variable that holds the amount of sand in the bottom half. I guess that would be measured in
grains
? What happens to that variable when 1 grain drops to the bottom? (If the answer seems too easy don't worry. It really is that easy!)
error with return
Programming
Software Development
14 Years Ago
by leegeorg07
…" def large_grains(): I = raw_input("Are the
grains
sand sized? (y/n)") if yn(I):…; def big_grains(): I = raw_input("Are the
grains
big enough to see? (y/n)") if…else: layer_grains() def gc(): I = raw_input("are there
grains
? (y/n)") if yn(I): big_grain() else:…
Re: chess game program
Programming
Software Development
10 Years Ago
by vegaseat
Hint ... grains_sum = 0
grains
= 1 for square in range(1, 64+1): print(square,
grains
) # test
grains
*= 2 grains_sum +=
grains
print(grains_sum) # test
Code Implementation
Programming
Software Development
13 Years Ago
by odonal01
… the item listed in denarii Example of the inventory list:
Grains
VII XXI Birds X ILX Slaves XXI XCL Wine XI… Name] [Unit cost in Decimal ] [Unit Cost in Roman] Example
Grains
3 III Birds 6 VI Slaves 7 VII Wine 11…
chess game program
Programming
Software Development
10 Years Ago
by Vinolia
… pay. Express your answer in pounds, assume there are 7000
grains
to a poundAs you know the inventor of the game… pay. Express your answer in pounds, assume there are 7000
grains
to a pound.please with this...
Selectively Printing only Certain Divs (javascript/css question)
Programming
Web Development
17 Years Ago
by Spycat
…;tr> <td> <p>A Few
Grains
of Salt</p> </td> <td…
Activity Diagram + Loops
Programming
Computer Science
15 Years Ago
by IrfanMulla
… I said think as if you are using threads. Parallelized
grains
of code must be independent. If you think about using…
Show Logo and Text using jQuery When Hover on Link
Programming
Web Development
10 Years Ago
by AycheKay
…;Bread and pancake mixes, hot and cold cereals, seeds and
grains
</p></div> <a href="…
Re: A grain of rice
Community Center
Geeks' Lounge
18 Years Ago
by Catweazle
The average wieight of rice
grains
can be increased by the use of ridge farming and … average grain weight. In these experiments, the average number of
grains
per ear in the ridge fields was 140–155 compared… 105–110 in flat fields. The average weight of 1000
grains
in the ridge fields was 27.5–28.4 g…
Re: Projects for the Beginner
Programming
Software Development
18 Years Ago
by vegaseat
… of rice on the first square of the chessboard, two
grains
of rice on the second and so on, doubling the…
grains
each time until all 64 squares of the chessboard were …'t count it myself, but there are 32,000,000
grains
of rice in a short ton (2,000 lbs). So…
Re: Help with calculator form
Programming
Web Development
12 Years Ago
by k9huey
… * 28.346; //convert gms 72.27*15.43209877 (
grains
per ounce) = wt in
grains
SR var Grains_Per_Ounce_Calc = Weight_In_Ounces_Calc * 15.4320987; //convert 553…="text" name="Grains_Per_Ounce">Weight in
Grains
per Ounce<br /> <input type="text…
Re: Smoking
Community Center
Geeks' Lounge
16 Years Ago
by sk8ndestroy14
… from vehicles, the minute spores floating, the dirt, the pollen
grains
etc. And BTW, its not only smoking but also any…: nothing you can do. Dirt: Keep the classroom clean. Pollen
grains
: Close the window. Plenty of reasons were already given for…
Re: Tech joke of the day !
Community Center
Geeks' Lounge
16 Years Ago
by Lardmeister
… thousands of rolls of toilet paper impregnated with highly radioactive
grains
of phosphorous designed to cling to bodily tissues; molecules of… these
grains
enter the body thru the most sensitive and personal tissues…
Re: Allegro 4.2.2 problems
Programming
Software Development
14 Years Ago
by kylelyk
… = create_bitmap(SCREEN_WIDTH, SCREEN_HEIGHT); //The enviornment buffer(for
grains
and elements to be painted on BITMAP *outbuf = create_bitmap…}else{ //This 'If' Statement makes sure the
grains
won't shuffle around on the ground.... if(getpixel(…
Re: Allegro 4.2.2 problems
Programming
Software Development
14 Years Ago
by kylelyk
… = create_bitmap(SCREEN_WIDTH, SCREEN_HEIGHT); //The enviornment buffer(for
grains
and elements to be painted on BITMAP *outbuf = create_bitmap…}else{ //This 'If' Statement makes sure the
grains
won't shuffle around on the ground.... if(getpixel(…
Re: Help with calculator form
Programming
Web Development
12 Years Ago
by Jon BH
… sphere (musket ball in grams) Note - For Ounces and
grains
use: 1000
grains
= 64.8 gms = 2.286 oz - show result 4…
Re: Help with calculator form
Programming
Web Development
12 Years Ago
by Airshow
….gr[/B] : the mass of a spherical lead shot in
grains
[*][B].gauge[/B] : the gauge (or bore), ie. the multiplicative… [*][I]Also I'd like to have the conversion to
grains
showing if possible[/I]. Easy [/LIST] [B]Airshow[/B…
Re: Random Facts
Community Center
Geeks' Lounge
8 Years Ago
by vegaseat
I googled it ... there are 29,000
grains
of rice in a pound of rice. More ... Worldwide Rice Production in 2012 was 1,628,000,000,000 pounds which means 47,212,000,000,000,000
grains
of rice. I hope someone counted them.
Re: Word Association Game
Community Center
Geeks' Lounge
21 Years Ago
by Xelfinn
[quote="Bob"]budweiser --> frog[/quote] frog -> hopps and
grains
....keeping the beer theme. And hopefully didn't mess this up.
Re: Word Association Game
Community Center
Geeks' Lounge
21 Years Ago
by aeinstein
hopps and
grains
--> barley
Re: RFID tags, big brother is watching?
Community Center
Geeks' Lounge
18 Years Ago
by jenniehanabusa
… tiny time pills. Like 'CONTACT' the ISP holds many tiny
grains
. Each grain is a combination skin sampler and RFID tag…
1
2
3
Next
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC