//[url removed, login to view] the program below so to display on screen each coin flip. //[url removed, login to view] two boolean variables with he second variable //to store the outcome of the flip. //[url removed, login to view] the user fails to enter heads or tails, have the program prompt //user to re-enter until the proper input is made (heads or tails or exit). //use jpb package for program operations (create a //folder called jpb and place the four attached zipped files //inside of it import jpb.*; public class Coinflip2 { public static void main (String[] args) { boolean headsWasSelected = false; // Prompt user to guess heads or tails [url removed, login to view]("Enter heads or tails: "); String userInput = [url removed, login to view](); if ([url removed, login to view]("heads")) headsWasSlected = true; else if (![url removed, login to view]("tails")) { [url removed, login to view]("Sorry, you didn't enter heads " + "or tails; please try again."); return; } //Choose a random number double randomNumber = [url removed, login to view]() ; //Determine whether user guessed correctly if (headsWasSelected && randomNumber < 0.5) [url removed, login to view](You win!"); else if (!headsWasSelected && randomnumber >= 0.5) [url removed, login to view]("You win!"); else [url removed, login to view]("Sorry, you loose."); } }

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.

## Platform

Use Java code to import jpb package.

Skills: Engineering, Java, MySQL, PHP, Software Architecture, Software Testing

See more: string source code java, tails, import files folder, php coin, create coin, screen flip, flip screen, random string, program coin change, java code change request, coin change, random number display, enter screen java, coin program, random number software, coin system, math java, flip software, php form random number, determine 2003, prompt exit, store java source code, java math, import variables php files, folder variable

About the Employer:
( 59 reviews ) United States

Project ID: #2916293

Awarded to:


See private message.

$4 USD in 14 days
(65 Reviews)

2 freelancers are bidding on average $8 for this job


See private message.

$12.75 USD in 14 days
(111 Reviews)