Question: Please use c++ to answer 6. Write a program that simulates coin tossing. For each toss of the coin the progra should print Heads or
6. Write a program that simulates coin tossing. For each toss of the coin the progra should print Heads or Tails. Let the program toss the coin 100 times and count the number of times each side of the coin appears. Print the results. The program should call a separate function flip that takes no arguments and returns 0 for tails and 1 for heads 7. Write a program that will help an elementary school student learn multiplication. Use rando function to produce two positive one-digit integers. It should then type a question such as: How much is 6 times 7? The student the types the answer. If the answer is wrong, print "No. Please try again." And then let the student try the same question again repeatedly until the student finally gets it right
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
