Question: CPS 180 Lab Assignment #6: Team Game Scoring Assignment Assigned: 06/02/17 Due: 06/09/17 Points: 40 Create a Java program to simulate some 2 team game.
CPS 180 Lab Assignment #6: Team Game Scoring Assignment Assigned: 06/02/17 Due: 06/09/17 Points: 40 Create a Java program to simulate some 2 team game. Ask the user to input the following information: gN Game Name tIN 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 (i.e. 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. 5. Tally the points for each team, then report the results, along with the winner, or if it were a tie. Create data validation loops for the 2 numeric inputs (range check for 1 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 2Name: Chargers What is a score in Football called? Touchdown
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
