Question: Programming Exercise 6.5 Coin Toss, v.1.0 Purpose. Write your first computer game program, from scratch, using if-logic Pretend that you have been hired by the
Programming Exercise 6.5 Coin Toss, v.1.0 Purpose. Write your first computer game program, from scratch, using if-logic Pretend that you have been hired by the National Football League (NFL) to write a program to replace the coin toss. Name it coin Toss1.cpp. The output should be simple: either the word "Heads" or the word "Tails". There is no console input -- just run the program, and it says "Heads" or "Tails". Supplemental. Read about "randomizing" in www.rdb3.com/cpp/exercises/Gaming.supplemental.pdf Requirement. 1. Use the C++ library's random number generator, and include the srand statement so that the result is not the same every time you run the program. Program VO. Input: none. Output: either Heads or Tails. Example. Heads
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
