Create an Account

Already have account?

Forgot Your Password ?

Home / Questions / Ask the user to enter a basketball player’s free throw percentage, eg 70% Your program wil...

Ask the user to enter a basketball player’s free throw percentage, eg 70% Your program will simulate

Ask the user to enter a basketball player’s free throw percentage, eg 70% Your program will simulate the player playing 5 games, each game making 10 free throws Display the result of the free throws in each game At the end, print a summary that shows the best/worst game for this player, and the average free throw percentage of the 5 games

 

Question: How do you simulate a 70% free throw shooter making a free throw?

Hint: How about generating a number between 0-100, and checking if that number is less than or equal to 70 If so, you just made a free throw!

 

Below are a few screenshots of running this program several times with different inputs The format of your output should be similar like the ones that I showed below

 

Create zip file that has your Java source program and a word document with screenshots of program execution

 

 

 

 

Apr 24 2020 View more View Less

Answer (Solved)

question Subscribe To Get Solution

Related Questions