Question: THE GAME SCORING Create a Java program to simul ate some 2 team game. Ask the user to input the following information gN Game Name
THE GAME SCORING


Create a Java program to simul ate some 2 team game. Ask the user to input the following information gN Game Name t1N Team 1 Name t2N Team 2 Name nP of periods (quarters, innings, periods) SV-points per score choose one, even if game has multiple scores (ie. football) SN-Score Name pN-Period Name The program should work for any game such as football, baseball, hockey, basketball, soccer, etc 1. Use appropriate variable names and data types for these inputs. 2. Also create variables to accumulate the scores for each respective team, such as teamiscore, team2Score. 3. Input data for the 7 variables from the user. 4. Set up a counter controlled loop to go through the periods from 1. nP. or if it were a tie. Create data validation loops for the 2 numeric inputs (range check for 1 team, then report the results, along with the winner 5. Tally the points for each through 7). 6. Provide 3 sets of sample output. Store the files in a .zip (not a .7zip or .rar). Here is an example of sample output: Please Enter Game Name: Football Please Enter Football Team 1 Name: Dolphins Please Enter Football Team 2 Name: Chargers What is a score in Football called? Touchdown How many points per Touchdown in Football? 7 Quarter What is a period in Football called? How many Quarters in Football
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
