IS 300 - How do you simulate a 70% free throw shooter making

Question # 00657043 Posted By: dr.tony Updated on: 03/01/2018 02:26 PM Due on: 03/01/2018
Subject General Questions Topic General General Questions Tutorials:
Question
Dot Image

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.

Dot Image
Tutorials for this Question
  1. Tutorial # 00655993 Posted By: dr.tony Posted on: 03/01/2018 02:27 PM
    Puchased By: 6
    Tutorial Preview
    The solution of IS 300 - How do you simulate a 70% free throw shooter making...
    Attachments
    FreeThrow.docx (407.58 KB)
    Recent Feedback
    Rated By Feedback Comments Rated On
    Ma...089 Rating Instant and best chat service 04/25/2020
    N...i27 Rating Really appreciable tutorial service 04/27/2019

Great! We have found the solution of this question!

Whatsapp Lisa