Write a program that simulates tossing a coin. Prompt the user for how many times to toss the coin. Code a method with no parameters that randomly returns either the String "heads"or the string "tails". Call this method in main as many times as requested and report the results.

Respuesta :

ijeggs

Answer:

please the answer is attached (I experienced some technical issues in trying to add.

Explanation:

see attached text

Ver imagen ijeggs

Answer:

The source code file for this question has been attached to this response for better formatting and readability. Please download it and go through the lines of code written there in.

Also, the code has been written in Java and contains comments explaining important segments of the code. Kindly read the comments carefully.

Ver imagen stigawithfun