Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 862 results for
tails
- Page 1
Re: Advanced Network Related Question Regarding Network Namespaces
Hardware and Software
Networking
3 Years Ago
by Tcll
tails
isn't bad :) but I wouldn't call it good … for virtualization, buuuut doesn't have as much security as
Tails
. and btw, yes, dropping unsolicited packets is my intent, and… also is it possible to have it nuke itself like
Tails
so a restart can rebuild the VM based on configs…
TAILS The Amnesic Incognito Live System
Hardware and Software
Linux and Unix
10 Years Ago
by elptuxman
Have downloaded and burned
TAILS
both as a DVD and a booting USB stick. Other …
Heads and Tails Game
Programming
Software Development
13 Years Ago
by aree
…random_integer; cout << "THE GAME OF HEAD OR
TAILS
" << endl; cout << "&… a++) { cout << "Call it, Heads or
Tails
?" << endl; cout << "h… for heads t for
tails
" << endl; cin >> guess;…
Re: Heads and Tails Game
Programming
Software Development
13 Years Ago
by daviddoria
… no_of_plays; a++) { cout << "Call it, Heads or
Tails
?" << endl; cout << "h for… randomCoin; if (random_integer == 1) { cout << "coin was
tails
" << endl; randomCoin = 't'; } if (random_integer == 0) { …
Max Consecutive Heads/Tails
Programming
Software Development
17 Years Ago
by anandarose
… the result of each flip whether it's heads or
tails
. I have all of that done i can't figure… step which is to display the maximum consecutive heads and
tails
that appear in the results from the coin toss'. Here… I have so far: [code] '10/11/2006 'Heads or
tails
program INPUT "How many times do you want to…
Re: Max Consecutive Heads/Tails
Programming
Software Development
17 Years Ago
by Yankie Dave
…' Show Tail LET tcount = tcount + 1 ' and increase
tails
counter ' Now we make sure we have a value in…we check if it's a run of Heads or
tails
, if num = 1 then if consec > … is: " ;maxhcount PRINT "The maximum number of consecutive
tails
for " ; flipq; " coin flips is: "…
Coin Toss Simulation, getting all Tails and one Heads
Programming
Software Development
17 Years Ago
by Rickenbacker360
… between 0 and 1 and they represent the heads and
tails
respectively. If it's heads print H if it's…
tails
print T. [code] [COLOR=black]#include<iostream>[/COLOR] [… when I run the program it always gives me all
Tails
and one head. So if you have any ideas as…
To create a game of Heads or Tails against the computer.
Programming
Software Development
15 Years Ago
by turbomen
…. Write a program that asks the user for Heads or
Tails
, then simulates a toss of a coin and then tells… coming out as zero Ask the user for Heads or
Tails
INPUT guess Generate a random number less than 2 call…
Re: Max Consecutive Heads/Tails
Programming
Software Development
17 Years Ago
by anandarose
… appreciated. Ananda [inlinecode] 'Ananda Bennett '10/11/2006 'Heads or
tails
program INPUT "How many times do you want to… is: " ;maxhcount PRINT "The maximum number of consecutive
tails
for " ; flipq; " coin flips is: " ;maxtcounta [/inlinecode…
Help Programming a heads or tails game in python
Programming
Software Development
13 Years Ago
by ITGeEk2020
… the game to ask the user to choose heads or
tails
, then a coin flips and chooses either one randomly. If…
Re: Help Programming a heads or tails game in python
Programming
Software Development
13 Years Ago
by vegaseat
… rn for k in range(16): print rn.choice(['heads', '
tails
']) [/code]
Re: heads or tails
Programming
Software Development
15 Years Ago
by Aia
If I am making heads or
tails
of what you're saying what you want it is called permutation. There's lots of algorithms out there for it. Use you favorite search engine.
Re: Flipping two coins.
Programming
Software Development
14 Years Ago
by sknake
…:
Tails
[10] Side: Heads [11] Side:
Tails
[12] Side:
Tails
[13] Side: Heads [14] Side:
Tails
[15] Side:
Tails
[16] Side:
Tails
[17] Side:
Tails
[18] Side:
Tails
… [19] Side:
Tails
[20] Side…
How do I finish this code?
Programming
Computer Science
13 Years Ago
by anthonyjava
…toss5, toss6, toss7, toss8; int heads,
tails
; double percentHeads, percentTails; System.out.println(&… heads); System.out.println("Number of
tails
" +
tails
); System.out.println("Percent heads: &…; + percentHeads); System.out.println("Percent
tails
: " + percentTails); System.out.println…
Coin Flip Emulator
Programming
Computer Science
7 Years Ago
by i.
…heads. Count the number of times the result is
tails
." I am using Flowgorithim (a flowchart and…so far I have: Declare Integer heads Declare Integer
tails
Declare Integer flipCoin Declare Integer count Display "This…: ", heads Display "Total number of
tails
: ",
tails
Simply, I am confused on how to total up…
so close to being done need advice
Programming
Software Development
16 Years Ago
by jrice528
… int main() { // Variables unsigned toss; unsigned heads = 0; unsigned
tails
= 0; srand(time(0)); cout<< "Please enter… i = 0; i < toss; i ++) { if (rand() % 2) {
tails
++; } else { heads ++; } } // How many times the coin hit heads and…
Re: so close to being done need advice
Programming
Software Development
16 Years Ago
by jrice528
…Variables unsigned toss; unsigned heads = 0; unsigned
tails
= 0; srand(time(0)); cout<&…lt; toss; i ++) { getFlip(); if (
tails
== 0)
tails
++; else heads++; } // How many times the…0; } // function flip // returns 0 for
tails
and 1 for heads unsigned getFlip() { return (…
Coin Toss Program
Programming
Software Development
16 Years Ago
by chocl8drop
…int flip(); int main() { int coinToss; int heads,
tails
; heads = 1;
tails
= 0; coinToss = 100; for (int toss = 0…{ flip(); if (toss == 1) heads = heads + 1; else
tails
=
tails
+ 1; } cout << "Heads appear " <…times.\n"; cout << "
Tails
appear " <<
tails
<< " times.\n";…
Coin simulate
Programming
Software Development
14 Years Ago
by Mclovin1234
…int main() { double heads = 0; double
tails
= 0; int coin; srand (time(0…case 1: ++heads; break; case 2: ++
tails
; break; default: cout <<"?"…
Re: Coin simulate
Programming
Software Development
14 Years Ago
by Clinton Portis
… method of keeping record of how many heads and/or
tails
have appeared. Couple of solutions: first, try saving the return… negative result which may confuse the user double total = heads -
tails
; ... ... ... if(choice == heads) return win; else return lose; [/CODE] Another…
Coin flip winnings
Programming
Software Development
14 Years Ago
by Mclovin1234
… : 3 heads has been flipped (3 * 2) and 1
tails
(-1) (6 - 1 = 5 ) ) i want to…times heads by 2 and then subtract how many
tails
has been flipped but what i get is … (int,int); int main() { int heads = 0; int
tails
= 0; int coin; srand (time(0)); for (int flip…
Re: Coin Flip Emulator
Programming
Computer Science
7 Years Ago
by AssertNull
…, that it always going to be heads = 0 and
tails
= 1. It'll never change! Hence the problem. Display…heads: ", heads Display "Total number of
tails
: ",
tails
heads is the total number of heads in 50 flips… the time this printout happens. Or does heads and
tails
mean something different? Hard to say since the names…
Re: Coin Flip (Python Newbie)
Programming
Software Development
15 Years Ago
by Arrorn
….write('H\n') time.sleep(.2) counter += 1 else:
tails
+= 1 if
tails
> 0: print "T" f.write('T… on heads ' + repr(heads) + ' times.' ttot = 'The coin landed on
tails
' + repr(
tails
) + ' times.' hper = 'The coin landed on heads ' + repr(heads…
Coin flipping program, so close to finishing
Programming
Software Development
18 Years Ago
by Savage221
…cstdlib> using namespace std; int heads = 0,
tails
= 0, cointoss; int flip(); int main() { …lt; endl; cout << "
Tails
= " <<
tails
<< endl; return 0; }… else { cout << "T ";
tails
++; } } [/CODE] the other way I was doing …
VB 2008 help in displaying images
Programming
Software Development
15 Years Ago
by rickbill
…e As System.EventArgs) Handles MyBase.Load heads = 0
tails
= 0 totals = 0 End Sub Private Sub Button1_Click(…heads = heads + 1 THeads.Text = heads Else
tails
=
tails
+ 1 Ttails.Text =
tails
End If totals = totals + 1 Ttotal.Text = …
c++ cointoss help neede plzzzzzzz
Programming
Software Development
14 Years Ago
by kele1
…(); int main(void) { int heads = 1; int
tails
= 0; int coinToss = 100; int face; for …toss++) { flip(); if (toss == 1) heads++; else
tails
++; } printf("%s%5s\n", "face"…;, " heads or
tails
"); printf(" heads%5d\n",…
Re: Coin flip winnings
Programming
Software Development
14 Years Ago
by Mclovin1234
…; int calculateTotal (int,int); int main() { int heads = 0; int
tails
= 0; int coin; srand (time(0)); for (int flip = 1… +rand()%2; switch (coin) { case 1: ++heads; break; case 2: ++
tails
; break; default: cout <<"?"; } } calculateTotal (heads…
need some help cant find the error !!!!
Programming
Software Development
10 Years Ago
by samer.aboufakher.3
…;endl; else cout<<"\nCoin1:
Tails
"<<endl; if(coin2==0) …lt;endl; else cout<<"Coin3:
Tails
\n"<<endl; int countheads =…;endl; else cout<<"\nCoin1:
Tails
"<<endl; if(coin2==0)…
Re: Coin Flip Emulator
Programming
Computer Science
7 Years Ago
by AssertNull
If flipCoin ==
tails
Then Set flipCoin =
tails
Look at this code. Does it do anything? If not, … to 50 Set heads = 0 Set
tails
= 1 Think about the above. If heads and
tails
are the totals (and they are…
Re: error in code ?
Programming
Software Development
12 Years Ago
by jojodeco
…flip(); int main() { int rand(); int coinToss; int heads,
tails
; heads = 1;
tails
= 0; coinToss = 10; for(int loop=0; loop&…; coinToss; toss++) { flip(); if (flip()== 1) heads = heads + 1; else
tails
=
tails
+ 1; } if (flip() == 1) { heads++; cout << "…
1
2
3
15
Next
Last
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