Question: I needed some help. I am in a beginning c plus plus class. These problems relate to Functions and have talked about (void) using visual

I needed some help. I am in a beginning c plus plus class. These problems relate to Functions and have talked about (void) using visual studios with #include
Write a program that simulates 10 flips of a coin. Every time heads comes up, the player wins S2; every time tails comes up, the player loses S1. Write a function CalculateTotal that adds up the player's winnings after 10 flips of the coin. 2A Write a program that helps an elementary school student learn addition. Use rand to produce two positive one-digit integers. It should then type a question such as "what is 6 plus 7?. The student then types the answer. Your program checks the student's answer. If it is correct, print "Very good!", then ask another addition question. If the answer is wrong, print "No. Please try again.". then let the student try the same question repeatedly until the student finally gets it right. a. Write a program that simulates rolling a pair of dice 10 times. Every time the sum is even the player wins $10; every time the sum is odd, the player loses $10. At the end, the program tells the player whether he won or lost and by how much. aC
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
