Question: This program is a simple application that will randomly return Heads or Tails. To calculate, a random number between 1 and 100 (inclusive) is generated

 This program is a simple application that will randomly return Headsor Tails. To calculate, a random number between 1 and 100 (inclusive)is generated and if the number is 51 or greater then Tails

This program is a simple application that will randomly return Heads or Tails. To calculate, a random number between 1 and 100 (inclusive) is generated and if the number is 51 or greater then Tails is reported. Otherwise heads is reported. SPECIFICATIONS - Starter code has been provided for this lab. - Add a comment with your name, date, and program description at the top! - There is no seed for the random number so code will be evaluated manually. ==== Coin Flipper ===== Heads ==== Coin Flipper ==== Tails STARTER CODE You may use the following code as starter code. You will need to change the comments (for instance, your name and the date). ww.calculator.net/calorie-calculator.html Copy this code \# FILE NAME - coin_toss.py \# NAME - \# DATE - \# DESCRIPTION import random def main () : coin_toss () def coin_toss(): print (' ===== Coin Flipper ===== ) main() This program is a simple application that will randomly return Heads or Tails. To calculate, a random number between 1 and 100 (inclusive) is generated and if the number is 51 or greater then Tails is reported. Otherwise heads is reported. SPECIFICATIONS - Starter code has been provided for this lab. - Add a comment with your name, date, and program description at the top! - There is no seed for the random number so code will be evaluated manually. ==== Coin Flipper ===== Heads ==== Coin Flipper ==== Tails STARTER CODE You may use the following code as starter code. You will need to change the comments (for instance, your name and the date). ww.calculator.net/calorie-calculator.html Copy this code \# FILE NAME - coin_toss.py \# NAME - \# DATE - \# DESCRIPTION import random def main () : coin_toss () def coin_toss(): print (' ===== Coin Flipper ===== ) main()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!