Question: This program use of C++, please. Thank you very much This program will consist of 2 different tasks. The program should have a menu letting
This program use of C++, please. Thank you very much
This program will consist of 2 different tasks. The program should have a menu letting the user decide which of the tasks they wish to execute. When the task is finished, the program should display the menu again. There should be an option for exiting the program as well. 1. Write a function that simulates coin tossing. For each toss of the coin, the program 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 after all the coins have been tossed. The program should call a separate function "flip" that takes no arguments and returns O for tails and 1 for heads If the program realistically simulates a coin flip, you should generally get a result of close to 50-50 2. Write a function that plays the game "Guess the Number". The games rules are: The computer picksa random in a range [1-1000]. The user then inputs a number. The program returns with either "correct", "too low", or "too high". Formatting and Commentary standards are enforced
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
