subject

Using c++ write a program that simulates flipping a coin repeatedly and continues until three consecutive heads
are flipped. at that point, your program should display the total number of coin flips that were made
and the average number of heads flipped.
#1 – write a function string getname() to read in the user’s name from the keyboard
#2 – write a function char getgender() to read in the user’s gender from the keyboard
#3 – write a function bool flipcoin() to flip the coin and return true for heads and false for tails
(refer to blackboard for random number generation details)
#4 – write a function float calcaverageheads(int hcnt, int tcnt) to calculate the
average of heads vs. total flips

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 02:30
Which option completes the explanation for conflict of interest in an organization
Answers: 1
question
Computers and Technology, 25.06.2019 03:30
Kou converged his word document to a powerpoint document. when he received the powerpoint, he was missing material. which most likely explains why the material was missing? a it did not have a proper heading b he incorrectly copied and pasted it c he did not save his document properly d there was not enough space in powerpoint
Answers: 1
question
Computers and Technology, 25.06.2019 07:00
Quick styles allow you to format an entire document quickly? t/f
Answers: 1
question
Computers and Technology, 25.06.2019 09:00
(environmental science semester 1) which statement best describes the limits of science? a. science cannot answer any abstract questions. b. when used properly, science can answer any questions. c. usually science can answer only mathematical questions. d. science cannot answer religious questions.
Answers: 2
You know the right answer?
Using c++ write a program that simulates flipping a coin repeatedly and continues until three consec...
Questions
Questions on the website: 13722360