Question: 2 . Create an IPO Design / Algorithm describing the steps you would follow to re - calculate a baseball player s batting average on

2. Create an IPO Design/Algorithm describing the steps you would follow to re-calculate a baseball players batting average on the scoreboard as they play during one game.
Most people probably think that a batting average is calculated as the number of Hits a player has, divided by the number times a player has shown up at the plate (Plate Appearances), which is not correct. The Batting Average actually is calculated as (Hits) divided by (At Bats) where At Bats=(the number of Plate Appearances) minus (Walks). If a player had 100 Plate Appearances, 20 Walks and 40 Hits, their Batting Average would be:
40 Hits divided by (100 Plate Appearances 20 Walks)=.500
Assume a player starts out with statistics from previous games of 66 Plate Appearances, 6 Walks and 20 Hits and you are to calculate the players starting batting average and show it on the scoreboard initially, and then update their batting average on the scoreboard after each plate appearance during the game, with your algorithm reacting to what happened during their plate appearance and recalculating the batting average each time. To simplify this a bit, assume the only things that can happen during a plate appearance are 1) a hit or 2) a walk or 3) a strikeout. Your algorithm will need to be able to recalculate the batting average after each plate appearance - as part of that it will need to have steps related to determining what to do if a hit / walk / or strikeout occurs in each appearance. Assume 4 plate appearances in the game.
This is NOT a one-line solution like just calculate the batting average think of the steps you would take to show the initial batting average on the scoreboard and then update the scoreboard batting average after each plate appearance, during one game.
Be detailed and think of/list the detailed steps that are involved. 10 Points.
3. Create an IPO Design/Algorithm for 2 commands or questions you might say to a Virtual Assistant and what it has to do/needs to know in order to respond to you.
Virtual Assistants are basically devices that are programmed to respond to your requests by answering a question or performing an action. You may have heard of Siri, Alexa, Cortana, or the Google Assistant. Think about Virtual Assistants that you may have used on a mobile device or at home (if not, review some articles about Virtual Assistants), and a question you might ask it or a command you might give it. Create an algorithm describing the steps the Virtual Assistant needs to take to respond to you; also describe what other data the Virtual Assistant might already need to know/already have setup, or additional questions the Virtual Assistant might ask you, if it needs to clarify what you are looking for.
For example, Alexa, how long is my commute to work going to take? this might result in Alexa asking you: When are you leaving?, you answer: 8:30am- then Alexa can start Alexas response requires that Alexa already knows where you live (GPS coordinates), where you work (GPS coordinates) in order to determine what the route is (via already knowing roads and maps in your area), then Alexa needs to find out what the current traffic is (via knowing mobile phone movement of current travelers on that route), as well as the current time, to determine how long it takes or when you will arrive. There is quite a bit of activity and data gathering that goes on in order to respond to you.

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!